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
|
||||||
@@ -162,15 +164,15 @@ topology:
|
|||||||
# host1 dual-homed to leaf1 + leaf2
|
# host1 dual-homed to leaf1 + leaf2
|
||||||
- endpoints: ["leaf1:eth1", "host1:eth1"]
|
- endpoints: ["leaf1:eth1", "host1:eth1"]
|
||||||
- endpoints: ["leaf2:eth1", "host1:eth2"]
|
- endpoints: ["leaf2:eth1", "host1:eth2"]
|
||||||
|
|
||||||
# host2 dual-homed to leaf3 + leaf4
|
# host2 dual-homed to leaf3 + leaf4
|
||||||
- endpoints: ["leaf3:eth1", "host2:eth1"]
|
- endpoints: ["leaf3:eth1", "host2:eth1"]
|
||||||
- endpoints: ["leaf4:eth1", "host2:eth2"]
|
- endpoints: ["leaf4:eth1", "host2:eth2"]
|
||||||
|
|
||||||
# host3 dual-homed to leaf5 + leaf6
|
# host3 dual-homed to leaf5 + leaf6
|
||||||
- endpoints: ["leaf5:eth1", "host3:eth1"]
|
- endpoints: ["leaf5:eth1", "host3:eth1"]
|
||||||
- endpoints: ["leaf6:eth1", "host3:eth2"]
|
- endpoints: ["leaf6:eth1", "host3:eth2"]
|
||||||
|
|
||||||
# host4 dual-homed to leaf7 + leaf8
|
# host4 dual-homed to leaf7 + leaf8
|
||||||
- endpoints: ["leaf7:eth1", "host4:eth1"]
|
- endpoints: ["leaf7:eth1", "host4:eth1"]
|
||||||
- endpoints: ["leaf8:eth1", "host4:eth2"]
|
- endpoints: ["leaf8:eth1", "host4:eth2"]
|
||||||
|
|||||||
@@ -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