Fix: Configure hosts to properly tag VLANs for leaf port-channels

This commit is contained in:
2025-11-28 10:38:48 +00:00
parent 1275f27637
commit b6daa30283

View File

@@ -72,22 +72,30 @@ topology:
mgmt-ipv4: 172.16.0.101
image: alpine:latest
exec:
# Create bonded interface with VLAN 40 tagging for L2 VXLAN test
- ip link add bond0 type bond mode balance-rr
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip addr add 10.40.40.101/24 dev bond0
# Add VLAN 40 interface on top of bond0
- ip link add link bond0 name bond0.40 type vlan id 40
- ip link set bond0.40 up
- ip addr add 10.40.40.101/24 dev bond0.40
host2:
kind: linux
mgmt-ipv4: 172.16.0.102
image: alpine:latest
exec:
# Create bonded interface with VLAN 34 tagging for L3 VXLAN test (VRF gold)
- ip link add bond0 type bond mode balance-rr
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip addr add 10.34.34.102/24 dev bond0
# Add VLAN 34 interface on top of bond0
- ip link add link bond0 name bond0.34 type vlan id 34
- ip link set bond0.34 up
- ip addr add 10.34.34.102/24 dev bond0.34
- ip route add default via 10.34.34.1
host3:
@@ -95,22 +103,30 @@ topology:
mgmt-ipv4: 172.16.0.103
image: alpine:latest
exec:
# Create bonded interface with VLAN 40 tagging for L2 VXLAN test
- ip link add bond0 type bond mode balance-rr
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip addr add 10.40.40.103/24 dev bond0
# Add VLAN 40 interface on top of bond0
- ip link add link bond0 name bond0.40 type vlan id 40
- ip link set bond0.40 up
- ip addr add 10.40.40.103/24 dev bond0.40
host4:
kind: linux
mgmt-ipv4: 172.16.0.104
image: alpine:latest
exec:
# Create bonded interface with VLAN 78 tagging for L3 VXLAN test (VRF gold)
- ip link add bond0 type bond mode balance-rr
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set bond0 up
- ip addr add 10.78.78.104/24 dev bond0
# Add VLAN 78 interface on top of bond0
- ip link add link bond0 name bond0.78 type vlan id 78
- ip link set bond0.78 up
- ip addr add 10.78.78.104/24 dev bond0.78
- ip route add default via 10.78.78.1
links: