PDA

View Full Version : [ubuntu] udev, Init.d and eth0-4 problems



poundjd
April 10th, 2009, 04:58 PM
ALl,
I have an ubuntu box that I am building. When the OS install was complete I noticed a problem. My motherboard's NIC was eth2 and the Sundance card's were eth0, 1,3, & 4. What I need is for the Motherboard's Nic to be eht0, and the Sundance's NIC's to be eth1-4 in order. I have tried shutting down the udev and networking services and then editing the /etc/udev/rules.d/70-persistent-net.rules file and the restarting the services, but that does not work. I've tried rebooting after editing the file and that does not work. I've tried rebooting after deleting the file and that does not work. I'm quite frustrated on how to get this fixed. Any help will be appreciated.

The original /etc/udev/rules.d/70-persistent-net.rules file:
--------------------------------------------------------------
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x8086:0x1064 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:20:0c:56:2b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
--------------------------------------------------------------
The desired /etc/udev/70-persistent-net.rules file:
--------------------------------------------------------------
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
#
# Edit history:
# 2009 04 09 JDP Modified file to move eth0 to motherboard NIC, and sundance NIC to eth1-4.
#

# PCI device 0x8086:0x1064 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:20:0c:56:2b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x1186:0x1002 (sundance)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:05:5d:5e:89:b4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
--------------------------------------------------------------

thanks for all help.
-jeff

PS one thing that I have noticed is that the sundance interface which was eht0 always has an IPV6 address assigned, I don't know if that has any bearing or not.