The network cannot be restarted under centos7

王林
Release: 2020-04-01 09:45:26
Original
4660 people have browsed it

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.
Copy after login

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
Copy after login

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
Copy after login

Restart:

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!