- Display current interface cards and verify that eth0 doesnt exist:
ifconfig -a - Edit grub file configuration to disable new naming convention
vim /etc/default/grub - Look for GRUB_CMDLINE_LINUX= include the following net.ifnames=0 biosdevname=0″
From:
GRUB_CMDLINE_LINUX=””
To
GRUB_CMDLINE_LINUX=”net.ifnames=0 biosdevname=0″ - Save and exit the file
- Reload grub config file:
update-grub - Edit interfaces file
vim /etc/network/interfaces
From:
# The primary network interface
auto ens16
iface ens16 inet dhcpTo:
# The primary network interface
auto eth0
iface eth0 inet dhcp - Reboot your machine/Restart networking service
Reference:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
Not working for me..
I’ve took an error when I try to restart the networking service: “Failed to start Raise network interfaces”. Why?
Thanks – it works