ubunut系统修改网卡名称为eth0/wlan0

1、修改 grub文件中GRUB_CMDLINE_LINUX的值

sudo vim /etc/default/grub 

更改 GRUB_CMDLINE_LINUX='' 项的值为: GRUB_CMDLINE_LINUX='net.ifnames=0 biosdevname=0'

2、执行命令 update-grup更新

3、在 /etc/network/interfaces 中追加内容

auto eth0
iface eth0 inet dhcp

4、重启

sudo reboot

原文地址:https://www.cnblogs.com/ioan/p/9875384.html