LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-22-2008, 09:38 AM   #1
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Rep: Reputation: 32
bonding problem


Hi,

I am running WindRiver Linux on a pentium4 system. It seems to me that it's has the same basic architecture as red hat so the settings can be set as the same (although I might be wrong).

Now, I've run into problems bonding two NIC's. This is what I've done:

In /etc/sysconfig/networks-scripts/ifcfg-bond0:
Code:
DEVICE=bond0
IPADDR=10.90.90.6
NETWORK=10.90.90.0
NETMASK=255.255.255.0
BROADCAST=10.90.90.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
In /etc/sysconfig/networks-scripts/ifcfg-eth2:
Code:
DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
In /etc/sysconfig/networks-scripts/ifcfg-eth3:
Code:
DEVICE=eth3
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
In /etc/modeprobe.conf AND /etc/modules.conf (None of them were existing so I created them both):
Code:
alias bond0 bonding
options bond0 miimon=100 mode=1
With all this settings, I can't ping 10.90.90.9 (I have the same setting on the this machine as well) and 10.90.90.20 which is in the same network. I'm suspecting the bonding is not working.

ifconfig says:
Code:
bond0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:10.90.90.6  Bcast:10.90.90.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MASTER 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)

eth2      Link encap:Ethernet  HWaddr 00:A0:A5:5D:AD:82  
          inet6 addr: fe80::2a0:a5ff:fe5d:ad82/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:742 (742.0 b)
          Base address:0x5c00 Memory:f43e0000-f4400000 

eth3      Link encap:Ethernet  HWaddr 00:A0:A5:5D:AD:83  
          inet6 addr: fe80::2a0:a5ff:fe5d:ad83/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:742 (742.0 b)
          Base address:0x5800 Memory:f43c0000-f43e0000
route says:
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth6
10.90.90.0      *               255.255.255.0   U     0      0        0 bond0
default         10.90.90.101    0.0.0.0         UG    0      0        0 bond0
I had a setting in a diffent system and it works:
Code:
auto bond0
iface bond0 inet static
                address 10.90.90.6
                network 10.90.90.0
                netmask 255.255.255.0
                broadcast 10.90.90.255
                up ifenslave bond0 eth2 eth3
                down ifenslave -d bond0 eth0 eth3
                up route add default gw 10.90.90.101 bond0
                down route del default gw 10.90.90.101 bond
Any ideas ?

Thanks,
Indy
 
Old 05-23-2008, 04:09 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
something definitely wrong there - the HW address of bond0 should
be one of the physical NICs HW address (in failover mode, bond0 and
the rest of the slave NICs will show the same HW address).

try reloading the bonding module with the primary device included.

also, run ethtool on your network devices (ethX).
 
Old 05-23-2008, 08:38 AM   #3
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Original Poster
Rep: Reputation: 32
born4linux,

How do you mean 'reloading the bonding module with the primary device included.' ?

Can you give an example?

Indy
 
Old 05-24-2008, 11:29 AM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
1. stop your network
2. unload the bonding module:

rmmod bonding

3. load it:

modprobe bonding miimon=100 mode=1 primary=ethX

or just edit /etc/modprobe.conf and add

primary=eth3

and reboot.
 
Old 05-26-2008, 04:32 AM   #5
freeindy
Member
 
Registered: Nov 2002
Posts: 207

Original Poster
Rep: Reputation: 32
ok. I found the problem. Could be specific to WindRiver, I don't know.

The NIC's are not slaved. I had to use ifenslave specifically to make it work. I presume that it should make the NIC's enslaved by the cfg files but it didn't. And the reason comes down to that the the utility ifenslave is not located in /sbin/ where the network looks for. so simply by putting an soft link in the /sbin/ directory, it works.

Thanks for your help born4linux. Your HW address problem helped. It didn't even look at it from the beginning.

Indy
 
  


Reply



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
RHEL4 bonding problem sc425000 Linux - Networking 4 07-15-2009 11:59 PM
Infiniband Bonding and Ethernet Bonding edcrozer Linux - Networking 0 11-07-2007 03:57 PM
networkin bonding problem binary_0011 Linux - Networking 2 01-31-2007 08:40 PM
NIC Bonding Problem jon3k Linux - Networking 4 08-31-2004 02:36 PM
Redhat 8.0 bonding Problem FragInHell Linux - Networking 0 05-26-2004 01:26 PM

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

All times are GMT -5. The time now is 01:33 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