{"id":7301,"date":"2018-03-31T08:57:51","date_gmt":"2018-03-31T00:57:51","guid":{"rendered":"http:\/\/rmohan.com\/?p=7301"},"modified":"2018-03-31T08:57:51","modified_gmt":"2018-03-31T00:57:51","slug":"rhel-centos-7-network-teaming-2","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7301","title":{"rendered":"RHEL \/ CentOS 7 Network Teaming"},"content":{"rendered":"<p>RHEL \/ CentOS 7 Network Teaming<\/p>\n<p>Below is an example on how to configure network teaming on RHEL\/CentOS 7. It is assumed that you have at least two interface cards.<\/p>\n<p>Show Current Network Interfaces<br \/>\n[root@rhce-server ~]$ ip link<br \/>\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT<br \/>\nlink\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br \/>\n2: eno16777736: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000<br \/>\nlink\/ether 00:0c:29:69:bf:87 brd ff:ff:ff:ff:ff:ff<br \/>\n3: eno33554984: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000<br \/>\nlink\/ether 00:0c:29:69:bf:91 brd ff:ff:ff:ff:ff:ff<\/p>\n<p>The two devices I will be teaming are eno33554984 and eno16777736.<\/p>\n<p>Create the Team Interface<br \/>\n[root@rhce-server ~]$ nmcli connection add type team con-name team0 ifname team0 config &#8216;{&#8220;runner&#8221;: {&#8220;name&#8221;: &#8220;activebackup&#8221;}}&#8217;<\/p>\n<p>This will configure the interface for activebackup. Other runners include broadcast, roundrobin, loadbalance, and lacp.<\/p>\n<p>Configure team0\u2019s IP Address<br \/>\n[root@rhce-server ~]# nmcli connection modify team0 ipv4.addresses 192.168.1.22\/24<br \/>\n[root@rhce-server ~]# nmcli connection modify team0 ipv4.method manual<\/p>\n<p>You can also configure IPv6 address by setting the ipv6.addresses field.<\/p>\n<p>Configure the Team Slaves<br \/>\n[root@rhce-server ~]# nmcli connection add type team-slave con-name team0-slave1 ifname eno33554984 master team0<br \/>\nConnection &#8216;team0-slave1&#8217; (4167ea50-7d3a-4024-98e1-3058a4dcf0fa) successfully added.<br \/>\n[root@rhce-server ~]# nmcli connection add type team-slave con-name team0-slave2 ifname eno16777736 master team0<br \/>\nConnection &#8216;team0-slave2&#8217; (d5ed65d1-16a7-4bc7-8c4d-78e17a1ed8b3) successfully added.<\/p>\n<p>Check the Connection<br \/>\n[root@rhce-server ~]# teamdctl team0 state<br \/>\nsetup:<br \/>\nrunner: activebackup<br \/>\nports:<br \/>\neno16777736<br \/>\nlink watches:<br \/>\nlink summary: up<br \/>\ninstance[link_watch_0]:<br \/>\nname: ethtool<br \/>\nlink: up<br \/>\neno33554984<br \/>\nlink watches:<br \/>\nlink summary: up<br \/>\ninstance[link_watch_0]:<br \/>\nname: ethtool<br \/>\nlink: up<br \/>\nrunner:<br \/>\nactive port: eno16777736<\/p>\n<p>[root@rhce-server ~]# ping -I team0 192.168.1.1<br \/>\nPING 192.168.1.1 (192.168.1.1) from 192.168.1.24 team0: 56(84) bytes of data.<br \/>\n64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.38 ms<br \/>\n&#8230;<\/p>\n<p>Test Failover<br \/>\n[root@rhce-server ~]# nmcli device disconnect eno16777736<br \/>\n[root@rhce-server ~]# teamdctl team0 state<br \/>\nsetup:<br \/>\nrunner: activebackup<br \/>\nports:<br \/>\neno33554984<br \/>\nlink watches:<br \/>\nlink summary: up<br \/>\ninstance[link_watch_0]:<br \/>\nname: ethtool<br \/>\nlink: up<br \/>\nrunner:<br \/>\nactive port: eno33554984<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RHEL \/ CentOS 7 Network Teaming<\/p>\n<p>Below is an example on how to configure network teaming on RHEL\/CentOS 7. It is assumed that you have at least two interface cards.<\/p>\n<p>Show Current Network Interfaces [root@rhce-server ~]$ ip link 1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: eno16777736: [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7301"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7301"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7301\/revisions"}],"predecessor-version":[{"id":7302,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7301\/revisions\/7302"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}