You are not logged in.

#1 2013-06-29 20:57:45

donjames
Member
Registered: 2010-10-09
Posts: 99

[solved]wlan1: Where is wlan0?

I shut down my computer, unplugged a wireless adapter and plugged in a different wireless adapter.

When I booted my computer again, wlan0 had disappeared and the new adapter was wlan1.

My question is this:  How can I tell my Linux box to forget the first wireless adapter and call the new wireless adapter wlan0?

Can someone give me a hint about where to look?

Thanks,

Don James

Last edited by donjames (2013-06-30 02:17:08)

Offline

#2 2013-06-29 23:36:32

donjames
Member
Registered: 2010-10-09
Posts: 99

Re: [solved]wlan1: Where is wlan0?

I think that I found the answer:

Open /etc/udev/rules.d/70-persistent-net.rules

Delete:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0f:3d:a8:ec:ca", ATTR{dev_
id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

Shutdown the computer, unplug the wireless adapter card, plug in a different wireless adapter card and reboot the computer.

Now, the new card will show up as wlan0.

Are there any comments on this solution?

Thanks,

Don James

Last edited by donjames (2013-06-29 23:37:09)

Offline

#3 2013-06-30 15:44:33

overkill
Member
Registered: 2011-09-13
Posts: 243

Re: [solved]wlan1: Where is wlan0?

That's correct.  udev will detect and add each new ethernet/wireless adapter it finds.  Deleting the old one from /etc/udev/rules/d/70-persisten-net.rules and rebooting is the solution.

If one has multiple net devices, like 5 ethernet cards, then one can control the device names - eth0 through eth4 by editing the 70-persistent-net.rules file.

Offline

#4 2013-06-30 18:57:22

donjames
Member
Registered: 2010-10-09
Posts: 99

Re: [solved]wlan1: Where is wlan0?

I was wondering about that.

I have two ethernet adapters in this computer and neither is listed in 70-persistent-net.rules. 

Why is that?

Thanks,

Don James

Offline

#5 2013-07-01 19:24:34

overkill
Member
Registered: 2011-09-13
Posts: 243

Re: [solved]wlan1: Where is wlan0?

If you have the drivers compiled into the kernel instead of modules, they will not appear in 70-persistent-net.rules.

Does `lsmod` list your ethernet modules/drivers?  If not, you've compiled them into the kernel.  If you want control of which card is eth0 and which is eth1, you'll need to recompile the kernel selecting the drivers as modules.

Offline

#6 2013-07-01 21:10:32

donjames
Member
Registered: 2010-10-09
Posts: 99

Re: [solved]wlan1: Where is wlan0?

Yes, the drivers are compiled into the kernel.

I tried recompiling the kernel with the ethernet adapter drivers as modules.  Now, both of the drivers for the ethernet cards are listed in 70-persistent-net.rules.

Thanks for the info.

Regards,

Don James

Last edited by donjames (2013-07-01 22:30:21)

Offline

Board footer

Powered by FluxBB