Files
lectures/L2-L3/2/topology.clab.yaml
T
2026-02-20 23:14:19 +03:00

55 lines
985 B
YAML

name: l2-l3-2
prefix: net
topology:
kinds:
linux:
image: docker.io/itqdev/netops:latest
defaults:
network-mode: none
cmd: /scripts/node-init.sh
env:
ROUTER: no
CONTAINERLAB_TIMEOUT: 5
binds:
- ./docker/scripts:/scripts
nodes:
router1:
kind: linux
env:
ROUTER: yes
sysctls:
net.ipv4.ip_forward: 1
pc1:
kind: linux
env:
CIDR: 192.168.100.10/24
GATEWAY: 192.168.100.1
pc2:
kind: linux
env:
CIDR: 192.168.100.20/24
GATEWAY: 192.168.100.1
pc3:
kind: linux
env:
CIDR: 172.16.100.10/24
GATEWAY: 172.16.100.1
pc4:
kind: linux
env:
CIDR: 172.16.100.20/24
GATEWAY: 172.16.100.1
links:
- endpoints: ["router1:eth1", "pc1:eth1"]
- endpoints: ["router1:eth2", "pc2:eth1"]
- endpoints: ["router1:eth3", "pc3:eth1"]
- endpoints: ["router1:eth4", "pc4:eth1"]