This guide explains how to set up and use the ContainerLab-based network automation lab.
- ContainerLab (clab) installed
- Docker running
- Internet connection to pull required images
The network lab consists of:
- Router R1 (Cisco IOL)
- Switch S1 (Cisco IOL in L2 mode)
- Connection between R1 and S1 via eth1 interfaces
make setupDeploys the network lab with the defined topology.
make statusShows the status of all nodes in the network lab.
make stopStops all containers in the network lab.
make destroyCompletely removes the network lab containers and associated resources.
make restartStops and then redeploys the network lab.
make connect host=R1Connects to a specific node in the network lab (replace R1 with the desired node name).
make logsShows logs for all containers in the network lab.
make helpDisplays help information about available commands.
If you encounter subnet conflicts, the lab is configured to use:
- IPv4 subnet: 172.30.30.0/24
- IPv6 subnet: 3fff:172:30:30::/64
If images fail to pull, ensure you have internet connectivity and the correct image names in netlab/topology.yml.
The topology is defined in netlab/topology.yml and can be modified as needed for different scenarios.