//
[root @ sr - network - scripts iov - 1] # cat ifcfg - bond0
DEVICE=bond0
IPADDR=12.12.12.11
# NETWORK 192.168.1.0=
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
[root @ sr - network - scripts iov - 1] #
/root @ sr - iov 1 ~ # cat/proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault - how they (the active - backup)
Primary Slave: None
Currently Active Slave: eno16777984
MII Status: the up
MII Polling Interval (ms) : 100
The Up Delay (ms) : 0
The Down Delay (ms) : 0
Slave Interface: eno16777984
MII Status: the up
Speed: 10000 Mbps
Duplex: full
The Link Failure Count: 0
Permanent HW addr: 00:0 c: but e: bf: c9
Slave queue ID: 0
Slave Interface: eno33561344
MII Status: the up
Speed: 10000 Mbps
Duplex: full
The Link Failure Count: 0
Permanent HW addr: 00:0 c: but e: bf: ca
Slave queue ID: 0
/root @ sr - iov 1 ~ #
At this point, you can on other machines ping bond0 12.12.12.11, nic eno16777984 for active network adapter,
Use eno16777984 command ifconfig eno16777984 down after bond0 information is as follows:
/root @ sr - iov 1 ~ # cat/proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault - how they (the active - backup)
Primary Slave: None
Currently Active Slave: eno33561344
MII Status: the up
MII Polling Interval (ms) : 100
The Up Delay (ms) : 0
The Down Delay (ms) : 0
Slave Interface: eno16777984
MII Status: down
Speed: 10000 Mbps
Duplex: full
The Link Failure Count: 1
Permanent HW addr: 00:0 c: but e: bf: c9
Slave queue ID: 0
Slave Interface: eno33561344
MII Status: the up
Speed: 10000 Mbps
Duplex: full
The Link Failure Count: 0
Permanent HW addr: 00:0 c: but e: bf: ca
Slave queue ID: 0
/root @ sr - iov 1 ~ #
Online instructions, will have active network card to switch to eno33561344,
But this time, ping 12.12.12.11 can't anymore, excuse me, is this why?
CodePudding user response:
When donw off a network card, the cat/proc/net/bonding/bond0 available to see the current active network card has the switch, why can'tCodePudding user response:
Currently Active Slave: eno33561344 has carried on the switch, but use ifconfig bond0 MAC address, is still the address before switching on,CodePudding user response:
The set fail_over_mac to instruct the bond to assign the MAC address of the active interface to the bond (this is required if you are testing with VMWare server, and is not rquired if you are using physical NICs),Truth: bonging driver must be fail_over_mac to=1 set