An application I'm working on writes the network settings by updating the
/etc/sysconfig/network/ifcfg-* files. Unfortunately these settings are not reloaded because every time I do
ifconfig there is no IP on the interface I'm updating.
I tried adding
ONBOOT='yes' to that file.
ifconfig eth0 up.
ifup eth0 but it ends up with a timeout error.
But if I do
ifconfig eth0 192.168.1.5/24 for example it works but that IP does not appear in the
ifcfg-eth0 file for examples.
So my questions are:
By setting the IP using
ifconfig, Where is the location of these settings is stored ?
In my situation where I write to the
ifcfg-eth0how to reload the settings from that file ?
Note: The machine that I'm working on has no
Note 2: The machine is on a remote location and I'm connecting to it through SSH using putty.
Note 3: As of this documentation page section 126.96.36.199 the command
ifup will bring the interface up and reads its corresponding configuration from
ifcfg-* file. Somehow the command
ifup eth0 ends up with
wicked: device enp2s0: operation timed out enp2s0 setup-in-progress