Back to Blog
Tutorial••Updated •7 min

NetPilot in Claude: Cisco OSPF and Multi-Vendor eBGP Labs From the Chat

Connect NetPilot in Claude and build labs on real routers from one prompt: multi-area OSPF on Cisco IOS, and three-AS eBGP on Arista cEOS, Nokia SR Linux and FRR, each checked on its own CLI. Every click, with the frames from the recording.

S
Sarah Chen
Network Engineer
How to Connect NetPilot in Claude and Build a Real Cisco OSPF Lab From the Chat · Watch on YouTube

NetPilot is a connector in the Claude directory. Connect it once, and the chat you already work in can build a real network lab: Claude designs the topology, writes the router configurations, deploys real Cisco IOS on your own lab VM, and checks the result. You then open the lab viewer and type the show commands yourself. This tutorial follows the recording above click by click: four Cisco IOS routers, three OSPF areas, two Linux hosts, one prompt.

Beyond Claude, the same connector works in ChatGPT, Gemini, Claude Code, Codex, Cursor, VS Code with GitHub Copilot, Meta Muse and any other MCP assistant. The connect steps for each one are on the connection guide.

Step 1: Find NetPilot in the Claude connector directory

Start in an empty Claude chat with the cursor in the composer. Open the plus menu, choose Connectors, then Add connector and Browse. The directory opens.

The Claude composer plus menu with Connectors highlighted and the NetPilot connector switched on

Search for NetPilot. The listing shows up under Yours once it is connected, or under Discover before that.

The Claude connector directory with NetPilot in the search box and the NetPilot listing marked Connected

Open the listing. It names every lab job NetPilot builds, from certification labs on Cisco IOS, IOS XR and NX-OS to vendor CLI labs on Junos, Arista EOS, Nokia SR Linux, SONiC, Palo Alto and FortiGate. Click Connect and sign in with your NetPilot account. The account in the recording was already connected, which is why its button reads Disconnect.

The NetPilot listing in the Claude connector directory with its description of the lab jobs it builds

Back in the chat, open the plus menu, choose Connectors, and switch NetPilot on. That is the whole setup.

Step 2: Ask for the lab in one prompt

Describe the outcome, not the commands. This is the prompt from the recording, typed exactly:

Build me a multi-area OSPF lab on Cisco IOS routers: CORE-RTR-01 and CORE-RTR-02 in area 0, EDGE-RTR-01 in area 1 behind CORE-RTR-01, EDGE-RTR-02 in area 2 behind CORE-RTR-02, one Linux host behind each edge router, RFC 5737 addressing. Show me the topology and the IP plan as a table, deploy it on my lab VM, and tell me when every OSPF neighbor is FULL and the two hosts can ping each other.

Claude answers with the topology sketch and the IP plan before it builds anything, so you can check the design first. The core routers form the area 0 backbone, each edge router sits in its own area, and the host networks hang off the edges.

The one-line lab prompt in Claude and the IP plan table it returned, with every router interface, address, subnet and OSPF area

The plan from the recording, lab ospf-multiarea-02:

DeviceRoleLinksLoopback
CORE-RTR-01Area 0, ABR for area 1192.0.2.0/30 to CORE-RTR-02, 192.0.2.4/30 to EDGE-RTR-01192.0.2.241/32
CORE-RTR-02Area 0, ABR for area 2192.0.2.0/30 to CORE-RTR-01, 192.0.2.8/30 to EDGE-RTR-02192.0.2.242/32
EDGE-RTR-01Area 1192.0.2.4/30 to the core, 198.51.100.0/24 to HOST-01192.0.2.243/32
EDGE-RTR-02Area 2192.0.2.8/30 to the core, 203.0.113.0/24 to HOST-02192.0.2.244/32

Router links run as OSPF point-to-point, the host LANs are passive interfaces, and every address comes from the RFC 5737 documentation ranges.

Copy-paste ready: the multi-area OSPF prompt in the example prompts, with the variations to try next.

Step 3: What Claude is doing while you wait

Every action shows up as a NetPilot tool call in the chat, so the build is readable even while it runs. In the recording Claude:

  1. Checked the lab VM and started it. A cold VM takes a minute or two, and this is most of the wait.
  2. Read the device type guides for the Cisco IOS router and the Linux endpoint.
  3. Wrote the topology and the four router configurations.
  4. Deployed all six devices with containerlab on the VM.
  5. Waited for the routers to boot, then checked OSPF neighbors and routes on each one and ran pings between the hosts.
The Claude chat during the build, listing NetPilot tool calls for the VM status, the VM start, the device guides and a shell command waiting for approval

Claude asks before it runs a shell command on your VM. Allow each one for the run, or choose Always allow. When the build is done, Claude reports the state it found: FULL on every adjacency, and 4 of 4 replies between the hosts in each direction.

Direct CLI is always available too. Everything Claude ran, you can run yourself. That is the next step.

Step 4: Open the lab viewer and verify on the real CLI

Claude returns a lab viewer link with the report. The viewer shows the running topology with a console per device. Select CORE-RTR-01 and open its terminal. This is the router's own IOS command line.

The NetPilot lab viewer with the four routers and two hosts of the OSPF lab, and the CORE-RTR-01 console showing show ip ospf neighbor with two FULL neighbors

Three commands tell you the routing state is real:

Cisco IOS
CORE-RTR-01#show ip ospf neighbor
CORE-RTR-01#show ip route ospf
CORE-RTR-01#show ip ospf border-routers

The neighbor table shows two FULL adjacencies, one toward the other core router and one toward EDGE-RTR-01. The route table marks intra-area and inter-area routes with different codes. The border-router view identifies CORE-RTR-02 as an ABR reachable through area 0.

Switch to EDGE-RTR-01. Its single neighbor is FULL, and the route to the remote host network is marked O IA, learned through the backbone:

Cisco IOS
EDGE-RTR-01#show ip route ospf
O IA  203.0.113.0/24 [110/40] via 192.0.2.5, 00:13:22, Ethernet0/1
EDGE-RTR-01#ping 203.0.113.10
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
The EDGE-RTR-01 console showing the O IA inter-area route to 203.0.113.0/24 and a ping to the remote host with five replies

That ping travels from area 1 through area 0 into area 2, which is the point of a multi-area design. The separate host tests Claude ran cover the host-to-host path.

Watch the Short: the build beat in 45 seconds, at youtube.com/shorts/p9g07mFqZSA.

Multi-vendor eBGP from one prompt

The same connector builds labs across vendors. This run asked Claude for three routers from three vendors, each in its own autonomous system:

Using NetPilot, build me a three-router eBGP lab: Arista cEOS as R1 in AS 65001, Nokia SR Linux as R2 in AS 65002, FRR as R3 in AS 65003. Link R1 to R2 on 10.1.2.0/30 and R2 to R3 on 10.2.3.0/30. Give each router a loopback (1.1.1.1/32, 2.2.2.2/32, 3.3.3.3/32) and advertise it into BGP. Deploy it, then show me the BGP summary from each router and a ping from R1's loopback to R3's loopback.

Claude read the device guide for each vendor, started the lab VM while it designed, wrote the Arista and SR Linux startup configurations, deployed the lab with containerlab and configured FRR through vtysh once it was up. Every step shows as a NetPilot tool call in the chat. Nothing was installed on the laptop and no MCP server was built: the connector comes from the Claude directory.

The Claude chat listing NetPilot tool calls: the VM status, then a device guide each for arista_ceos, nokia_srlinux and frr_router, then the VM start

A few minutes later every session was up. The SR Linux router in the middle reports both of its eBGP neighbors established, and FRR has learned the Arista loopback across two autonomous systems:

Nokia SR Linux showing two configured eBGP sessions established to AS 65001 and AS 65003, and FRR's BGP table with 1.1.1.1/32 learned through AS 65002 and 65001

