This is an old revision of the document!
====== NIC Teaming/Bonding/LACP
on the windows server side:
sever manager > local server top pain, left side > nic teaming > enabled add the nics you wish to bond bottom right corner > tasks > add team name your team
once applied, you will lose internet connect and gain a new IP. if you are doing this via RDP, use angry IP scanner or similar tools to find your server, RDP back in, and assign a static IP
if you have a linux server instead:
reference: https://help.ubuntu.com/community/UbuntuBonding
install the prerequisite packages (this assumes ubuntu, debian, or similar distros):
sudo apt-get install ifenslave
verify the module is loaded:
sudo nano /etc/modules
stop the network
sudo stop networking
load the bonding kernel module:
sudo modprobe bonding
configure your interfaces for the bond/team:
sudo nano /etc/network/interfaces
LACP bond example
# eth0 is manually configured, and slave to the "bond0" bonded NIC
auto eth0
iface eth0 inet manual
bond-master bond0
# eth1 ditto, thus creating a 2-link bond.
auto eth1
iface eth1 inet manual
bond-master bond0
# bond0 is the bonded NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0
# bond0 uses standard IEEE 802.3ad LACP bonding protocol
bond-mode 4
bond-miimon 100
bond-lacp-rate 1
bond-slaves eth0 eth1
restart the network
sudo start networking
verify the bond
cat /proc/net/bonding/bond0
brining the bond up or down:
ifup bond0 ifdown bond0
another config example with more NICs:
root@Violet-Nas-01:/tmp# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#LACP config
# eth0 is manually configured, and slave to the "bond0" bonded NIC
auto enp5s0
iface enp5s0 inet manual
bond-master bond0
# eth1 ditto, thus creating a 2-link bond.
auto enp6s0
iface enp6s0 inet manual
bond-master bond0
# eth2 ditto, thus creating a 3-link bond.
auto enp7s0
iface enp7s0 inet manual
bond-master bond0
# eth3 ditto, thus creating a 4-link bond.
auto enx000ec6a3f30f
iface enx000ec6a3f30f inet manual
bond-master bond0
# bond0 is the bonded NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address 192.168.1.38
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
broadcast 192.168.1.255
dns-nameservers 192.168.1.33 208.67.222.222
# bond0 uses standard IEEE 802.3ad LACP bonding protocol
bond-mode 4
bond-miimon 100
bond-lacp-rate 1
bond-slaves enp5s0 enp6s0 enp7s0 enx000ec6a3f30f
bond-downdelay 200
bond-updelay 200
bond-xmit_hash_policy 1
root@Violet-Nas-01:/tmp#
on the switch side. cisco configurations for port channel. change your channel number, interface range, vlan, and description to suit your deployment. if you are instead using a trunk port, remove the spanning tree line.
conf t interface port-channel 5 interface rang gi1/0/36-39 channel-group 5 mode active spanning-tree portfast switchport access vlan 100 description sv3-hp no shut end
verify:
show etherchannel summary

Discussion