Containerlab Workshop

Build networking labs from containers: install Containerlab, load network OS images, write topologies, connect to nodes, and scale out across cloud VMs.
Author

Abid Ghufran

A hands-on workshop on using Containerlab for networking labs.

Lab manuals: work through the parts in order. The lab files are in the workshop repository: github.com/aghufran/dynanet-dev, in the clab-workshop folder.

Part Topic Status
1 Installing Containerlab Available
2 Loading network OS images into Docker Available
3 Writing a lab topology file Available
4 Connecting to the nodes in a lab Available
5 Running a lab across several hosts (VXLAN) Available

What you need: an Ubuntu host with 4 vCPUs and 16 GB of RAM. The routers in Parts 2 to 5 run Cisco IOS XR, as the Cisco XRd container image. You get that image from Cisco with your own account; Part 2 shows how to load it.

To see any lab in the workshop, or one of your own, as a diagram, paste its topology file into the topology viewer.

Available parts

Part Lab manual Description
1 Part 1: Installing Containerlab Install Docker and Containerlab on an Ubuntu host, check that it works, and run a first two-node lab.
2 Part 2: Loading network OS images Get network OS images into Docker so Containerlab can use them: pull a public image, import Arista cEOS, load Cisco XRd, and build VM-based images with vrnetlab. Then test Cisco XRd with a two-router lab.
3 Part 3: Writing a topology file Describe a lab in one YAML file: nodes, kinds, links, management addresses and startup configurations. Build a routed four-node lab and verify it.
4 Part 4: Connecting to the nodes in a lab Reach lab nodes by SSH, docker exec and containerlab exec; connect from another machine with a jump host, a route or a published port; and drive the lab from Python with the inventory Containerlab generates.
5 Part 5: Running a lab across several hosts Split one lab across two hosts and join the halves with a VXLAN tunnel: first with two lab-host containers on one Ubuntu machine, then on two real machines or cloud VMs.
No matching items

Comments

Comments are reviewed before they appear.