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

Centos7 Restart NIC error: Job for network.service failed because the control process exited with error code

centos7 Reboot NIC Report Error: Job for network.service failed because the control process exited with error code

[root@mina0 hadoop]# systemctl restart network

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

[root@mina0 hadoop]# journalctl -xe

10月 26 17:15:57 mina0 network[3308]: Loopback interface being opened: [ OK]

Oct 26 17:15:57 mina0 NetworkManager[679]: <info> [1509009357.3386] audit: op="connec

Oct 26 17:15:57 mina0 network[3308]: opening interface ens33: error: failed to activate connection: No suita

Oct 26 17:15:57 mina0 network[3308]: [failed]

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists

10月 26 17:15:57 mina0 polkitd[680]: Unregistered Authentication Agent for unix-process

10月 26 17:15:57 mina0 systemd[1]: network.service: control process exited, code=exited

10月 26 17:15:57 mina0 systemd[1]: Failed to start LSB: Bring up/down networking.

-- Subject: Unit network.service has failed

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- Unit network.service has failed.

--

-- The result is failed.

10月 26 17:15:57 mina0 systemd[1]: Unit network.service entered failed state.

10月 26 17:15:57 mina0 systemd[1]: network.service failed.

Solution:

# systemctl stop NetworkManager

# systemctl disable NetworkManager

Then: restart the network card:

# systemctl restart network

# ifconfig

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

1. Error:
today, I turned on the virtual machine to start a big data cluster. Because I didn’t turn on the machine for some time, I found that I couldn’t connect to the Internet after turning on the machine. After ifconfig, I didn’t even have an IP address:

2. Solution:
there are many opinions on the Internet. Most of them are to reconfigure the static IP of VI/etc/sysconfig/network scripts/ifcfg-ens33. In fact, the network card does not work. Finally, only one method works:

3 directives:

3. Reason:
on CentOS system, there are two network management tools, NetworkManager and network. Both configurations can cause conflicts. Generally, we use network to configure static IP. It may be that the shutdown (for some reason) causes the automatic configuration of NetworkManager, resulting in a conflict, so it’s good to disable it.

Temporary shutdown
systemctl stop NetworkManager
permanent shutdown
systemctl disable NetworkManager
Restart
systemctl restart network

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