NIC Bonding not behaving as it should
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-eth2 DEVICE=eth2 HWADDR=08:00:27:1e:57:cf MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no [root@Gateway network-scripts]# cat ifcfg-eth4 DEVICE=eth4 HWADDR=08:00:27:46:69:69 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no Bonding status (looks good) [root@Gateway network-scripts]# 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: eth2 MII Status: up MII Polling Interval (ms): 1000 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth2 MII Status: up Link Failure Count: 0 Permanent HW addr: 08:00:27:1e:57:cf Slave Interface: eth4 MII Status: up Link Failure Count: 0 Permanent HW addr: 08:00:27:46:69:69 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 - [root@Gateway network-scripts]# ifenslave -c bond0 eth4 and that's it my SSH connection is gone, and ping is broken with "Request timed out" when i check the bond status now - Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth4 MII Status: up MII Polling Interval (ms): 1000 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth2 MII Status: up Link Failure Count: 0 Permanent HW addr: 08:00:27:1e:57:cf Slave Interface: eth4 MII Status: up Link Failure Count: 0 Permanent HW addr: 08:00:27:46:69:69 am afraid there's not much help in the message log to debug this. Any views what's wrong and how to resolve? appreciate ur replies. Thanks Regards Amit |
Can you please retry by reducing miimon value. In my setup miimon is set to 1 its its working fine
Quote:
Thanks |
Hi Vishesh,
No still no joy mate :( .. tried changing the param to 1, 10, 100 and retested with failure.. I have since my last comment changed the eth settings of the underlying interfaces which makes up bond0 to remove a HW Address conflict error i was receiving in the message log (nothing to do with this issue but informing)... [root@Gateway network-scripts]# cat ifcfg-eth2 DEVICE=eth2 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no [root@Gateway network-scripts]# cat ifcfg-eth4 DEVICE=eth4 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no Bonding driver has been loaded correctly [root@Gateway network-scripts]# lsmod | grep -i bond bonding 102210 0 ipv6 264702 40 sit,bonding,ip6t_REJECT,nf_conntrack_ipv6 bond0 alias too has been defined correctly. [root@Gateway network-scripts]# cat /etc/modprobe.d/bonding.conf alias bond0 bonding full ifconfig -a output below - [root@Gateway network-scripts]# ifconfig -a bond0 Link encap:Ethernet HWaddr 08:00:27:1E:57:CF inet addr:192.169.25.2 Bcast:192.169.25.7 Mask:255.255.255.248 inet6 addr: fe80::a00:27ff:fe1e:57cf/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:15866 errors:0 dropped:0 overruns:0 frame:0 TX packets:2299 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1182423 (1.1 MiB) TX bytes:296743 (289.7 KiB) eth0-eth2 Link encap:Ethernet HWaddr 08:00:27:1E:57:CF inet addr:192.167.25.2 Bcast:192.167.25.7 Mask:255.255.255.248 inet6 addr: fe80::a00:27ff:fe1e:57cf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9862 errors:0 dropped:0 overruns:0 frame:0 TX packets:376 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:785517 (767.1 KiB) TX bytes:32841 (32.0 KiB) eth2 Link encap:Ethernet HWaddr 08:00:27:1E:57:CF UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:9813 errors:0 dropped:0 overruns:0 frame:0 TX packets:2249 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:780567 (762.2 KiB) TX bytes:293903 (287.0 KiB) eth3-eth2 Link encap:Ethernet HWaddr 08:00:27:1E:57:CF BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) eth4 Link encap:Ethernet HWaddr 08:00:27:1E:57:CF UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:6054 errors:0 dropped:0 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:401916 (392.4 KiB) TX bytes:3548 (3.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:83 errors:0 dropped:0 overruns:0 frame:0 TX packets:83 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8836 (8.6 KiB) TX bytes:8836 (8.6 KiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) virbr0 Link encap:Ethernet HWaddr 8E:16:0F:33:48:BD inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
Here, From OS perspective everything seems good. There could be issue with VM environment. Which Virtualzation software you are using?
Thanks |
Hi,
I am using Oracle VM VirtualBox Manager .. and this is the second time am trying NIC bonding on the same env (it worked earlier) however i purged teh setup in favour of something else and while now resurrecting getting this situation now, don't beleive the env's a problme when it worked on the same setup earlier. regards Amit |
Hopefully VirtualBox assigned different mac addr to both interfaces. Also what sort of network it is
I mean NAT/ Bridging / Host Based / Internal Network A few months back, I applied same on "Internal Network" and it worked. The configuration of worked setup also mentioned in my blog (given in my signature). Let me know if this can help you Thanks |
The NICs are setup in "Host only Adapter mode", am seeking some advice in Oracle forums as well .. if nothing works out i'll try to do the setup in internal network mode and post the feedback in here..
Thanks for all your help. Regards Amit |
I believe host only means only the host would be able to see the VM, nothing else...
|
sorry what do you mean by nothing else? Host only adapter gives you a robust n/w b/w the host and guest (except the internet) ...
|
Hi,
This is the Oracle forum link to the same issue, also would be opening a thread in the VM forum. https://forums.oracle.com/forums/thr...ageID=11003325 Regards Amit |
All times are GMT -5. The time now is 04:45 PM. |