LACP Bonding on CentOS 6/7
For convenience's sake, navigate to the folder which all the network scripts reside in
Using your favourite text editor, edit the network interfaces' script to ensure it look identical to the template below. You will have to do this for each interface which needs to be incorporated into the bond.
Once all slave interfaces have been configured correctly, a new script file for the new bond will have to be created.
Create the aforementioned file using your favourite text editor.
Ensure it looks like the template below, keeping in mind to make adjustments where necessary for the ip address, netmask, gateway.
BONDING_OPTS="mode=4 miimon=100 xmit_hash_policy=1"
To bring the changes into effect and activate the new bond, you may simply restart the network service.
service network restart
If you run into any errors at this point, you might want to load the bonding kernel module.