vmware installation centos7 enter ifconfig appear ens33, no eth0

https://blog.csdn.net/qq_35079450/article/details/78634984

 

 

Solution

1. Edit profile card vi / etc / sysconfig / network-scripts / ifcfg ens33-NAME and the inside of the modified term as eth0 DEVICE

IP gateway needs the same network segment, vwmare Edit "" Virtual Network Editor "" NAT Mode "" NET settings

 

 


1. Rename the NIC configuration file ifcfg-ens33 as ifcfg-eth0

[root@localhost ~]# cd /etc/sysconfig/network-scripts/  

[root@localhost network-scripts]# mv ifcfg-ens33 ifcfg-eth0  

3. Edit / etc / default / grub and added "net.ifnames = 0 biosdevname = 0" to the variable GRUBCMDLINELINUX


Look into the following

 

4. Run command grub2-mkconfig -o /boot/grub2/grub.cfg regenerate GRUB configuration to update the kernel parameter.

 


5. Reboot the system

[root@localhost network-scripts]# reboot  

6. Enter authentication ifconfig


---------------------
Disclaimer: This article is CSDN blogger "FireflyBus' original article, follow the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_35079450/article/details/78634984

Guess you like

Origin www.cnblogs.com/shttke/p/11316294.html