On 12/17/06, Maxim Vexler <[EMAIL PROTECTED]> wrote:
Hi List,

I've have 2 NIC's in my home machine, a Intel(R) PRO/1000GT and a
RealTek RTL8139

When the system boots it creates the following (odd) kernel naming
schema, I haven't messed with any of my udev.d rules.
<<<
# ls /sys/class/net/
eth0  eth1_rename_ren  lo  sit0


See #394047, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=394047

Following the input from the bug report, I looked at my
z25_persistent-net.rules and did found the borked config
<<<
cat /etc/udev/rules.d/z25_persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably 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 10ec:8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", SYSFS{address}=="00:40:f4:92:86:73",
NAME="eth0"

# PCI device 0x8086:0x107c (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0e:0c:b2:de:29",
NAME="eth0"


I think this deserves a FAQ of it's in the faq section of linux-il's website ;)

For future searchers, and for google - a good work around and a
recommended(?) configuration is :

<<<
dynamic:~# cat /etc/udev/rules.d/010_nicinterface.rules
SUBSYSTEM=="net", SYSFS{address}=="00:40:f4:92:86:73", NAME="rtl8139"
SUBSYSTEM=="net", SYSFS{address}=="00:0e:0c:b2:de:29", NAME="pro1000"

dynamic:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.

# The primary network interface
allow-hotplug pro1000
iface pro1000 inet dhcp
       # Additional static address for this NIC
       # Workaround for "iface pro1000:1" doesn't seem to work
       up ifconfig $IFACE:1 192.168.2.30 netmask 255.255.255.0


# Second network interface, backup
allow-hotplug rtl8139
iface rtl8139 inet dhcp


Thank you for your help.

--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to