LinuxQuestions.org
Review your favorite Linux distribution.
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 09-08-2014, 04:01 AM   #1
amjadhpc
LQ Newbie
 
Registered: Apr 2014
Posts: 7

Rep: Reputation: Disabled
Bonding, one slave always down and does not come up


Hello,

I am using RHEL 6.5 and trying to setup a bond interface with interface eth0 and eth2.

Here are the network-scripts

ifcg-eth0

DEVICE=eth0
BOOTPROTO=none
HWADDR=00:E0:ED:21:46:B0
MASTER=bond0
SLAVE=yes
ONBOOT=no
TYPE=Ethernet

ifcfg-eth2

DEVICE=eth2
HWADDR=00:E0:ED:2D:20:62
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
ONBOOT=no
TYPE=Ethernet

ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.10.10
NETMASK=255.255.255.0
NETWORK=192.168.10.0
BROADCAST=192.168.10.255
BOOTPROTO=none
Type=Ethernet
ONBOOT=yes
BONDING_OPTS='miimon=100 mode=1'
~
Bonding status


/proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 00:e0:ed:21:46:b0
Slave queue ID: 0

Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 3
Permanent HW addr: 00:e0:ed:2d:20:62
Slave queue ID: 0

this is in bonding.conf
cat /etc/modprobe.d/bonding.conf
alias bond0 bonding

This is in dmesg
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
bonding: bond0: Setting MII monitoring interval to 100.
bonding: bond0: setting mode to active-backup (1).
bonding: bond0: Setting MII monitoring interval to 100.
bonding: bond0: setting mode to active-backup (1).
bonding: bond0: Setting MII monitoring interval to 100.
bonding: bond0: setting mode to active-backup (1).
ADDRCONF(NETDEV_UP): bond0: link is not ready
8021q: adding VLAN 0 to HW filter on device bond0
bonding: bond0: Setting MII monitoring interval to 100.
bonding: bond0: setting mode to active-backup (1).
bonding: bond0: Adding slave eth0.
8021q: adding VLAN 0 to HW filter on device eth0
(null): Dropping TSO features since no CSUM feature.
(null): Dropping TSO6 features since no CSUM feature.
bonding: bond0: enslaving eth0 as a backup interface with a down link.
bonding: bond0: Adding slave eth2.
8021q: adding VLAN 0 to HW filter on device eth2
(null): Dropping TSO features since no CSUM feature.
(null): Dropping TSO6 features since no CSUM feature.
bonding: bond0: enslaving eth2 as a backup interface with a down link.
ADDRCONF(NETDEV_UP): bond0: link is not ready
8021q: adding VLAN 0 to HW filter on device bond0
igb: eth2 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
ixgbe 0000:04:00.0: registered PHC device on eth6


Any reason why eth0 can not come up?
 
Old 09-11-2014, 06:17 PM   #2
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Pull the cable on the nic that is running, the other nic should come up automatically.
This is what the config looks like similar to raid 1. one drive fails the other mirrored
pops into play.

Is this what you want it to do, or do you want both to work at sametime?
 
Old 09-11-2014, 07:25 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by amjadhpc View Post
Any reason why eth0 can not come up?
A few shots in the dark:

Is NetworkManager running? If yes it can interfere in unpredictable ways, since you didn't specify NM_CONTROLLED=no in the ifcfg files.

Also, what happens when you set eth0 up manually? You could try three methods:
service network restart
ifup eth0
ip link set dev eth0 up

I tried your configuration in a virtual machine, and my result is different - both interfaces are up. However, I am a bit surprised to see ONBOOT=no in your config files. It might not matter, but /usr/share/doc/kernel-doc-2.6.32/Documentation/networking/bonding.txt sets ONBOOT to yes.
 
1 members found this post helpful.
Old 09-12-2014, 01:32 AM   #4
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
Network Manager doesn't cause things to act unpredictably, network Manager flat out does not work with bonds in RHEL 6.5. RHEL 7 is another story.

So put the nm_controlled=no key in all 3 files, stop network Manager, chkconfig it off, as well. Then run service network restart, but you may need to reboot it to get thing working right again.

Here's the bonding guide for RHEL 6.5 and under: https://access.redhat.com/articles/172483
 
  


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
MySQL Slave - Log queries including those executed on Slave Replay helptonewbie Linux - Server 0 04-11-2012 06:17 AM
MySQL Master-Slave Replication - How to make the slave read-only? saagar Linux - Server 1 08-31-2010 08:13 AM
bonding bonding-xor and bonding-alb Chrysalis Linux - Networking 1 10-24-2009 02:14 PM
Infiniband Bonding and Ethernet Bonding edcrozer Linux - Networking 0 11-07-2007 03:57 PM
problem with bonding slave interfaces zamri Linux - Networking 1 10-12-2006 08:48 PM

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

All times are GMT -5. The time now is 03:02 PM.

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