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


Copyright 2021. All rights reserved.

Posted November 18, 2021 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B