Static IP address keeps reverting to random generated IP address on reboot

Issues related to configuring your network
Post Reply
regiuser123
Posts: 3
Joined: 2021/05/19 16:21:44

Static IP address keeps reverting to random generated IP address on reboot

Post by regiuser123 » 2021/05/19 17:00:23

Hi, I'm trying to set a static IP address for my VM. However, it keeps on reverting back to a randomly generated IP address on reboot.
1. I've used nmtui and nmcli
2. I've tried changing /etc/sysconfig/network-scripts/ifcfg-eth0 to:

Code: Select all

bootproto=static
and 
bootproto=none 
3. I've disabled NetworkManager as well

Any other method I could use would be great. Thanks

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

Re: Static IP address keeps reverting to random generated IP address on reboot

Post by TrevorH » 2021/05/19 17:06:02

All ifcfg-$interface parameters are case sensitive so it is BOOTPROTO=none not bootproto=none
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

regiuser123
Posts: 3
Joined: 2021/05/19 16:21:44

Re: Static IP address keeps reverting to random generated IP address on reboot

Post by regiuser123 » 2021/05/19 17:09:16

Yes, all capital letters as well in my config

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

Re: Static IP address keeps reverting to random generated IP address on reboot

Post by TrevorH » 2021/05/19 17:40:47

post the entire file(s)
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

Post Reply