Article 5DZG8 CentOS 7 Mystery: Network does not start on boot, but will start manually

CentOS 7 Mystery: Network does not start on boot, but will start manually

by
deathsfriend99
from LinuxQuestions.org on (#5DZG8)
I've got a mystery.
I have a few CentOS 7 boxes that the network will not start on boot, but after boot, I can manually start it just fine.
First, these are lean boxes with no network manager.
They are also clones.

chkconfig network.service on

Here's the error:
Code: network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2021-02-09 10:49:41 EST; 1h 21min ago
Docs: man:systemd-sysv-generator(8)
Process: 1613 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Feb 09 10:49:40 hostname systemd[1]: Starting LSB: Bring up/down networking...
Feb 09 10:49:40 hostname network[1613]: Bringing up loopback interface: [ OK ]
Feb 09 10:49:41 hostname network[1613]: Bringing up interface em4: ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device em4 does not seem to be present, delaying initialization.
Feb 09 10:49:41 hostname network[1613]: [FAILED]
Feb 09 10:49:41 hostname systemd[1]: network.service: control process exited, code=exited status=1
Feb 09 10:49:41 hostname systemd[1]: Failed to start LSB: Bring up/down networking.
Feb 09 10:49:41 hostname systemd[1]: Unit network.service entered failed state.
Feb 09 10:49:41 hostname systemd[1]: network.service failed.But if I start it manually it works fine.

Code:[root@hostname ~]# systemctl start network
[ 5203.845914 ] igb 000:06:00.1 em4: igb: em4 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
/etc/sysconfig/network:
Code:NETWORKING=yes/etc/sysconfig/networking-scripts/ifcg-em4:
Code:DEVICE=em4
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.x.x.x
NETMASK=255.255.255.0
HWADDR=x:x:x:x
NM_CONTROLLED=noI have checked /etc/udev/rules.d/70-persistent-net.rules, there is no such file.latest?d=yIl2AUoC8zA latest?i=ghLIOVoagq8:LpButQjttLA:F7zBnMy latest?i=ghLIOVoagq8:LpButQjttLA:V_sGLiP latest?d=qj6IDK7rITs latest?i=ghLIOVoagq8:LpButQjttLA:gIN9vFwghLIOVoagq8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments