Networking Forums

Networking Forums > Computer Networking > Linux Networking > bonded interface causes udev error after reboot

Reply
Thread Tools Display Modes

bonded interface causes udev error after reboot

 
 
veloxxswiftfox@gmail.com
Guest
Posts: n/a

 
      10-31-2008, 04:45 AM
While testing a redundant network interface in an OpenSUSE 11.0 I ran
into an error condition which prevents bonded interfaces coming up
again on reboot. It appears to be related to the udev persistent net
naming scheme, and can be easily reproduced.

eth0 and eth1 were configured as off, bond0 was configured as active-
backup using eth0 and eth1 as slaves, largely as configured by yast,
plus:

> BONDING_MODULE_OPTS='mode=1 miimon=100 use_carrier=0 primary=eth0'
> BONDING_SLAVE_0='eth0'
> BONDING_SLAVE_1='eth1'


added to /etc/sysconfig/ifcfg-bond0.
On rebooting to restart the network and initialize the bond0 interface
all worked perfectly. On a second reboot, however, the eth1 interface
was renamed to "eth1_rename". since there was no eth1 slave the
bonded interface failed to start (itself very odd because the
redundancy of the bond should only require one working interface).

I noticed eth1's MAC address had been replaced by one identical to
eth0. This is evidently a normal thing for the bonding interface to
do. on reboot this confuses udev's persistent net naming rules, which
use the MAC address to assign the interface name, into naming the
interface eth1_rename_ren. It did not happen the first reboot because
the interface had not yet reprogrammed the MAC address.

I was able to create a workaround for this problem by using lspci to
determine the PCI bus ID, and changing lines in /etc/udev/rules.d/70-
persistent-net.rules ("You can modify it,as long as you keep each rule
on a single line"), such as changing:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:1c:c0:33:00:5b", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"
to use the PCI bus ID to identify the devices:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
KERNELS=="0000:02:00.0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Is there a different or easier workaround for this problem, and is it
likely to cause problems, if the network card are not moved or PCI
addresses change?
 
Reply With Quote
 
 
 
Reply

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
Lost default gateway problem with Bonded interface bc9ams@gmail.com Linux Networking 0 07-04-2007 01:12 PM
Odd occurences with udev and wireless networking Geico Caveman Linux Networking 0 08-08-2006 03:57 PM
bonded interface in linux renjith Linux Networking 2 03-07-2006 08:52 AM
ipw2200 + ML 10.2 + kernel 2.6.14 + firmware_helper + udev + hotplug questions johnny Wireless Internet 2 11-14-2005 01:29 PM
Interface error and packet filter error for Remote Access Tony Birnseth Windows Networking 0 09-19-2004 04:28 PM



1 2 3 4 5 6 7 8 9 10 11