1. The virtual machine linux sets a static ip and windows to ping each other and the problem of not being able to connect to the Internet after setting a static ip is a one-stop solution:
Reprint: https://www.codenong.com/cs105332412/
2. Encountered the problem of network service restart failure
Follow the prompts to check the status of the network service.
See this blog post https://www.cyberithub.com/failed-to-start-lsb-bring-up-down-networking/
. First of all, it may be because of your MAC address. In / Providing the correct MAC address in etc/sysconfig/network-scripts/ifcfg-ens33 and restarting network services should resolve this error.
Use the ip addr command to check your MAC address.
Add HWADDR=MAC address.
Restart the network service, but it still fails.
It says it may be a problem with NetworkManager.
Check the service status.
Temporarily stop the service.
You can see that it has stopped.
Restart the network service, but it still fails.
Check the configuration file
and add the other two Delete all
rm -f /etc/sysconfig/network-scripts/ifcfg-ens33.bak
to restart the service, success!