I am changing my configuration from dhcp to static. After running
ifconfig does not reflect the change. Running
systemctl restart did not reflect the change. Rebooting did.
iface lo inet loopback
iface eth0 inet dhcp
address was 192.168.0.5
/etc/network/interfaces.d/primary was edited to:
iface eth0 inet static
upon save ran
sudo ifdown eth0
sudo ifup eth0
ifconfig still returned the 192.168.0.5 address
I tried again using the
--force option on
ifup with the same result.
I then tried
systemctl restart networking.service and
ifconfig still reported the 192.168.0.5 address.
None of these commands appeared to apply the change in the configuration file. Rebooting, however, did apply the change correctly so I believe the static configuration I created is correct.