Solve the problem that the network cannot be connected after the centos 7 VM is restarted
Centos7 introduces a new network device naming method-consistent network device naming (consistent network device naming) due to systemd and udev ).
One virtual machine, centos 7 64-bit system installed, dual Nic, Intranet is ens33, internet is ens32. After the system is restarted, the network is disconnected. Check that the network is not started on the console. manually start the Intranet. You can ping the network card and start the Internet Nic. Check IP Address
Ip
It is found that the Intranet address is bound to the public network card.
Cd/etc/sysconfig/network-scripts/
Cat ifcfg-ens32 | grep HWADDR
Ip l | grep-A 1 ens32
Modify Nic configuration and add mac address parameters
HWADDR =...
Restart Nic
Ifdown ens32 & ifup ens32
The network can be connected normally.