From b6daa30283d25f11e8581d4f29f60844cdcdfa0d Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Fri, 28 Nov 2025 10:38:48 +0000 Subject: [PATCH] Fix: Configure hosts to properly tag VLANs for leaf port-channels --- evpn-lab.clab.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/evpn-lab.clab.yml b/evpn-lab.clab.yml index 8538721..fb03632 100644 --- a/evpn-lab.clab.yml +++ b/evpn-lab.clab.yml @@ -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: