Redhat 7 Although the new teaming technology supports dual-NIC bindings, bonding technology can still be used, but slightly different from the configuration of Redhat 6.
Configuring bond bindings for load Balancing mode
Create and edit the bond0 configuration file:vi ifcfg-bond0, and fill in the following: where mode=6 represents a different load-balancing mode for MAC addresses
Bootproto=static
Device=bond0
Name=bond0
Type=bond
Bonding_master=yes
Onboot=yes
ipaddr=192.168.10.5
Prefix=24
gateway=
dns=
Bonding_opts= "Miimon=100mode=6"
650) this.width=650; "title=" 01.png "style=" Float:none; "alt=" wkiom1djk7haasecaaanamblucs449.png "src=" http:/ S3.51cto.com/wyfs02/m00/82/e0/wkiom1djk7haasecaaanamblucs449.png "/>
Edit the Subordinate interface profile:vi ifcfg-eno16777736, and fill in the following:
Type=ethernet
Bootproto=none
device=eno16777736
name=eno16777736
Bonding_master=yes
Onboot=yes
Master=bond0
Slave=yes
650) this.width=650; "title=" 02.png "style=" Float:none; "alt=" wkiom1djk7kgy8y7aaah9epwxvc665.png "src=" http:/ S4.51cto.com/wyfs02/m00/82/e0/wkiom1djk7kgy8y7aaah9epwxvc665.png "/>
To edit the second subordinate interface configuration file: vi ifcfg-eno33554960 , and fill in the following content:
Type=ethernet
Bootproto=none
device=eno33554960
name=eno33554960
Bonding_master=yes
Onboot=yes
Master=bond0
Slave=yes
650) this.width=650; "title=" 03.png "style=" Float:none; "alt=" wkiol1djlmism5faaaajnw9gmhu529.png "src=" http:/ S4.51cto.com/wyfs02/m00/82/df/wkiol1djlmism5faaaajnw9gmhu529.png "/>
Restart the network service for BOND0 to take effect
650) this.width=650; "title=" 04.png "style=" Float:none; "alt=" wkiom1djk7kjdu7eaaaekes4kt0941.png "src=" http:/ S4.51cto.com/wyfs02/m01/82/e1/wkiom1djk7kjdu7eaaaekes4kt0941.png "/>
Check the status of the network card:IP Add, the red box can be seen configured to take effect, 4 cards in the first two network cards have been effective as bond0 slave interface, and the MAC address is not the same, so the switch port does not need to do any configuration
650) this.width=650; "Width=" 915 "height=" 336 "title=" 05.png "style=" Width:733px;height:287px;float:none; "alt=" Wkiol1djlmmifcjdaabw_tud87w922.png "src=" Http://s4.51cto.com/wyfs02/M01/82/DF/wKioL1djlMmifCJdAABW_TUD87w922.png "/>
To view the status of Bond0:cat/proc/net/bonding/bond0, you can see that the status of Bond0 is normal
650) this.width=650; "title=" 06.png "style=" Float:none; "alt=" wkiol1djlmnr9s1taaa6sr_v5fm388.png "src=" http:/ S3.51cto.com/wyfs02/m00/82/df/wkiol1djlmnr9s1taaa6sr_v5fm388.png "/>
Test , first long ping, then Disconnect one of the network card connection, no packet loss occurred
650) this.width=650; "Width=" 971 "height=" 338 "title=" 07.png "style=" Width:732px;height:244px;float:none; "alt=" Wkiom1djk7ojlwi1aabasxruory730.png "src=" Http://s3.51cto.com/wyfs02/M02/82/E1/wKiom1djk7Ojlwi1AABasXrUOrY730.png "/>
650) this.width=650; "title=" 08.png "style=" Float:none; "alt=" wkiom1djk7oy3yx1aaapshggg00198.png "src=" http:/ S3.51cto.com/wyfs02/m01/82/e1/wkiom1djk7oy3yx1aaapshggg00198.png "/>
also see that the current active slave NIC automatically switches to eno33554960
650) this.width=650; "title=" 09.png "style=" Float:none; "alt=" wkiol1djlmqqkucdaaa5bbtrrtm317.png "src=" http:/ S3.51cto.com/wyfs02/m02/82/e0/wkiol1djlmqqkucdaaa5bbtrrtm317.png "/>
Configuring Bond bindings for the main standby mode
Similarly, create a binding for the main standby mode for the remaining two NICs bond1,mode=1 is the primary standby mode
650) this.width=650; "title=" 10.png "style=" Float:none; "alt=" wkiol1djlmqh8w5gaab6fvjpwdg887.png "src=" http:/ S1.51cto.com/wyfs02/m01/82/e0/wkiol1djlmqh8w5gaab6fvjpwdg887.png "/>
650) this.width=650; "title=" 11.png "style=" Float:none; "alt=" wkiom1djk7ww3p72aaa4zjyssz8138.png "src=" http:/ S4.51cto.com/wyfs02/m00/82/e1/wkiom1djk7ww3p72aaa4zjyssz8138.png "/>
test: First length Ping , and then disconnect one of the network cards, no drop packets occur
650) this.width=650; "Width=" 943 "height=" 447 "title=" 12.png "style=" Width:690px;height:323px;float:none; "alt=" Wkiol1djlmzbh83eaab1jrokluc446.png "src=" Http://s4.51cto.com/wyfs02/M00/82/E0/wKioL1djlMzBH83EAAB1jROKlUc446.png "/>
650) this.width=650; "title=" 14.png "style=" Float:none; "alt=" wkiol1djlmzhrp7uaaaiovq59xa647.png "src=" http:/ S4.51cto.com/wyfs02/m01/82/e0/wkiol1djlmzhrp7uaaaiovq59xa647.png "/>
both sets of bindings can simultaneously Ping Pass
650) this.width=650; "title=" 15.png "style=" Float:none; "alt=" wkiom1djk7fdqtnhaabrbhkoozg522.png "src=" http:/ S4.51cto.com/wyfs02/m02/82/e1/wkiom1djk7fdqtnhaabrbhkoozg522.png "/>
This article is from the "Jiangjianrong Technology blog" blog, make sure to keep this source http://jiangjianlong.blog.51cto.com/3735273/1790294
RedHat 7 Configuration Bonding dual NIC Binding