Vmwarevm centos7 suddenly has no Nic. How can this problem be solved ?, Vmwarecentos7
The vmwarevm centos7 suddenly has no Nic. How can this problem be solved?
After the vmwarevm is installed with centos7 and is in normal use for a period of time, it is found that the VM cannot be connected through Xshell after it is restarted. Similar problems have been encountered before, but the previous method is used.
The problem cannot be solved. You can only find the problem after checking the methods. Therefore, write down the problem in case you need it.
Troubleshoot
Run the ifconfig command to view the network interface configuration information:
View All Interface Information
Ifconfig-a view all network card information and found that ens33 has no static IP information
Run the following command to start the ens33 NIC:
ifconfig ens33 up
Restart the network:
service network restart
The following error is reported.
Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.
Check the MAC address and Virtual Machine network configuration. Why is the restart ineffective? Finally, find the following method to solve the problem.
Solve the problem
Solution (reference ):
Run the following command:
chkconfig network off
chkconfig network on
service NetworkManager stop
service NetworkManager start
This command means to re-run the network management device and solve the problem after restart.
Everyone encounters different situations. If your network is always easy to use, you will suddenly be unable to connect. re-running the network management device will solve your problem. I hope the experience here will help you.