What should I do if the centos system fails to restart the network?

王林
Release: 2020-03-23 10:56:12
Original
5993 people have browsed it

What should I do if the centos system fails to restart the network?

Environment: centos7 system

Problem description:

[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 one HWADDR

Enterip addr, find HWADDR

What should I do if the centos system fails to restart the network?

and entercd /etc/sysconfig/network-scriptsEdit the correspondingvim ifcfg-ensXX, set the HWADDR correctly, and restart

service network restart
Copy after login

If it still doesn’t work, you need to reset the IP.

(Recommended tutorial:centos usage tutorial)

2. IP check and setting

Enter the host cmd command window and enteripconfig / all

What should I do if the centos system fails to restart the network?

Then enter the centos7 virtual machinecd /etc/sysconfig/network-scriptsEdit the correspondingvim ifcfg-ensXX

What should I do if the centos system fails to restart the network?

Then turn off the network:

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

Then restart:

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

Recommended related video tutorials:linux video tutorial

The above is the detailed content of What should I do if the centos system fails to restart the network?. 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
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!