[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

(Solved) Re: Setting up "dhclient" to get a fallback configuration



On Wed, 06 Oct 2010 14:10:42 +0000, Camaleón wrote:

> I'm trying to setup a fallback configuration for "eth0" device when no
> DHCP server is available in the local network. But I can't :-)

Solved.

This bug is (still!) valid. I'll reopen, time permitting so it gets fixed 
for the current package ("isc-dhcp-client"):

***
must set expire date on static leases in dhclient.conf
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=100886
***

One has to define valid (in future) values for "renew, rebind, 
expire" fields in the "lease" stanza:

***
lease {
  interface "eth0";
  fixed-address 172.16.0.66;
  option subnet-mask 255.255.255.0;
  option routers 172.16.0.1;
  option domain-name-servers 80.58.0.33;
  renew 2 2015/1/12 00:00:01;
  rebind 2 2015/1/12 00:00:01;
  expire 2 2015/1/12 00:00:01;
} 
***

That way works like a charm.

Greetings,

-- 
Camaleón


Reply to: