How to Rename network interface on Ubuntu

After update to Ubuntu 1510 due to an UDEV changes, will automatically assign predictable interface names for network interfaces.

My “eth0” became “ens32”

To assign the old name to your interface follow that:

ip link

and copy the MAC address of your device.

Then edit/create this file:

sudo nano -w /etc/udev/rules.d/10-network.rules

and add the following line:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="aa:bb:cc:dd:ee:ff", NAME="eth0"

Replace “eth0” with the wanted name of interface and “aa:bb:cc:dd:ee:ff” with your device MAC address.

A reboot is required then.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s