Home>Article>Operation and Maintenance> What should I do if I get an error when restarting the centos7 network?

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

藏色散人
藏色散人 Original
2022-01-11 14:19:09 9345browse

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

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

##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!

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