What should I do if I get an error when restarting the centos7 network?

藏色散人
Release: 2022-01-11 14:22:45
Original
9382 people have browsed it

Solution to centos7 network restart error: 1. Check whether NetworkManager is closed; 2. Check whether HWADDR is consistent; 3. Add "net.ifnames=0 biosdevname=0" in grub; 4. Generate boot menu ; 5. Restart.

What should I do if I get an error when restarting the centos7 network?

The operating environment of this article: CentOS 7 system, Dell G3 computer.

centos7 What should I do if an error occurs when the network restarts?

New system centos7 restarts the network and reports an error

Scenario: New centos7 on an unknown cloud , it cannot start after changing the IP. Use systemctl status network to view the results as follows:

Troubleshooting process:

1) Is NetworkManager closed?


systemctl stop NetworkManager
Copy after login

2) Check whether HWADDR is consistent

Configuration file /etc/sysconfig/network-scripts/ifcfg-eno16777984

and

ip addr view

##3) Add net in the configuration file /etc/sysconfig/grub .ifnames=0 biosdevname=0

4) Generate boot menu

grub2-mkconfig -o /boot/grub2/grub.cfg
Copy after login

##5) Restart

Recommended tutorial: "

centos tutorial

"

The above is the detailed content of What should I do if I get an error when restarting the centos7 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
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!