Ubuntu: interface device name em1 to eth0 linux 14.04 lts


I Have installed Linux 14.04 lts. I am getting interface device name as em1 and eth0.I want to rename it as eth0 and eth1.


Best way to achieve that what you are looking for:

First, uninstall the package biosdevname

sudo apt-get remove biosdevname  

then run

sudo update-initramfs -u  

After the next boot, everything will work the good ol way.


Edit /etc/default/grub and search for the following:


Add biosdevname=0 to the 2 lines:

GRUB_CMDLINE_LINUX_DEFAULT=”biosdevname=0”  GRUB_CMDLINE_LINUX=”biosdevname=0”  

Then run

sudo update-grub  

Finally reboot, after reboot you should find all rules persisted in /etc/udev/rules.d/70-persistent-net.rules


Edit 70-persistent-net.rules

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

Locate in the file the hardware named em1 and replace with eth*

Save and reboot

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »