RHEL7 how to configure NIC Teaming as Active Backup (Failover)
The Linux NIC teaming driver provides a method for aggregating multiple network interfaces into a single “Team” interface. The behavior of the team interfaces depends upon the runner configuration. Generally teaming supports below methods.
NIC Teaming will support
- Round robin
- Load balancing
- Fail-over
- Broadcast
Naming convention of Red Hat Enterprise Linux as, On board LAN card naming em0, em1…..etc. Additional LAN card naming if it is a 4 port NIC card p1p1, p1p2, p1p3 and p1p4 (p1 = Slot1 p1-4=Port)
The key reasons why you might want to use teaming rather than bonding are
- Teaming has a small kernel module which implements fast handling of packets flowing through your teamed interfaces
- support for IPv6 (NS/NA) link monitoring
- Capable of working with D-Bus and Unix Domain Sockets (the default)
- It provides an extensible and scale-able solution for your teaming requirements
- load balancing for LACP support
- It makes use of NetworkManager and its associates tools (the modern way) to manage your network connections
This article will provide a guide to configure NIC teaming in RHEL7.
NIC Teaming as Active Backup will provide you redundancy in case of any one of NIC is failed still end user can access services from server. We also call it has Fail-Over mechanism.
Required two NIC cards to configure teaming.
Devices status as mentioned below
Creating teaming virtual interface
First we will create an master virtual teaming interface the we have to add other NIC cards as a slaves to teaming master. nmcli is the utility we have to use.
Provide IP address to team0 virtual interface
Now we have to configure an IP address, Gateway and DNS to team0 interface to communicate and add slave interface to team0
Add slave interfaces to Master team interface
team0 master interface is created and added slave interfaces to master.
Verifying Master and Slave interfaces
Activate teaming interface
Check functionality of Active-Backup Teaming
We can check active and backup teaming functionality using below command
as shown above active port is ens33. Now bring down the ens33 and see
as soon as we disconnect / bring down one NIC card other backup NIC will activate automatically with in Milli seconds.
That’s it..!! NIC Teaming with active backup runner configured and working.
No comments:
Post a Comment