Rename network interfaces

1.

udevadm info --query=all --path=/sys/class/net/eth1
P: /devices/pci0000:00/0000:00:1c.1/0000:12:00.0/net/eth1
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:12:00.0/net/eth1
E: INTERFACE=eth1
E: IFINDEX=3
E: SUBSYSTEM=net
E: ID_VENDOR_FROM_DATABASE=Broadcom Corporation
E: ID_MODEL_FROM_DATABASE=BCM4313 802.11b/g/n Wireless LAN Controller
E: ID_BUS=pci
E: ID_VENDOR_ID=0x14e4
E: ID_MODEL_ID=0x4727
E: ID_MM_CANDIDATE=1

2.

sudo vim /etc/udev/rules.d/network.rules
SUBSYSTEM=="net", ENV{ID_VENDOR_ID}=="0x14e4", ENV{ID_MODEL_ID}=="0x4727", NAME="wlan"

Over!

Leave a Reply

Your email address will not be published. Required fields are marked *