NIC teaming allows users to group two or more physical NICs into a single logical network device called a bond. Once a logical NIC is configured, the virtual machine is not aware of the underlying physical NICs. Packets sent to the logical NIC are dispatched to one of the physical NICs in the bond and packets arriving at any of the physical NICs are automatically directed to the appropriate logical NIC.
Step 1: Install teamd Daemon
Teamd is a daemon that is responsible for creating the network team that will act as the logical interface during runtime. By default, it comes installed with CentOS/RHEL 8. But if, for whatever reason, it’s not installed, execute the following dnf command to install it.
# dnf install teamd
Step 2: Configure NIC Teaming
To configure NIC teaming we will use nmcli tool that can be used for the management of NetworkManager service. In my system, I have 2 NIC cards that I’m going to bond or to create a logical team interface: eth1 and eth2.
To confirm the active network interfaces run following command:
# nmcli device status

The output confirms the existence of all network connections. For more infos about the interfaces like UUID, run command:
# nmcli connection show

We are going to delete the enp0s8 and enp0s10 network devices which will be used.

After deletion, both network devices are disconnected. We can verify this by running command:
# nmcli device status

Now it’s time to create a new team interface and call it bond0.
# nmcli connection add type team con-name bond0 ifname bond0 config '{"runner": {"name": "activebackup"}}'
Value ‘activebackup’ is a runner and can be replaced with round-robin, broadcast , random or lacp.
To view interface that we have just configured, run the command:
# nmcli connection show

Let’s configure IP addressing and DNS entries to the interface and ensure is autoconnects.
# nmcli con mod bond0 ipv4.addresses 192.168.56.111/24 # nmcli con mod bond0 ipv4.gateway 192.168.56.1 # nmcli con mod bond0 ipv4.dns 8.8.8.8 # nmcli con mod bond0 ipv4.method manual # nmcli con mod bond0 connection.autoconnect yes
Next add the network interfaces to the team interface.

Finally let’s restart our configured team interface.

0 Comments