You are not logged in.

#1 2012-06-21 19:24:00

battlepanic
Member
Registered: 2009-08-22
Posts: 76

network interface naming (eth0, eth1, ...) is broken

I have recently noticed that the naming of my wired and wireless network interfaces sometimes gets mixed up on boot.  While the
current revision of the udev wiki article mentions a way to set static device names in udev, I don't recall running into this problem in the past.  Has something changed here?

Also the /usr/lib/udev/write_net_rules script mentioned in the wiki article doesn't appear to exist on my system.

Is straightening out my network interface naming something that udev can sort out on it's own, by default, in a reasonable way?

Offline

#2 2012-06-21 20:17:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: network interface naming (eth0, eth1, ...) is broken

To figure out the cause, we'd need more information.  What are devices, what drivers are you using, etc.

For a workaround, I don't know why you'd need a script to write a udev rule for this; the "rule" would only be one line like the following:

SUBSYSTEM=="net", ATTR{address}=="aa:bb:cc:dd:ee:ff", NAME="eth0"

with the mac address of the card and the interface name you want in the quotes.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2012-06-21 21:37:21

battlepanic
Member
Registered: 2009-08-22
Posts: 76

Re: network interface naming (eth0, eth1, ...) is broken

Trilby wrote:

To figure out the cause, we'd need more information.  What are devices, what drivers are you using, etc.

according to lspci the two network devices are as follows:

06:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG [Calexico2] Network Connection (rev 05)
06:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller Mobile (rev 03)

I believe the wireless network controller using the ipw2200 kernel module.  I'm not sure what driver the wired network controller is using.  Is there a way to find this information?

Offline

#4 2012-06-21 21:43:33

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: network interface naming (eth0, eth1, ...) is broken

lspci -k

ipw2200 and ipw2100 are (I think) the only wifi drivers that create ethN interfaces instead of wlanN ones - hence the confusion. As advised above, udev will fix it for you.

Offline

Board footer

Powered by FluxBB