Create LACP Bond Interface in Centos 7


I had two 10Gb ports I wanted to bond in Dynamic Link Aggegration (802.3ad)

To get the network interface list use:

nmcli connection

In my output I wanted to use ens1f0 and ens1f1 interfaces



1)  Create Bond Interface (bond0)

nmcli con add type bond con-name bond0 ifname bond0 mode 4 ip4

Notes: is the virtual IP and subnet is the gateway
mode 4 = 802.3ad

2)  Create the slave interfaces

nmcli con add type bond-slave ifname ens1f0 master bond0
nmcli con add type bond-slave ifname ens1f1 master bond0


3) Activate slave connections

nmcli conn up bond-slave-ens1f0
nmcli conn up bond-slave-ens1f1


4) To bring up the bond interface (if it isnt already)

nmcli conn up bond0


5) Check connections

nmcli connection



6) Check bond

cat /proc/net/bonding/bond0