- 修改grub #vim /etc/default/grub
- 更新grub
- 修改interface #vim /etc/network/interface
GRUB_CMDLINE_LINUX=""
change to
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
change to
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
#grub-mkconfig -o /boot/grub/grub.cfg
auto enoXXXXX
iface enoXXXX inet static
auto eth0
iface eth0 inet static
iface enoXXXX inet static
auto eth0
iface eth0 inet static
Reference:
[1] Change default network name (ens33) to old “eth0” on Ubuntu 16.04
沒有留言:
張貼留言