The ping from the Arista router's loopback to the FRR loopback crossed the Nokia router, five replies out of five, with a TTL of 63 for the one routed hop:

Ping from 1.1.1.1 to 3.3.3.3: five packets transmitted, five received, zero percent packet loss

Two details Claude handled that trip people up when they build this by hand. SR Linux eBGP imports and exports nothing until a routing policy allows it, so R2 got an accept-all import policy and an export policy for its loopback and the BGP-learned routes. FRR applies the RFC 8212 default to eBGP, so R3 got a permit-all route-map in both directions.

The Arista router runs your own Arista cEOS image, uploaded once to your lab VM. Nokia SR Linux and FRR are built in. The topology and the three router configurations from this run are in the public lab, and the prompt is in the example prompts. Watch the run in 40 seconds at youtube.com/shorts/XzZNgu5dECI.

The same plugin builds multi-vendor labs from ChatGPT too: one ChatGPT prompt built a Cisco, an Arista and a Junos router in OSPF area 0 and checked every neighbor on its own CLI, in Build a multi-vendor network lab from ChatGPT.

Step 5: Keep the files, stop the VM

Ask Claude for the topology and the running configuration of every router as downloadable files, and keep them next to the video. Then stop the lab VM from the chat. The lab stays on the VM for your next session.

The files from this recording, the containerlab topology and the four sanitized router configurations, are published with this post under the lab files below.

Lab files from the recording

Each configuration has its one credential line masked and its startup-config reference pointed at the file beside it. The Cisco image is not included: supply your own, as the supported devices page describes.

FAQ

How do I connect NetPilot in Claude?

In a Claude chat, open the plus menu in the composer, choose Connectors, then Add connector and Browse. Search for NetPilot, open the listing and click Connect, then sign in with your NetPilot account. Back in the chat, open Connectors again and switch NetPilot on. The same connector works in ChatGPT, Gemini, Codex and Meta Muse, and the connect steps for each are on the connection guide.

What does Claude do with NetPilot when I ask for a lab?

Claude starts your own lab VM, reads the device guidance for the routers you named, designs the topology and the IP plan, writes every router configuration, deploys the devices with containerlab, then logs into the routers to check neighbors and routes and pings between the hosts. Each action shows as a NetPilot tool call in the chat.

Can Claude build a multi-vendor lab, not only Cisco?

Yes. Name the vendors in the prompt. In the run on this page Claude built Arista cEOS, Nokia SR Linux and FRR routers in three autonomous systems, brought up every eBGP session and pinged loopback to loopback across all three. NetPilot runs 17+ network operating systems, and the supported devices page lists which are built in and which you bring.

Is the lab real Cisco IOS or a simulation?

Real Cisco IOS. The routers run the Cisco IOL image you supply once to your lab VM, so every show command, every route code and every ping is the operating system's own output. Nothing is installed on your machine.

Can I use the lab viewer to type commands myself?

Yes. When the lab is up, Claude returns a lab viewer link. The viewer shows the running topology with a console per device, where you type show ip ospf neighbor, show ip route ospf or a ping on the real CLI.

Do I need to install anything to follow this tutorial?

No local install. You need a Claude account that can hold a connector, a NetPilot account, and a Cisco IOS image uploaded once to your lab VM. The supported devices page lists which operating systems are preloaded and which you bring.

Build your own from the chat

Open Claude, connect NetPilot from the directory, and describe the lab you want. Start with the prompt above and change the areas, the vendors or the routing protocol. The connect steps for Claude, ChatGPT and Meta Muse are on the connection guide, and the NetPilot labs playlist has the other episodes.

More labs on real Cisco IOS: the Cisco virtual lab hub, the CCNA practice lab and the CCNP practice lab pages.

Discuss on GitHub: the community announcement takes questions about the connector and the lab. The episode is also on X and LinkedIn.

Sign in to NetPilot to set up your lab VM before you connect.

What network lab do you want to build?

NetPilot takes you from one prompt to a runnable network lab with CLI access.