[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev - set persistent name for WLAN Adapter



Bob Proulx <bob@proulx.com> writes:

> Michael Biebl wrote:
>> Pal, what hardware is that specifically?
>> Any idea why it changes the MAC?
>
> Hmm...  Is 'macchanger' involved in this in any way?
>
>   $ apt-cache show macchanger
>   Description-en: utility for manipulating the MAC address of network interfaces
>    Features:
>      * set specific MAC address of a network interface
>      * set the MAC randomly
>      * set a MAC of another vendor
>      * set another MAC of the same vendor
>      * set a MAC of the same kind (eg: wireless card)
>      * display a vendor MAC list (today, 6200 items) to choose from
>   Homepage: http://www.alobbs.com/macchanger
>
> It is a useful tool.  I use it on the wifi device of my laptop.  It
> isn't without issue to do so but it does what it does well.

I just installed macchanger and run:
macchanger -s wlan0
Permanent MAC: 00:e0:4c:81:92:dc (Realtek Semiconductor Corp.)
Current   MAC: 00:e0:4c:81:92:dc (Realtek Semiconductor Corp.)

# macchanger -m 00:e0:4c:81:92:dc wlan0
Permanent MAC: 00:e0:4c:81:92:dc (Realtek Semiconductor Corp.)
Current   MAC: 00:e0:4c:81:92:dc (Realtek Semiconductor Corp.)
It's the same MAC!!

So after this what should I do with udev rules in
70-persistent-net.rules ?

Now the line is:
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \
ATTR{address}=="00:e0:4c:81:92:*", ATTR{dev_id}=="0x0", \
 ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

-- 
Regards from Pal


Reply to: