1. Modify GRUB file
vim /etc/default/grub
Find
GRUB_CMDLINE_LINUX="xxxx"
Modification
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
2. Enter the following command, update the GRUB configuration file
update-grub
If there is no such command, please enter the installation command first
apt-get install grub2-common
3. Edit the corresponding files to “ENP0S3” to “ETH0”
sudo vi /etc/network/interfaces
4. Restart system
reboot
5. View network card
ifconfig