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.


Solution 1:

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.

Solution 2:

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

GRUB_CMDLINE_LINUX_DEFAULT=””
GRUB_CMDLINE_LINUX=””

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