Configure interfaces for bonding and VLANs

Adds bonding and VLAN configuration to host interfaces files and
configures the clab yaml to load the modules.
This commit is contained in:
2025-11-29 19:59:06 +00:00
parent 101143cc59
commit 43a90805ef
5 changed files with 20 additions and 8 deletions

View File

@@ -93,7 +93,9 @@ topology:
binds:
- hosts/host2_interfaces:/etc/network/interfaces
exec:
- apk add --no-cache ifupdown bonding vlan
- apk add --no-cache ifupdown
- apk add --no-cache vlan
- apk add --no-cache bonding
- modprobe bonding
- modprobe 8021q
- ifup -a

View File

@@ -2,10 +2,17 @@ auto lo
iface lo inet loopback
auto bond0
iface bond0
iface bond0 inet manual
use bond
bond-slaves eth1 eth2
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate fast
up ip link set $IFACE up
auto bond0.40
iface bond0.40 inet static
address 10.34.34.102
netmask 255.255.255.0
vlan-raw-device bond0
up ip link set $IFACE up

View File

@@ -2,9 +2,10 @@ auto lo
iface lo inet loopback
auto bond0
iface bond0
iface bond0 inet manual
use bond
bond-slaves eth1 eth2
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate fast
up ip link set $IFACE up

View File

@@ -2,9 +2,10 @@ auto lo
iface lo inet loopback
auto bond0
iface bond0
iface bond0 inet manual
use bond
bond-slaves eth1 eth2
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate fast
up ip link set $IFACE up

View File

@@ -2,9 +2,10 @@ auto lo
iface lo inet loopback
auto bond0
iface bond0
iface bond0 inet manual
use bond
bond-slaves eth1 eth2
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate fast
up ip link set $IFACE up