Change default network name (ens33) to old “eth0” on Ubuntu 16.04

$ sudo vim /etc/default/grub
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
done
$ sudo vim /etc/network/interfaces

From:

# The primary network interface
auto ens33
iface ens33 inet dhcp

To:

# The primary network interface
auto eth0
iface eth0 inet dhcp

你可能感兴趣的:(Change default network name (ens33) to old “eth0” on Ubuntu 16.04)