Author: Tony Whitmore Date: To: Hampshire LUG Discussion List Subject: Re: Thanks,
guys! Was: [Re: [Hampshire] problems with /etc/network/interfaces
onDebian Etch box]
hantslug@??? wrote: > I tried both simultaneously: i.e.
> ifdown eth0
> then vim /etc/network/interfaces
> changed the comments round, added network 192.168.0.0
> ifup eth0
>
> Network came back up - but still on DHCP and the address that had been
> allocated by the router on start-up.
>
> So I tried rebooting, not really expecting to get anywhere, and the connection
> is working - and the IP address is 192.168.0.2. \o/
That's because ifdown/ifup won't kill any running instances of dhclient
(the DHCP client) so the settings in /etc/network/interfaces will get
overridden pretty quickly.
On a reboot, dhclient is not started because the init scripts detect the
"static" part of the /etc/network/interfaces config file.