I want to rename a wireless interface. Right now I have 4 network interfaces, 2 Wireless, 2 Cable. the order is like this:
eth0 - Cable (Realtek RTL-8169)
eth1 - Cable (Intel 82579V)
eth2 - Wireless (Broadcom BCM4321 Proprietary Drivers)
wlan0 - Wireless (RaLink RT2800)
I want to rename eth2 to wlan1. This way the wireless cards are wlan and the cable ones are eth (The way I like it). How can I do this?
Using the suggestion made by virpara I found the following:
eth1 - e1000e
wlan0 - rt2800
wlan1 - b43
eth2 - wl
# PCI device 0x8086:/sys/devices/pci0000:00/0000:00:19.0 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="38:60:77:ab:5e:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x1814:/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:02.0 (rt2800pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:9c:05:fd:28", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:00.0/ssb0:0 (b43-pci-bridge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:18:39:0e:f0:ff", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"
# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/0000:03:00.0 (wl)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:18:39:0e:f0:ff", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
Now my questions are:
- Why wlan1 and eth2 have the same MAC?
- If there are 2 duplicated MACS (eth2 & wlan1) where is the other NIC?
- Why is Realtek (eth0) not appearing on the list?
- Where did wlan1 come from since I can not see it using
ifconfig -a
,iwconfig
orlshw
. There is no wlan1 except in the/etc/udev/rules.d/70-persistent-net.rules
file.