Solve the problem that the CENTOS7 virtual machine cannot be started by changing the static IP, and the chrome browser cannot connect to the Internet

solution
In linuxman's edit, the problem did not arise. Repeatedly checking the cause was unsuccessful, and it was later found out that it was caused by the virtual machine.
1. When the network is turned on, there is an error message: Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
2. Execute according to the prompt: systemctl status network.service
prompts error log: 15:30:10 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down networking.
3. Use the ip addr command to view the MAC address (this line link/ether 00:5c: 33:2e:dd:10) and the lines shown in the file /etc/sysconfig/network-scripts/ifcfg-* (this line HWADDR=00:e3:21:3d:5d:ee) are inconsistent.
4. Comment out the line HWADDR= * :*:*:*:*:* in /etc/sysconfig/netwrok-scripts/ifcfg-*
5. Change it to HWADDR=00:5C:33:2E:DD: 10 (that is, the MAC found with the IP ADDR command)

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326565965&siteId=291194637