On Thu, May 7, 2009 at 10:20 AM, Vadim Zhukov <persg...@gmail.com> wrote: > On Thursday 07 May 2009 11:57:57 Felipe Alfaro Solana wrote: >> Hi misc, >> >> I've been reading dhclient(8) but still it is not clear to me if >> dhclient(8) is supposed to stay in the background to automatically >> renew leases. In the manual page it says: >> >> B B B -d B B B Forces dhclient to always run as a foreground process. >> By de- fault, dhclient runs in the foreground until it has configured >> the interface, and then will revert to running in the back- ground. >> >> So apparently dhclient(8) should be kept in the background waiting for >> leases to be renewed. However, if I run "ps ax" I can't see anything >> that looks like dhclient(8) is running in the background at all. How >> is this supposed to work for DHCP leases for cable/residential users >> that are not guaranteed to always keep the same IP? >> >> Thanks in advance. > > Check your /var/log/daemon for messages from dhclient. If interface is > disabled on dhclient start and dhclient can't enable it, then it'll put > its hands off.
There's nothing in the logs. I've found out what the problem is. My /etc/hostname.vr2 looked like this: # cat /etc/hostname.vr2 dhcp inet 10.255.255.1 255.255.255.0 NONE alias up /etc/netstart gets confused about the dhcp and static definitions.