networking:containerlab
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| networking:containerlab [2025/12/03 12:49] – [SETUP] v1ctor | networking:containerlab [2025/12/03 13:53] (current) – [SETUP] v1ctor | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== SETUP ==== | ==== SETUP ==== | ||
| - | On the Linux machine, download the Docker image and then import it: | + | On the Linux machine, download the Docker image and then import it. Some useful Docker commands: |
| <code bash> | <code bash> | ||
| docker import cEOS-lab-4.34.3.1M.tar.xz ceos: | docker import cEOS-lab-4.34.3.1M.tar.xz ceos: | ||
| docker images # should be visible here | docker images # should be visible here | ||
| + | |||
| + | docker ps # show all running containers | ||
| + | docker ps -a # show all containers, including stopped ones. Docker keeps its filesystem, metadata and | ||
| + | # reference to the image until you explicitly remove it | ||
| + | |||
| + | docker rm < | ||
| + | docker rmi < | ||
| + | </ | ||
| + | |||
| + | Create a // | ||
| + | < | ||
| + | name: clos | ||
| + | prefix: "" | ||
| + | topology: | ||
| + | kinds: | ||
| + | ceos: | ||
| + | image: ceos: | ||
| + | env: | ||
| + | CLAB_MGMT_VRF: | ||
| + | nodes: | ||
| + | leaf1: | ||
| + | kind: ceos | ||
| + | leaf2: | ||
| + | kind: ceos | ||
| + | |||
| + | spine1: | ||
| + | kind: ceos | ||
| + | spine2: | ||
| + | kind: ceos | ||
| + | |||
| + | client1: | ||
| + | kind: linux | ||
| + | image: alpine: | ||
| + | client2: | ||
| + | kind: linux | ||
| + | image: alpine: | ||
| + | |||
| + | links: | ||
| + | # leaf to spine links POD1 | ||
| + | - endpoints: [" | ||
| + | - endpoints: [" | ||
| + | - endpoints: [" | ||
| + | - endpoints: [" | ||
| + | |||
| + | # client connection links | ||
| + | - endpoints: [" | ||
| + | - endpoints: [" | ||
| + | </ | ||
| + | |||
| + | Deploy the lab: | ||
| + | <code bash> | ||
| + | clab deploy | ||
| </ | </ | ||
networking/containerlab.1764766175.txt.gz · Last modified: by v1ctor
