fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Make wlan1 wlan0 - Ubuntu

This is a discussion on Make wlan1 wlan0 - Ubuntu ; 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 ...


Fix Unix > Linux > Ubuntu > Make wlan1 wlan0

Reply
 
LinkBack Tools
  #1  
Old 07-16-2008, 04:47 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
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, 08:25 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
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, 04:54 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
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

Tools


LinkBacks (?)
LinkBack to this Thread: http://fixunix.com/ubuntu/508804-make-wlan1-wlan0.html
Posted By For Type Date
Linux?????h3c Aolynk WuB320G???? - Fwolf's Blog This thread Pingback 07-17-2008 12:41 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0 disappeared... unix Suse 1 10-17-2008 09:50 PM
Bridge with a wlan0 interface using wpa unix Networking 7 09-02-2008 06:50 PM
ifup wlan0 problem unix Debian 1 05-19-2008 10:40 PM
Slack 11: no eth0 or wlan0 unix Slackware 6 05-02-2008 03:52 PM
renaming wlan0 to eth1 unix Redhat 1 09-30-2007 08:47 PM


All times are GMT. The time now is 09:37 AM.