Help: IP address gone after reboot

Issues related to configuring your network
Post Reply
wdli
Posts: 3
Joined: 2017/06/21 00:06:23

Help: IP address gone after reboot

Post by wdli » 2017/06/21 00:30:51

Hi,

I am using a Centos 7.2 server with kernel version 3.10.0-514.21.1.el7.x86_64 x86_64 GNU/Linux. There is a 10G interface "eno49" that is connected to a switch for networking. It can be configured both as static or using DHCP but the problem is the same. The NetworkManager has been removed before this by someone else for reasons I don't know about. I can provide more info if required on the server.

For the first time after install I had to do a bunch of patchings for security findings including kernel patching. After reboot, the original IP address on "eno49" is gone. I had to manually do "ifup eno49" to bring it back. But next reboot the same problem would repeat even with static IP. Before patching there were no such problems.

I am not familiar with NetworkManager. Is this something related to its removal? Or something in the patches might have caused the problem. Any suggestion where to start to debug?

Thanks in advance.
David

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

Re: Help: IP address gone after reboot

Post by TrevorH » 2017/06/21 06:15:23

Do you have ONBOOT=yes in the /etc/sysconfig/network-scripts/ifcfg-eno49 file?
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

wdli
Posts: 3
Joined: 2017/06/21 00:06:23

Re: Help: IP address gone after reboot

Post by wdli » 2017/06/21 17:29:00

yes I do have that.

One thing I am guessing is that the removal of NM might have caused it. Maybe the interface was under NM control but now it's gone. Would this cause confusion during reboot?

wdli
Posts: 3
Joined: 2017/06/21 00:06:23

Re: Help: IP address gone after reboot

Post by wdli » 2017/06/22 15:46:59

I kind of solved this problem: I reinstalled NetworkManager and reboot works with IP address coming back to the interface.

But still I don't know the detailed root cause. Was this because the interface was under NM control and removing NM caused some confusion to the startup scripts? Would it likely that the startup scripts think it's NM's responsibility to bring up the interface even when it's non-existence?

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

Re: Help: IP address gone after reboot

Post by TrevorH » 2017/06/22 16:00:36

Post the contents of the relevant ifcfg file
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

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Help: IP address gone after reboot

Post by gerald_clark » 2017/06/22 16:49:46

If you disable/uninstall NetworkManager service, you need to enable and start the network service instead.

Post Reply