Guest's picture

When I change any values in /etc/network/interfaces, they do not show properly in confconsole until I reboot. Most changes only result in the gateway turning empty. Below is an example to show what I mean.


Settings in confconsole before:
IP Address: 192.168.0.240
Netmask: 255.255.255.0
Gateway: 192.168.0.1
Name Server: 192.168.0.1

Settings in /etc/networkd/interfaces before:
address 192.168.0.240
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 192.168.0.1

Settings in /etc/networkd/interfaces after:
address 192.168.0.40
netmask 255.255.0.0
gateway 192.168.0.10
dns-nameserver 192.168.0.21 192.168.0.22 192.168.0.23

Settings in confconsole after:
IP Address: 192.168.0.240
Netmask: 255.255.255.0
Gateway: 192.168.0.1
Name Server: 192.168.0.21
Name Server: 192.168.0.22
Name Server: 192.168.0.23


Even bringing the eth0 down and up again, does little to fix this, this is what empties the gateway setting, in confconsole only, the /etc/network/interfaces value remains as I set it. But when I change the /etc/networkd/interfaces and reboot, the values are shown properly in confconsole, including the gateway.

What am I forgetting? How do I make changes take effect, whithout using a reboot.


I really want to do this via editing /etc/network/interfaces, as I want to make it part of a script set I'm working on.

 

Thanks again TurnKey for a great distribution and everybody for helping me this far.

Forum: 
Jeremy Davis's picture

Glad you got it sorted... And don't feel stupid. I'm sure all of us have made silly mistakes at times. I know I certainly have...! :)

Also FWIW you can use the 'service" command in TurnKey (Debian) so instead of

/etc/init.d/networking reload

You could use

service networking reload

Not that there's anything wrong with the former, I just prefer the latter and wanted to share! :)

Add new comment