Solution to CentOS7 network restart error in VMware

Source: Internet
Author: User

Solution to CentOS7 network restart error in VMware
Solution 1

Applicable situation: the cloning of a virtual machine fails to access the network.
Analysis: In this case, the network MAC address of the cloned virtual machine is not modified.
Solution:
1. Enter vi/etc/sysconfig/network-scripts/on the terminal/Ifcfg-ens33 (the bold part is the name of your own Nic, available ifconfig command to view );
2. modify or add HWADDR = "XXXX" to the file. XXXX is the MAC address of your network card. You can view the address using the ip addr command.

Solution 2

Applicable scenario: solution 1 cannot be solved
Solution: Start a service named NetworkManager-wait-online at startup (command: systemctl enable NetworkManager-wait-online.service)

Solution 3

Applicable scenario: solution 2 cannot solve
Analysis: I don't know why, but Baidu has come up with a solution to my problem. You can also try it.
Solution:
1. disable network management in configuration (chkconfig NetworkManager off)
2. Enable chkconfig network on in the configuration)
3. service NetworkManager stop)
4. Enable network Management (service network start) in the service)
So far, my problem has been solved.
If it still doesn't work, you can try to delete the configuration file and try to get another one. I won't go into details about the specifics.

Related Article

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.