nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Bonding mode not changing

This is a discussion on Bonding mode not changing within the Linux software forums, part of the Linux Getting Started category; I have mode=1 in my modules.conf. However, looking at /proc/net/bonding/bond0 shows that it is in round-robin load balancing phase. I've ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-05-2007, 11:41 PM
Junior Member
User
 
Join Date: Mar 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bdptcob
Default Bonding mode not changing

I have mode=1 in my modules.conf. However, looking at /proc/net/bonding/bond0 shows that it is in round-robin load balancing phase. I've restarted networking several times to no avail. Any idea why this is not changing?
Reply With Quote
  #2 (permalink)  
Old 01-06-2007, 12:11 AM
Senior Member
User
 
Join Date: Jun 2005
Posts: 137
Thanks: 21
Thanked 4 Times in 3 Posts
Rep Power: 5
jerry is on a distinguished road
Default

Reboot the box or remove module and again reload. I hope you have correct syntax in modules.conf file.
Reply With Quote
  #3 (permalink)  
Old 01-06-2007, 01:11 AM
Junior Member
User
 
Join Date: Mar 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bdptcob
Default

Thanks. I figured it out. Problem seemed to stem from having the alias bond0 bonding in the modules.conf while everything else was using modprobe.conf. Moving alias bond0 bonding to modprobe.conf resolved the issue. However,I've encountered another annoyance. For some reason, bonding starts both eth0 and eth1 and then downs eth1 for some reason. This only occurs during boot. If I manually restart the network, both eth0 and eth1 come up and stay up.
Here is my dmesg:

ip_tables: (C) 2000-2002 Netfilter core team
ip_tables: (C) 2000-2002 Netfilter core team
bonding: bond0: enslaving eth0 as a backup interface with a down link.
bonding: bond0: enslaving eth1 as a backup interface with a down link.
tg3: eth0: Link is up at 1000 Mbps, full duplex.
tg3: eth0: Flow control is off for TX and off for RX.
bonding: bond0: link status definitely up for interface eth0.
bonding: bond0: making interface eth0 the new active one.
tg3: eth1: Link is up at 1000 Mbps, full duplex.
tg3: eth1: Flow control is on for TX and on for RX.
bonding: bond0: link status definitely up for interface eth1.
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
lp: driver loaded but no devices found
NET: Registered protocol family 10
Disabled Privacy Extensions on device c0332e60(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
bonding: bond0: link status definitely down for interface eth1, disabling it
bond0: no IPv6 routers present
eth0: no IPv6 routers present
Reply With Quote
  #4 (permalink)  
Old 05-06-2007, 10:29 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,709
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

may be some sort of bug just update software and kernel to latest version.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 18-11-2009, 11:45 AM
Junior Member
User
 
Join Date: Sep 2009
Location: Hyderabad,India.
OS: Solaris
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gparitala85 is on a distinguished road
Default Eventhough bonding mode=6 i set it is showing roundrobin in /proc/net/bonding/bond0

[root@str-im-01 ~]# modprobe bonding mode=6 miimon=100
[root@str-im-01 ~]# service network restart
Shutting down interface bond0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface bond0: [ OK ]
[root@str-im-01 ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.2.4 (January 28, 200

Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 80 Up Delay (ms): 0 Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:22:19:b0:2d:64

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:22:19:b0:2d:66
Reply With Quote
  #6 (permalink)  
Old 18-11-2009, 11:47 AM
Junior Member
User
 
Join Date: Sep 2009
Location: Hyderabad,India.
OS: Solaris
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gparitala85 is on a distinguished road
Default Bonding mode problem

[root@str-im-01 ~]# cat /sys/class/net/bond0/bonding/mode
balance-rr 0
Reply With Quote
  #7 (permalink)  
Old 18-11-2009, 11:50 AM
Junior Member
User
 
Join Date: Sep 2009
Location: Hyderabad,India.
OS: Solaris
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gparitala85 is on a distinguished road
Default Bonding mode problem

Bonding mode not changing
I have mode=1 in my modules.conf. However, looking at /proc/net/bonding/bond0 shows that it is in round-robin load balancing phase. I've restarted networking several times to no avail. Any idea why this is not changing?

Same problem.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Kubuntu / Ubuntu Lan Ethernet card bonding Tutorial alex.inoa Networking, Firewalls and Security 8 24-07-2008 01:27 PM
Real-Mode & Protected-Mode amsreeku Linux hardware 2 04-09-2007 09:02 PM
Bonding Error puppen Linux software 0 19-01-2007 10:56 AM
LAN Speed for Bonding or Teaming puppen Linux software 11 15-05-2006 06:38 PM
changing dir sparky Shell scripting 8 30-03-2006 03:14 AM


All times are GMT +5.5. The time now is 12:17 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38