Network Teaming RHEL/CentOS 7

Network Teaming RHEL/CentOS 7

How to Configure Network Teaming in RHEL/CentOS 7

When a system administrator wants to increase the bandwidth available, provide redundancy, and load balancing for data transfers, a kernel feature known as network bonding allows getting the job done in a cost-effective way.

 

 

To configure Teaming, need at least two NIC.

Check NIC details using command[s] ( using ifconfig, ip addr… ).

[root@feenixdv ~]# cat /proc/net/dev
Inter-|   Receive
 face |bytes   
enp0s3:   24307
enp0s8:    4089
enp0s9:    3310
 
In my example enp0s3, enp0s8 and enp0s9 are network interfaces.
enp0s3 is primary interface so in this example I am going to create “team0” with enp0s8 and enp0s9.
Using “nmtui” command, we can create teaming in very simple way.

[root@feenixdv ~]# nmtui

 

Step 1:- Edit connection.
Step 2:- Add new connection.
Step 3:- Select team from list and click on create.
Step 4:- Select add to add NIC interface.

Step 5:- Select interface.
Step 6:- Put NIC details (see ifconfig details for NIC name).
Step 7:- Add interface one by one.
Step 8:- Finally done.

Assign IP to interface (Team0).

[root@feenixdv ~]# nmcli connection modify Team0 ipv4.method manual ipv4.addresses 192.168.1.100/24 connection.autoconnect yes

Activate interface.

[root@feenixdv ~]# nmcli connection up Team0
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/9)

Check IP details.

[root@feenixdv ~]# ifconfig
.
.
team0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.100  netmask 255.255.255.0  broadcast 192.168.1.255
.
.

Check ping.

[root@feenixdv ~]# ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.078 ms

Leave a Reply

Your email address will not be published. Required fields are marked *