Make wlan1 wlan0

This is a discussion on Make wlan1 wlan0 within the Ubuntu forums, part of the Linux category; I used ndiswrapper for a usb wireless card, and then I installed a pci card not using ndiswrapper. The usb card was called wlan0 and the second card wlan1. I ...

Go Back   Unix Linux Forum > Operating Systems > Linux > Ubuntu

FixUnix.com - Unix Linux Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-15-2008, 11:47 PM
Default Make wlan1 wlan0

I used ndiswrapper for a usb wireless card, and then I installed a pci
card not using ndiswrapper. The usb card was called wlan0 and the second
card wlan1.

I have now stopped using the first card and I have uninstalled
ndiswrapper. But still the second card is called wlan1.
Since I'm rather pedantic, I'd like my installed card to be wlan0.

How can I make my box forget all about my affair with ndiswrapper and
the usb card?

--
Salve
Reply With Quote
  #2  
Old 07-16-2008, 03:25 AM
Default Re: Make wlan1 wlan0

> I have now stopped using the first card and I have uninstalled
> ndiswrapper. But still the second card is called wlan1.
> Since I'm rather pedantic, I'd like my installed card to be wlan0.
>
> How can I make my box forget all about my affair with ndiswrapper and
> the usb card?


Check /etc/udev/rules.d/70-persistent-net.rules
There you find every network card ever connected to your system with its
MAC address an the assigned interface name, like
---------------------
# PCI device 0x8086:0x4229 (iwl4965)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ca:fe:00:ca:fe",
ATTRS{type}=="1", NAME="wlan0"
----------------------


Change the entries to fit your needs (e.g. delete your old card entry
and rename the NAME parameter for the current one to wlan0).
Alternatively you can delete all lines and let the system automatically
enumerate all found cards again.
Then stop networking ,restart udev and restart networking afterwards.


--
Ulf Leichsenring
ulf@leichsenring.net
Reply With Quote
  #3  
Old 07-16-2008, 11:54 AM
Default Re: Make wlan1 wlan0

On 2008-07-16, Ulf Leichsenring wrote:
>> I have now stopped using the first card and I have uninstalled
>> ndiswrapper. But still the second card is called wlan1.
>> Since I'm rather pedantic, I'd like my installed card to be wlan0.
>>
>> How can I make my box forget all about my affair with ndiswrapper and
>> the usb card?

>
> Check /etc/udev/rules.d/70-persistent-net.rules
> There you find every network card ever connected to your system with its
> MAC address an the assigned interface name, like
> ---------------------
> # PCI device 0x8086:0x4229 (iwl4965)
> SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:ca:fe:00:ca:fe",
> ATTRS{type}=="1", NAME="wlan0"
> ----------------------
>
>
> Change the entries to fit your needs (e.g. delete your old card entry
> and rename the NAME parameter for the current one to wlan0).
> Alternatively you can delete all lines and let the system automatically
> enumerate all found cards again.
> Then stop networking ,restart udev and restart networking afterwards.
>

THANK YOU!

--
Salve
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 08:55 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger