setting preferred and valid lifetimes, T1 and T2, using dhclient.conf

David Ganor david at oliver-solutions.com
Thu Jun 18 15:59:17 UTC 2015


Hi,
As an example, follows is how we set it in our DHCPv6 client config:

send dhcp6.ia-na WW:WW:WW:WW:T1:T1:T1:T1:T2:T2:T2:T2;

Where "WW:WW:WW:WW" is the 4 hexa bytes of the IAID (in network byte order),
"T1:T1:T1:T1" is the 4 hexa bytes of T1 (in network byte order) and
"T2:T2:T2:T2" is the 4 hexa bytes of T2 (in network byte order)

HTH,

Best regards,
David Ganor

|||||||||||||||||||||||||||||||||||
Cell: +972-54-3090299
Tel: +972-74-7028642
Fax: +972-153-74-7028642

SW developer
www.oliver-solutions.com
|||||||||||||||||||||||||||||||||||

On 18/06/2015 04:07, Glenn Satchell wrote:
> Hi Dusan
>
> That web page might be quite an old version of dhclient.conf. I'd suggest
> looking at the one installed on your client using 'man dhclient.conf' to
> make sure it includes the latest settings that match your client.
>
> The command you're probably looking for is 'send'. I'm not sure of the
> exact option required, but it will be in the dhcp-options man page and
> search for dhcp6.
>
> In dhclient.conf add something like
>
> send option dhcp6.<whatever> <value>
>
>         send { [ option declaration ]
>         [, ... option declaration ]}
>
>         The send statement causes the client to send the specified options to
>         the server with the specified values.  These are full option
>         declarations as described in dhcp-options(5).  Options that are
>         always sent in the DHCP protocol should not be specified here, except
>         that the client can specify a requested dhcp-lease-time option other
>         than the default requested lease time, which is two hours.  The other
>         obvious use for this statement is to send information to the server
>         that will allow it to differentiate between this client and other
>         clients or kinds of clients.
>
> regards,
> -glenn
>
> On Thu, June 18, 2015 6:15 am, Mudric, Dusan (Dusan) wrote:
>> Hi DHCPv6 experts,
>>
>> I need help finding out how to set dhcpd6 client's IA_NA address preferred
>> and valid lifetimes, and IA_NA T1 and T2, using dhclient.conf
>> configuration file.
>>
>> rfc3315#section-22.4
>> " If the time at which the addresses in an IA_NA are to be renewed is to
>> be left to the discretion of the client, the server sets T1 and T2 to 0."
>>
>> The Internet Systems Consortium DHCP Client uses hard coded default
>> values:
>> - T1=3600,
>> - T2=5400,
>> - Preferred lifetime=7200, and
>> - Valid lifetime=7500.
>>
>> Which http://linux.die.net/man/5/dhclient.conf options can be used to
>> change these values when the server sets T1=T2=0?
>>
>> Thanks,
>> Dusan Mudric.
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>



More information about the dhcp-users mailing list