Error: Failed to start LSB: Bring up/down networking solution

One, the problem

I was working on KVM. When setting up the KVM network, I configured the network card. When I restarted the network card, an error was reported Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl- xe" for details.
First determine whether the configuration file is correct when configuring the network card.
Insert picture description here
Here you can check the error log generated under the network card status, you can see that there is no error in the configuration file, no error line error, and the following report Failed to start LSB: Bring up/down networking.
Insert picture description here

Two, the method to solve the problem

2.1 The first method: modify the MAC address

The reason for this may be that the MAC address in the configuration file is inconsistent with the MAC of the current network card. You only need to modify the configuration file.

[root@kvm ~]# ip addr

Insert picture description here
Where 00:0c:29:9a:8e:9e is the MAC address, enter a network card of your own /etc/sysconfig/network-scripts/ifcfg-xxx to add and modify HWADDR (if this option is not available, add it) into this MAC Address
Note: Because the MAC address is the same in the network card, just copy it directly from the other network card
HWADDR=00:0c:29:9a:8e:9e

The problem here is not necessarily the problem of the MAC address. After I searched the Internet and modified the MAC address, it did not help. Finally, it was a problem with the NetworkManager service.

2.2 The second method: Disable NetworkManager

NetworkManager (NetworManager) is a program that detects the network and automatically connects to the network. Whether it is a wireless or wired connection, it can be easily managed by you. For wireless networks, the network manager can automatically switch to the most reliable wireless network. You can freely switch between online and offline modes using the program of the network manager. The network manager can give priority to the wired network and supports VPN. The network manager was originally developed by Redhat and is now managed by GNOME.

[root@kvm ~]#systemctl stop NetworkManager
[root@kvm ~]#systemctl disable NetworkManager
[root@kvm ~]#systemctl restart  network
或
[root@kvm ~]#systemctl  restart NetworkManager
[root@kvm ~]#systemctl restart  network
重启之后,网络恢复正常

Guess you like

Origin blog.csdn.net/F2001523/article/details/112545643