Hi Folks, am trying to setup NIC bonding on my VM (OEL5u6) having two virtualised NICs, i have done the setup which is quite simple however my active-backup mode is not working as expected.
My Bonded interface
[root@Gateway network-scripts]# cat ifcfg-bond0
DEVICE=bond0
IPADDR=192.169.25.2
NETMASK=255.255.255.248
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS='mode=active-backup miimon=1000'
TYPE=Ethernet
individual interfaces
[root@Gateway network-scripts]# cat ifcfg-eth5
DEVICE=eth5
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
[root@Gateway network-scripts]# cat ifcfg-eth6
DEVICE=eth6
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
Bonding status (looks good)
[root@Gateway ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth5
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth5
MII Status: up
Link Failure Count: 0
Permanent HW addr: 08:00:27:12:e1:91
Slave Interface: eth6
MII Status: up
Link Failure Count: 0
Permanent HW addr: 08:00:27:49:9b:91
I am doing a continous ping from another host in the same n/w to this bonded interface IP to check if the ping streak breaks when i test this setup
Testing -
Pulled the cable for eth5 from the VM interface
when i check the bond status now -
[root@Gateway ~]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth6
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth5
MII Status: down
Link Failure Count: 1
Permanent HW addr: 08:00:27:12:e1:91
Slave Interface: eth6
MII Status: up
Link Failure Count: 0
Permanent HW addr: 08:00:27:49:9b:91
MY PING IS NOW BROKEN AND NOT WORKING
Message log contents below, not very helpful am afraid.
[root@Gateway ~]# tail -f /var/log/messages
May 7 13:30:20 Gateway kernel: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
May 7 13:30:20 Gateway kernel: bonding: bond0: Adding slave eth6.
May 7 13:30:20 Gateway kernel: eth6: link up, 100Mbps, full-duplex
May 7 13:30:20 Gateway kernel: bonding: bond0: enslaving eth6 as a backup interface with an up link.
May 7 13:30:24 Gateway kernel: e1000: eth0-eth2 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
May 7 13:30:24 Gateway kernel: ADDRCONF(NETDEV_UP): eth0-eth2: link is not ready
May 7 13:30:24 Gateway kernel: ADDRCONF(NETDEV_CHANGE): eth0-eth2: link becomes ready
May 7 13:31:36 Gateway kernel: eth5: link down
May 7 13:31:36 Gateway kernel: bonding: bond0: link status definitely down for interface eth5, disabling it
May 7 13:31:36 Gateway kernel: bonding: bond0: making interface eth6 the new active one.
Any views what's wrong and how to resolve? appreciate ur replies. Thanks
I have asked this question in 2 more forums (Oracle & LQ), however not able to put the URLs ATM as not a day old in this forum (interesting rule)..
Regards Amit
NIC Bonding not behaving as it should
-
Amit Shil
- Posts: 6
- Joined: 7. May 2013, 09:49
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: OEL5u6
- Location: Kolkata
Re: NIC Bonding not behaving as it should
Kindly note that the Linux side configuration has been checked on Oracle forums
https://forums.oracle.com/forums/thread ... 0&tstart=0
Also, am using the host only adapter on the VM console, have also tried the bonding with internal n/w with failure.
Regards Amit
https://forums.oracle.com/forums/thread ... 0&tstart=0
Also, am using the host only adapter on the VM console, have also tried the bonding with internal n/w with failure.
Regards Amit
-
waldorfm
- Posts: 86
- Joined: 12. Sep 2010, 15:47
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Oracle Linux
Re: NIC Bonding not behaving as it should
Oracle VM Virtualbox and Oracle Linux network bonding config-howto
https://forums.oracle.com/forums/thread ... ID=2544040
https://forums.oracle.com/forums/thread ... ID=2544040
-
Amit Shil
- Posts: 6
- Joined: 7. May 2013, 09:49
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: OEL5u6
- Location: Kolkata
Re: NIC Bonding not behaving as it should
The correct configuration has been documented here, this issue got resolved once the solution was implemented.
https://forums.oracle.com/thread/2546040
https://forums.oracle.com/thread/2546040