{"id":7171,"date":"2018-01-23T11:55:34","date_gmt":"2018-01-23T03:55:34","guid":{"rendered":"http:\/\/rmohan.com\/?p=7171"},"modified":"2018-01-23T11:55:34","modified_gmt":"2018-01-23T03:55:34","slug":"centos-7-through-nmcli-team-to-achieve-multiple-network-card-binding","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7171","title":{"rendered":"CentOS 7 through nmcli team to achieve multiple network card binding"},"content":{"rendered":"<p><strong>CentOS 7 through nmcli team to achieve multiple network card binding<\/strong><\/p>\n<p>nmcli con add type team con-name team0 ifname team0 config &#8216;{&#8220;runner&#8221;:{&#8220;name&#8221;:&#8221;roundrobin&#8221;}}&#8217;<\/p>\n<p>Run ip link command to view the interface available in the system<br \/>\n1, create a bond card<br \/>\nnmcli con add type team con-name team0 ifname team0 config &#8216;{ &#8220;runner&#8221;: { &#8220;name&#8221;: &#8220;roundrobin&#8221;}}&#8217;<br \/>\nvarious modes:<br \/>\nthe METHOD is One of the following: broadcast, activebackup, roundrobin, loadbalance, or lacp.<br \/>\nThe first mode: mod = 0, namely: (balance-rr) Round-robin policy Switch configuration Eth-Trunk<br \/>\nThe second mode: mod = 1, namely: policy The<br \/>\nthird mode: mod = 2, namely: (balance-xor) XOR policy The<br \/>\nfourth mode: mod = 3, namely: broadcast The<br \/>\nfifth mode: mod = 4, namely: (802.3ad) IEEE 802.3ad Dynamic link aggregation<br \/>\nSixth mode: mod = 5, namely: balance-tlb Adaptive transmit load balancing:<br \/>\nThe seventh mode: mod = 6, namely: (balance-alb) Adaptive load balancing (adapter adaptable load balancing)<br \/>\n2, view the creation of the network card<br \/>\nnmcli con show<br \/>\n3, add the load of the network card<br \/>\nnmcli con add type team-slave con-name team0-port1 ifname em1 master team0<br \/>\nnmcli con add type team-slave con-name team0-prot2 ifname em4 master team0<br \/>\n4. Configure IP address and gateway<br \/>\nnmcli con mod team0 ipv4.addresses &#8220;171.16 .41.x \/ 24 &#8221;<br \/>\nnmcli con mod team0 ipv4.gateway&#8221; 171.15.41.x &#8221;<br \/>\nnmcli con mod team0 ipv4.method manual<br \/>\nnmcli con up team0<br \/>\n5, restart the network service<br \/>\nsystemctl restart network<br \/>\n6, check the network card binding status<br \/>\nteamdctl team0 state<br \/>\n7, check NIC binding<br \/>\nnmcli dev dis em1 \/ \/ closed binding state<br \/>\nnmcli dev con em1 \/ \/ restore the binding state<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 7 through nmcli team to achieve multiple network card binding<\/p>\n<p>nmcli con add type team con-name team0 ifname team0 config &#8216;{&#8220;runner&#8221;:{&#8220;name&#8221;:&#8221;roundrobin&#8221;}}&#8217;<\/p>\n<p>Run ip link command to view the interface available in the system 1, create a bond card nmcli con add type team con-name team0 ifname team0 config &#8216;{ &#8220;runner&#8221;: { &#8220;name&#8221;: &#8220;roundrobin&#8221;}}&#8217; various [&#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\/7171"}],"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=7171"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7171\/revisions"}],"predecessor-version":[{"id":7172,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7171\/revisions\/7172"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}