Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if there is an error in the restart of CentOS7 network under VMware?

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

The purpose of this article is to share with you what to do when there is an error in restarting the CentOS7 network under VMware. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Solution one

Applicable case: the problem that the clone virtual machine cannot be connected to the network

Analysis: in this case, it is mostly because the network MAC address of the cloned virtual machine has not been changed.

Resolve:

1. Enter: vi / etc/sysconfig/network-scripts/ifcfg-ens33 at the terminal (bold part is the name of your network card, which can be checked with the ifconfig command)

two。 Modify or add HWADDR= "XXXX" in the file. XXXX is the MAC address of your network card, which can be checked with the ip addr command.

Solution two

Applicable situation: the solution cannot be solved.

Solution: boot up a service called NetworkManager-wait-online (command: systemctl enable NetworkManager-wait-online.service)

Solution three

Applicable situation: solution 2 cannot be solved.

Analysis: I do not know why, but Baidu to solve my problem, we can also try.

Resolve:

1. Turn off Network Management (chkconfig NetworkManager off) in configuration

two。 Enable network management (chkconfig network on) in configuration

3. Turn off network management (service NetworkManager stop) in service

4. Enable network management (service network start) in service

So my problem is solved.

Thank you for reading! This is the end of the article on "how to restart the CentOS7 network under VMware". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

  • Annotation-based Dubbo service configuration method (example explanation)

    Annotation-based Dubbo service configuration can greatly reduce the amount of Service configuration in dubbo xml configuration files. The main steps are as follows: 1. Service provider 1. Add Dubbo annotation scanning to Dubbo configuration files

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report