LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2013, 06:41 AM   #1
shil01amit
LQ Newbie
 
Registered: May 2013
Location: Kolkata
Distribution: OL6
Posts: 6

Rep: Reputation: Disabled
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
 
Old 05-06-2013, 05:21 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Can you please retry by reducing miimon value. In my setup miimon is set to 1 its its working fine

Quote:
BONDING_OPTS='mode=active-backup miimon=100'

Thanks
 
Old 05-06-2013, 05:34 AM   #3
shil01amit
LQ Newbie
 
Registered: May 2013
Location: Kolkata
Distribution: OL6
Posts: 6

Original Poster
Rep: Reputation: Disabled
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)
 
Old 05-06-2013, 06:25 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Here, From OS perspective everything seems good. There could be issue with VM environment. Which Virtualzation software you are using?

Thanks
 
Old 05-06-2013, 06:30 AM   #5
shil01amit
LQ Newbie
 
Registered: May 2013
Location: Kolkata
Distribution: OL6
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-06-2013, 06:42 AM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
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
 
Old 05-06-2013, 07:06 AM   #7
shil01amit
LQ Newbie
 
Registered: May 2013
Location: Kolkata
Distribution: OL6
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-06-2013, 10:02 AM   #8
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 563

Rep: Reputation: 56
I believe host only means only the host would be able to see the VM, nothing else...
 
Old 05-06-2013, 01:06 PM   #9
shil01amit
LQ Newbie
 
Registered: May 2013
Location: Kolkata
Distribution: OL6
Posts: 6

Original Poster
Rep: Reputation: Disabled
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) ...
 
Old 05-07-2013, 02:43 AM   #10
shil01amit
LQ Newbie
 
Registered: May 2013
Location: Kolkata
Distribution: OL6
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nic Bonding mstjohn1974 Slackware 9 06-15-2012 10:26 PM
NIC Bonding carlosinfl Red Hat 4 07-28-2011 08:25 AM
NIC Bonding: Does not failover successfully. Only one NIC is active Akhran Debian 2 02-18-2011 07:26 PM
NIC bonding Winanjaya Linux - Networking 1 03-26-2010 06:48 AM
bonding NIC's mrose1120 Linux - Networking 5 10-04-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration