init(): initial commit

This commit is contained in:
ITQ
2026-02-20 23:14:19 +03:00
commit fd8de1052a
36 changed files with 1713 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
name: l2-l3-1
prefix: net
topology:
kinds:
linux:
image: docker.io/itqdev/netops:latest
defaults:
network-mode: none
cmd: /scripts/node-init.sh
env:
ROLE: host
CONTAINERLAB_TIMEOUT: 5
VLAN: yes
binds:
- ./docker/scripts:/scripts
nodes:
sw_left:
kind: linux
env:
ROLE: switch
MAC: "02:11:11:11:00:01"
sw_right:
kind: linux
env:
ROLE: switch
MAC: "02:11:11:11:00:02"
mid_bridge:
kind: linux
env:
ROLE: bridge
MAC: "02:11:11:11:11:03"
pc1:
kind: linux
env:
MAC: "02:00:00:00:01:01"
pc2:
kind: linux
env:
MAC: "02:00:00:00:01:02"
pc3:
kind: linux
env:
MAC: "02:00:00:00:01:03"
pc4:
kind: linux
env:
MAC: "02:00:00:00:02:04"
pc5:
kind: linux
env:
MAC: "02:00:00:00:02:05"
pc6:
kind: linux
env:
MAC: "02:00:00:00:02:06"
links:
- endpoints: ["sw_left:eth1", "pc1:eth1"]
- endpoints: ["sw_left:eth2", "pc2:eth1"]
- endpoints: ["sw_left:eth3", "pc3:eth1"]
- endpoints: ["sw_right:eth1", "pc4:eth1"]
- endpoints: ["sw_right:eth2", "pc5:eth1"]
- endpoints: ["sw_right:eth3", "pc6:eth1"]
- endpoints: ["sw_left:eth4", "mid_bridge:eth1"]
- endpoints: ["sw_right:eth4", "mid_bridge:eth2"]
# - endpoints: ["sw_left:eth5", "sw_right:eth5"]