Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Why is wlan0 renamed eth1?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kds66
Apprentice
Apprentice


Joined: 17 Oct 2006
Posts: 166
Location: Manaus, Brazil

PostPosted: Sun Mar 02, 2008 8:18 am    Post subject: [solved] Why is wlan0 renamed eth1? Reply with quote

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
View user's profile Send private message
gerdesj
Guru
Guru


Joined: 29 Sep 2005
Posts: 508
Location: Yeovil, Somerset, UK

PostPosted: Sun Mar 02, 2008 10:23 am    Post subject: Reply with quote

What sort of WLAN card do you have? Could we see your /etc/conf.d/net?

Cheers
Jon
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Mar 02, 2008 12:57 pm    Post subject: Reply with quote

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 :wink:
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
View user's profile Send private message
kds66
Apprentice
Apprentice


Joined: 17 Oct 2006
Posts: 166
Location: Manaus, Brazil

PostPosted: Sun Mar 02, 2008 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Mar 02, 2008 6:54 pm    Post subject: Reply with quote

You're welcome :wink:
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum