Home  >  Article  >  Operation and Maintenance  >  The network cannot be restarted under centos7

The network cannot be restarted under centos7

王林
王林Original
2020-04-01 09:45:264637browse

The network cannot be restarted under centos7

Problem:

[root@localhost Desktop]# systemctl start network.service
Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.

Solution:

1. HWADDR error, find the correct HWADDR

Enter ip addr, Find HWADDR

The network cannot be restarted under centos7

Enter the cd /etc/sysconfig/network-scripts directory to edit the corresponding vim ifcfg-ensXX, set HWADDR correctly, and restart service network restart

If it still doesn't work here, you need to reset the IP related settings.

(Recommended tutorial: centos tutorial)

2. IP check and setting

Enter the host cmd command window and enter

ipconfig /all

The network cannot be restarted under centos7

Enter the centos7 virtual machine cd /etc/sysconfig/network-scripts directory and edit the corresponding vim ifcfg-ensXX

The network cannot be restarted under centos7

and then close the network :

root@localhost Desktop]# service NetworkManager stop
Redirecting to /bin/systemctl stop  NetworkManager.service

Restart:

[root@localhost Desktop]# service network restart
Restarting network (via systemctl):         [  OK  ]

The above is the detailed content of The network cannot be restarted under centos7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn