[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 :-)


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

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

lease {
  interface "eth0";
  option subnet-mask;
  option routers;
  option domain-name-servers;
  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.



Reply to: