NIC-Teaming in RedHat Linux Server

 

NIC-Teaming:

===========

Red Hat Enterprise Linux 7 implements network teaming with a small kernel driver and a userspace daemon, teamd. The kernel handles network packets efficiently and teamd handles logic

and interface processing. Software, called runners, implement loadbalancing and active-backup

logic, such as round robin. The following runners are available to teamd:

1. Broadcast: a simple runner which transmits each packet from all ports.

2. Round Robin: a simple runner which transmits packets in a round-robin fashion  from each of the ports.

3. Activebackup: this is a failover runner which watches for link changes and selects an active port for data transfers.

4. Loadbalance: this runner monitors traffic and uses a hash function to try to reach a perfect balance when selecting ports for packet transmission.

5. LACP: implements the 802.3ad Link Aggregation Control Protocol. Can use the same transmit port selection possibilities as the loadbalance runner. We will create Round-Robin teaming. 


Suppose we have 2 LAN-Cards. Named - ens33 & ens34. We will create team by combining these 2 LAN-Cards.


[root@mushfiq ~]# nmcli  connection  add  con-name  team  type  team ifname team  config  '{"runner": {"name": "roundrobin"}}'

*** Note:

             -->No need to memorize -- '{"runner": {"name": "roundrobin"}}' . But how?

             -->Give this command & scroll down : man  teamd.conf

[root@mushfiq ~]# nmcli  connection  show


[root@mushfiq ~]# nmcli  connection  add con-name  team-slave1  type  team-slave  ifname ens33  master  team  connection.autoconnect  yes

[root@mushfiq ~]# nmcli  connection  add con-name  team-slave2  type  team-slave  ifname ens34  master  team  connection.autoconnect  yes


[root@mushfiq ~]# nmcli  connection  show

[root@mushfiq ~]# teamdctl  team  state


[root@mushfiq ~]# nmcli  connection  modify  team  ipv4.addresses  172.16.1.33/24  ipv4.method  manual  connection.autoconnect  yes

[root@mushfiq ~]# nmcli connection up team

[root@mushfiq ~]# ifconfig


Testing:

=======

1. ping  172.16.1.33

2. shutdown any LAN-Card like ens33. 


Comments

  1. Red Prism Group ins one of the best Django coaching in Noida. Learn Django from industry expert with practical training, live projects and got your certificate.

    ReplyDelete

Post a Comment

Popular posts from this blog

Some Questions for MTCNA Exam

ডিপ্লোমা লেভেল এর ইন্ডাস্ট্রিয়াল এটাচমেন্ট এ আসার পূর্বে একটু ভেবে আসার অনুরোধ রইলো

Basic Router & Switch IOS commands