November
18
Linux: Bonding with LACP and vlan 15
nano /etc/modprobe.d/bond1.conf
alias netdev-bond1 bonding
options bond1 miimon=100 mode4 lacp_rate=1
reboot
nano /etc/sysconfig/network-scripts/ifcfg-bond1
DEVICE=bond1
TYPE=Bond
BONDING_MASTER=yes
NAME=bond1
ONBOOT=yes
BONDING_OPTS="mode=4 miimon=100"
NM_CONTROLLED=no
nano /etc/sysconfig/network-scripts/ifcfg-bond1.15
VLAN=yes
TYPE=Vlan
DEVICE=bond1.15
VLAN_ID=15
BOOTPROTO=none
IPADDR=172.22.15.15
NETMASK=255.255.255.0
GATEWAY=172.22.15.1
DNS1=192.168.1.1
DNS2=192.168.1.2
DEFROUTE=yes
NAME=bond1.15
ONPARENT=yes
LAST_CONNECT=1530810269
NM_CONTROLLED=no
nano /etc/sysconfig/network-scripts/ifcfg-bond1_slave_1
DEVICE=p2p2
TYPE=Ethernet
NAME=bond1_slave_1
ONBOOT=yes
MASTER=bond1
SLAVE=yes
NM_CONTROLLED=no
nano /etc/sysconfig/network-scripts/ifcfg-bond1_slave_2
DEVICE=p3p2
TYPE=Ethernet
NAME=bond1_slave_2
ONBOOT=yes
MASTER=bond1
SLAVE=yes
NM_CONTROLLED=no