On Fri, May 8, 2009 at 12:00 AM, Felipe Alfaro Solana <felipe.alf...@gmail.com> wrote: > 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. >
Just in case anyone is curious about how I solved the problem: # cat /etc/dhclient.conf interface "vr2" { supersede domain-name "example.com"; supersede domain-name-servers 1.2.3.4; } alias { interface "vr2"; fixed-address 4.5.6.7; option subnet-mask 255.255.255.0; } -- http://www.felipe-alfaro.org/blog/disclaimer/