| View previous topic :: View next topic |
| Author |
Message |
kds66 Apprentice

Joined: 17 Oct 2006 Posts: 166 Location: Manaus, Brazil
|
Posted: Sun Mar 02, 2008 8:18 am Post subject: [solved] Why is wlan0 renamed eth1? |
|
|
Somehow my wireless interface gets renamed eth1 during initialization. Does anybody know why that is done? Where can I configure that the original name wlan0 shall be retained?
Last edited by kds66 on Sun Mar 02, 2008 4:50 pm; edited 1 time in total |
|
| Back to top |
|
 |
gerdesj Guru


Joined: 29 Sep 2005 Posts: 508 Location: Yeovil, Somerset, UK
|
Posted: Sun Mar 02, 2008 10:23 am Post subject: |
|
|
What sort of WLAN card do you have? Could we see your /etc/conf.d/net?
Cheers
Jon |
|
| Back to top |
|
 |
Neo2 Apprentice

Joined: 25 Sep 2006 Posts: 224 Location: Italy
|
Posted: Sun Mar 02, 2008 12:57 pm Post subject: |
|
|
When an interface is recognized for the first time udev assigns an arbitrary name depending on the hardware type. Then that name is written in udev rules, so that everytime the interface is plugged in the same name as before gets used.
Have a look at /etc/udev/rules.d/70-persistent-net.rules and edit the NAME= directive related to the interface you want to rename. Restart udev (or reboot your system) and you're done
If you have config files so pointing at eth1 interface, you'll have to fix them to point at the new interface name _________________ Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt |
|
| Back to top |
|
 |
kds66 Apprentice

Joined: 17 Oct 2006 Posts: 166 Location: Manaus, Brazil
|
Posted: Sun Mar 02, 2008 4:50 pm Post subject: |
|
|
Right!
My /etc/udev/rules.d/70-persistent-net.rules contains the following:
| Code: |
# PCI device 0x10ec:0x8169 (r8169)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:03:0d:36:52:4f", NAME="eth0"
# PCI device 0x14e4:0x4318 (bcm43xx)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:14:a5:39:b9:d4", NAME="eth1"
|
Thanks for your help  |
|
| Back to top |
|
 |
Neo2 Apprentice

Joined: 25 Sep 2006 Posts: 224 Location: Italy
|
|
| Back to top |
|
 |
|