Vmwarevm centos7 suddenly has no Nic. How can this problem be solved ?, Vmwarecentos7

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.