failed network.service

Issues related to configuring your network
Post Reply
moucina
Posts: 26
Joined: 2011/02/14 23:00:48

failed network.service

Post by moucina » 2014/07/23 08:45:48

Hello Guys,

I have just installed Centos 7 on my HTPC which was running 6 up till now . I get a boot error as well as errors in the log stating that network.service is failed and dead . Looking at the status I can see:

Code: Select all

root@htpc /etc/sysconfig/network-scripts # systemctl status network.service
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Wed 2014-07-23 00:02:22 EST; 18h ago
  Process: 1108 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Jul 23 00:02:21 htpc.homenet network[1108]: Bringing up loopback interface:  Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jul 23 00:02:21 htpc.homenet network[1108]: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jul 23 00:02:21 htpc.homenet network[1108]: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jul 23 00:02:21 htpc.homenet network[1108]: Could not load file '/etc/sysconfig/network-scripts/ifcfg-lo'
Jul 23 00:02:21 htpc.homenet network[1108]: [  OK  ]
Jul 23 00:02:21 htpc.homenet network[1108]: Bringing up interface enp5s0:  Error: Connection activation failed: Connection 'enp5...s time.
Jul 23 00:02:22 htpc.homenet network[1108]: [FAILED]
Jul 23 00:02:22 htpc.homenet systemd[1]: network.service: control process exited, code=exited status=1
Jul 23 00:02:22 htpc.homenet systemd[1]: Failed to start LSB: Bring up/down networking.
Jul 23 00:02:22 htpc.homenet systemd[1]: Unit network.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
The file for lo seem fine :

Code: Select all

root@htpc /etc/sysconfig/network-scripts # cat /etc/sysconfig/network-scripts/ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
When I try to activate the service it seems to work :

Code: Select all

root@htpc /etc/sysconfig/network-scripts # systemctl start network.service
root@htpc /etc/sysconfig/network-scripts # systemctl status network.service
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: active (exited) since Wed 2014-07-23 18:38:09 EST; 4s ago
  Process: 21215 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)

Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet network[21215]: RTNETLINK answers: File exists
Jul 23 18:38:09 htpc.homenet systemd[1]: Started LSB: Bring up/down networking.
r
Just wandering what is going on there . I am using NetworkManager and the connectivity seem fine . Is there any issue in disabling the network.service althogether ?

Best Regards

Milorad

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: failed network.service

Post by TrevorH » 2014/07/23 09:46:10

Could you post the output of ls -laZ /etc/sysconfig/network-scripts/ifcfg-lo
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

moucina
Posts: 26
Joined: 2011/02/14 23:00:48

Re: failed network.service

Post by moucina » 2014/07/23 10:08:19

Here it is :

Code: Select all

root@htpc /home/mythtv #  ls -laZ /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r--. root root system_u:object_r:net_conf_t:s0  /etc/sysconfig/network-scripts/ifcfg-lo

Post Reply