ipv6: T1, T2, default-lease-time and preferred-lifetime

Mariusz Sawicki rash at debian.org.pl
Wed Jun 20 09:01:52 UTC 2012


> Why doesn't the output of `ip addr show` not respect the values of
> received valid and preferred lifetime. It just displays "forever" for
> both lifetimes.

The worst is when dhclient receives from server preferred and valid
lifetimes set to zero for some address. When address expires it is
removed from interface, but after a while dhclient brings it back up.
At next Renew/Rebind it does not include that address in the request,
but that address is written in lease-file so after dhclient restart it
is included in Confirm reqtest.

According to RFC3315 and 18.1.8 client discards any addresses that have
a valid lifetime set to zero. It is needed when you want to change
address used by host.



More information about the dhcp-users mailing list