This CentOS 7.5.1804 server has a loopback and ethernet network cards. Upon rebooting the server for maintenance of an unrelated application (OpManager), the network service will not initialize. When attempting to restart network service I get the error:
Failed to restart network.service: Unit not found.
Here is the current ifconfig output:
I did not change any network scripts configuration. The ethernet network interface is "ens33"
There is no GUI this server is CLI only.
At one point I was able to manually start the interface making it show up under ifconfig command output, but it is not showing up now. Rebooting does not resolve this issue. Why the network service is crashing after a simple reboot is beyond me... Any ideas?
Failed to restart network.service: Unit not found.
Failed to restart network.service: Unit not found.
- Attachments
-
- ifconfig-output-1.PNG (7.76 KiB) Viewed 12484 times
Re: Failed to restart network.service: Unit not found.
Code: Select all
# rpm -qf /etc/init.d/network
initscripts-9.49.46-1.el7.x86_64
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: Failed to restart network.service: Unit not found.
It is and install fails:
Re: Failed to restart network.service: Unit not found.
You need to set up your network interface to be able to connect to the internet to be able to use yum.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: Failed to restart network.service: Unit not found.
How do I do that?
Alternatively can I install the software from the install ISO?
Alternatively can I install the software from the install ISO?
Re: Failed to restart network.service: Unit not found.
You can use the iso image if you loopback mount it (or write it to a DVD and have a DVD drive) on one of the mountpoints listed in /etc/yum.repos.d/CentOS-Media.repo (or add your own directory to the list in that file). Then use yum --disablerepo=\* --enablerepo=c7-media reinstall initscripts
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Re: Failed to restart network.service: Unit not found.
Followed these steps:
https://www.itzgeek.com/how-tos/linux/c ... g-dvd.html
By mounting the local repo this way the system would allow me to install initscripts. Reinstall command failed.
Now the ethernet interface came up and I can ping the server.
Thank you for all the help!
https://www.itzgeek.com/how-tos/linux/c ... g-dvd.html
By mounting the local repo this way the system would allow me to install initscripts. Reinstall command failed.
Now the ethernet interface came up and I can ping the server.
Thank you for all the help!