ifcfg-ens192

General support questions
Post Reply
cjmctague
Posts: 3
Joined: 2017/09/19 03:46:13

ifcfg-ens192

Post by cjmctague » 2017/09/19 03:54:25

Code: Select all

root@test:/etc/sysconfig/network-scripts$ cat ifcfg-ens192 
# Generated by dracut initrd
After any reboot of my servers, my network configuration is being overwritten and whipping out my static IP and settings.

This issue just started after updating to the latest Centos

Code: Select all

root@test:$ uname -r
3.10.0-693.2.2.el7.x86_64
These servers are VM's on ESXI 6.5.

Any help?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: ifcfg-ens192

Post by aks » 2017/09/19 18:56:50

a) /etc/sysconfig/network-scripts/ifcfg-ens192 contains nothing (the only thing according your post is "# Generated by dracut initrd". Where's the configuration you mention?
b) Is you network managed by NetworkManager?

cjmctague
Posts: 3
Joined: 2017/09/19 03:46:13

Re: ifcfg-ens192

Post by cjmctague » 2017/09/20 14:58:19

yea sorry it contains other settings but they change on every reboot. If I change anything in that file, it gets whipped by dracut initrd.


Yes NetworkManger is running, that's probably what keeps reseting the config file.

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

Re: ifcfg-ens192

Post by TrevorH » 2017/09/20 15:38:14

It tells you what did it... "# Generated by dracut initrd".

Is there anything special about this system?
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

cjmctague
Posts: 3
Joined: 2017/09/19 03:46:13

Re: ifcfg-ens192

Post by cjmctague » 2017/09/20 20:34:42

yea I know but that wasn't the direct cause. I figured out the issue for now. Going to monitor it for now to see if anything else goes wrong before putting it back into production.

Nothing special. Just a basic webserver, mysql server, and place for students to do work. We just migrated 1 server from RHEL 5 to centos 7.4 and the other from centos 6.8 to 7.4. I used VMware to virtualize them on new hardware as the previous servers were run on 10-15 year old hardware.

The issue has to do with NetworkManager being on and dhclient not being happy with the configuration so it was overwritten by dracut initrd. It was also overwriting /etc/resolv.conf.

I also took the quotes out from around the assignments in ifcfg-ens192 and it seemed sold my issue

Post Reply