Code Snippet

Just another Code Snippet site

[Linux] Rename network interfaces

Find all interfaces :

ifconfig -a | grep -i --color hwaddr

Edit configuration file :

vi /etc/udev/rules.d/70-persistent-net.rules

change NAME=”eth0″ to NAME=”BBB”

# PCI device 0x14e4:0x1680 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="b8:ac:6f:65:31:e5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x14e4:0x1680 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="b8:ac:6f:65:31:e5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="BBB"

Restart the system

,


Comments are currently closed.