Job for network.service failed because the control process exited with error code [How to Solve]

Job for network.service failed because the control process exited with error code

Because it is cloned, the static IP needs to be modified again

vim /etc/sysconfig/network-scripts/ifcfg-xxx

Modification

BOOTPROTO=static 

Add below

IPADDR=Static IP address
GATEWAY=default gateway
NETMASK=255.255.255.0
DNS1=114.114.114.114

Execute after saving

systemctl restart network

It turned out to be a mistake

Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

At this time, I got tangled. I went to the original system to check the source code to see if I had changed it by mistake. As a result, I found that the original system was no longer working. I used ifconfig to check it

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Without a network card, I tried to restart the system and test it again, but I couldn’t. I went to the big God gate on the network and found out how to solve it. I tried several methods and finally solved both systems

Delete other ifcfg XXX in the/etc/sysconfig/network scripts directory (only one document with the same name of your network card is kept)

Then disable the NetworkManager

systemctl stop NetworkManager
systemctl disable NetworkManager

Use IP addr to view the MAC address and add it into the hwaddr of ifcfg XXX (if not, add a new one)

HWADDR=xx:xx:xx:xx:xx:xx

: WQ can be solved by executing systemctl restart network after saving

Similar Posts: