udev - set persistent name for WLAN Adapter
Hello,
on my Wheezy system I just can't set a persistent 'wlan0' name for my
USB WiFi apadter.
In /etc/udev/rules.d/70-persistent-net.rules I have the line:
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="usb", ACTION=="add", DRIVERS=="usb",
ATTRS{idVendor}=="0586", ATTRS{idProduct}=="341f", ATT
R{manufacturer}=="Realtek", ATTR{product}=="802.11n WLAN Adapter",
ATTR{dev_id}=="0x0", ATTR{type}=="1"
, KERNEL=="wlan*", NAME="wlan0"
I did run:
# udevadm control --reload-rules
After that, when I replug the WLAN Adapter, I get in
70-persistent-net.rules another line:
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:e0:4c:81:92:e7", ATTR{dev_id}=="0x0"
, ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"
and after another replugging I get:
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:e0:4c:81:92:77", ATTR{dev_id}=="0x0"
, ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan2"
So what am I missing here?
Why can't I set a persistent name for my WLAN Adapter?
--
Regards from Pal
Reply to: