Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-08-2014, 04:01 AM
|
#1
|
LQ Newbie
Registered: Apr 2014
Posts: 7
Rep:
|
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?
|
|
|
09-11-2014, 06:17 PM
|
#2
|
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:
|
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?
|
|
|
09-11-2014, 07:25 PM
|
#3
|
LQ Addict
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316
|
Quote:
Originally Posted by amjadhpc
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.
|
09-12-2014, 01:32 AM
|
#4
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|