Ubuntu has changed its network naming scheme starting 15.04

I recently updated to Ubuntu 16.04.1 LTS from 14.04 and ran into this problem as not having my network adapter detected on startup.

No network adapter, no connection to the internet, no updates…

I did some research and digging and it seems that starting  Ubuntu 15.04, as quoted from one of the forums..

“…starting with systemd/udev will automatically assign predictable, stable network interface names for all local Ethernet, Wlan and Wwan interfaces.”

Whole info at this link.

Well there it was, no more eth0 on default installation. The system gave me ens160 as a network adapter name.

One way of fixing it is to retain the new name and just rename the network name in the interface file to the new naming scheme. Sample here


How to revert to the old naming scheme?

Here are some tips and tricks.

  1. Edit your grub file, this is located at /etc/default/grub
  2. Look for GRUB_CMDLINE_LINUX=””
  3. Add net.ifnames=0 biosdevname=0  between the double quotes.
  4. Save and create new grub config by executing the command grub-mkconfig -o /boot/grub/grub.cfg
  5. If your using dhcp, no need to rename your network name in the interface file back to eth0.
  6. Reboot system after that.

Source Link