Date created: Tuesday, April 9, 2024 3:30:27 PM. Last modified: Wednesday, December 11, 2024 12:00:58 PM
Containerlab Notes
Example Topology
In order to start this topology, there must already be a cEOS container in the local docker registry:
$ docker import cEOS64-lab-4.31.0F.tar.tar ceos:4.31.0F sha256:fb3d07a3dcafbdccc766bd31c4320c3ffd847cd7d774d8e6eb846917182e59a6 $ docker image ls ceos REPOSITORY TAG IMAGE ID CREATED SIZE ceos 4.31.0F fb3d07a3dcaf About a minute ago 2.42GB
test1.clab.yml:
name: test1
prefix: __lab-name
# This is the default containerlab mgmt subnets
#mgmt:
# network: clab # management network name
# ipv4-subnet: 172.20.20.0/24 # ipv4 range
# ipv6-subnet: 2001:172:20:20::/64 # ipv6 range (optional)
topology:
kinds:
ceos:
image: ceos:4.31.0F
nodes:
r1:
kind: ceos
mgmt-ipv4: 172.20.20.101
mgmt-ipv6: 2001:172:20:20::101
r2:
kind: ceos
mgmt-ipv4: 172.20.20.102
mgmt-ipv6: 2001:172:20:20::102
links:
- endpoints: ["r1:eth1", "r2:eth1"]
- type: host
endpoint:
node: r1
interface: eth2
host-interface: r1eth2
- type: host
endpoint:
node: r2
interface: eth2
host-interface: r2eth2
Example Commands
Upgrade containerlab:
containerlab version upgrade
Previous page: BGPQ4
Next page: gRPC on IOS-XR Setup