[Novalug] Changing DHCP server address? (fwd)
D. Frye
dafr@dafr.us
Tue Mar 20 09:28:21 EDT 2007
> Here's what I want to do - I want to be able to 'ifdown eth0' my laptop
> here at work, suspend the laptop, then do 'ifup eth0' at home. Currently
> when I try this, apparently dhclient is trying to access the dhcp server
> at the other location - at work, dhclient is trying to access the dhcp
> server at 192.168.1.2 (my home router/firewall), and I haven't figured out
> how to change this without rebooting. I'm sure there's a simple way to do
> this with either a config file tweak, command-line command or
> network-script mod, I just haven't found it yet. Any ideas?
>
Try to release the DHCP lease on your work side before downing the
interface (though the ifdown is probably not required):
$ sudo dhclient -r eth0
df
More information about the Novalug
mailing list