I have this in etc/network/interfaces
:
auto eth0
iface eth0 inet static
address 192.168.1.119
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
I don't use network manager.
ifdown eth0 && ifup eth0
does not update my ip.
But the update is done if I reboot.
What am I missing ?
ifconfig -a
, I still see the interface with the ip. Normal ?ifup
is failing to parse your config for some reason. Can you simplify the config slightly by removing thenetwork
andbroadcast
stanzas and split the DNS config into two statementsdns-nameservers 8.8.8.8
anddns-nameservers 8.8.4.4
. It may also be useful using the--verbose
flag when usingifdown
andifup
to see if you get any additional information.