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:
@@ -93,7 +93,9 @@ topology:
|
|||||||
binds:
|
binds:
|
||||||
- hosts/host2_interfaces:/etc/network/interfaces
|
- hosts/host2_interfaces:/etc/network/interfaces
|
||||||
exec:
|
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 bonding
|
||||||
- modprobe 8021q
|
- modprobe 8021q
|
||||||
- ifup -a
|
- ifup -a
|
||||||
|
|||||||
@@ -2,10 +2,17 @@ auto lo
|
|||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
|
|
||||||
auto bond0
|
auto bond0
|
||||||
iface bond0
|
iface bond0 inet manual
|
||||||
use bond
|
use bond
|
||||||
bond-slaves eth1 eth2
|
bond-slaves eth1 eth2
|
||||||
bond-mode 802.3ad
|
bond-mode 802.3ad
|
||||||
bond-miimon 100
|
bond-miimon 100
|
||||||
bond-lacp-rate fast
|
bond-lacp-rate fast
|
||||||
up ip link set $IFACE up
|
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
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ auto lo
|
|||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
|
|
||||||
auto bond0
|
auto bond0
|
||||||
iface bond0
|
iface bond0 inet manual
|
||||||
use bond
|
use bond
|
||||||
bond-slaves eth1 eth2
|
bond-slaves eth1 eth2
|
||||||
bond-mode 802.3ad
|
bond-mode 802.3ad
|
||||||
bond-miimon 100
|
bond-miimon 100
|
||||||
bond-lacp-rate fast
|
bond-lacp-rate fast
|
||||||
|
up ip link set $IFACE up
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ auto lo
|
|||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
|
|
||||||
auto bond0
|
auto bond0
|
||||||
iface bond0
|
iface bond0 inet manual
|
||||||
use bond
|
use bond
|
||||||
bond-slaves eth1 eth2
|
bond-slaves eth1 eth2
|
||||||
bond-mode 802.3ad
|
bond-mode 802.3ad
|
||||||
bond-miimon 100
|
bond-miimon 100
|
||||||
bond-lacp-rate fast
|
bond-lacp-rate fast
|
||||||
|
up ip link set $IFACE up
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ auto lo
|
|||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
|
|
||||||
auto bond0
|
auto bond0
|
||||||
iface bond0
|
iface bond0 inet manual
|
||||||
use bond
|
use bond
|
||||||
bond-slaves eth1 eth2
|
bond-slaves eth1 eth2
|
||||||
bond-mode 802.3ad
|
bond-mode 802.3ad
|
||||||
bond-miimon 100
|
bond-miimon 100
|
||||||
bond-lacp-rate fast
|
bond-lacp-rate fast
|
||||||
|
up ip link set $IFACE up
|
||||||
|
|||||||
Reference in New Issue
Block a user