Haven't seen this one before.
nmcli con show public | grep ipv4.gateway
ipv4.gateway: --
nmcli con mod public ipv4.gateway "192.168.1.254"
(no errors, etc., returns to shell prompt)
nmcli con show public | grep ipv4.gateway
ipv4.gateway: --
None of the changes I attempt to make to the public interface stick. The ipv4.method is currently set to manual.
Any ideas why or how to fix it?
nmcli changes not taking
Re: nmcli changes not taking
Usually one does not need to look at the files, but in this case ... what is in the file now?
That would be /etc/sysconfig/network-scripts/ifcfg-public, I presume.
You did run the commands as root?
That would be /etc/sysconfig/network-scripts/ifcfg-public, I presume.
You did run the commands as root?
Re: nmcli changes not taking
Also the ipv4.gateway needs to be within the subnet allocated to the interface or it will not be able to reach it.
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke