[blfs-support] dhclient lease file label question

Armin K. krejzi at email.com
Fri Mar 1 00:47:05 PST 2013


On 03/01/2013 09:45 AM, lux-integ wrote:
> Greetings,
>
> when building dhclient the configure options for dhcp-4.2.5
> http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/dhcp.html
>
> has this line:-
> --with-cli-lease-file=/var/lib/dhclient/dhclient.leases
>
> if I want to have my lease file labelled as  (for example )
> ~/dhclient.leases.eth0
> ~/dhclient.leases.eth1
> depening on the interface
>
> how should the configure options  be set?  Would (for example )
> --with-cli-lease-file=/var/lib/dhclient/dhclient.leases.eth%N
>
> work
>
> Advice would be appreciated
>
> sincerely
> luxInteg
>

Leases are already labeled if you use ifup/ifdown. That's the default 
setting (ie, if you run dhclient whatever *manually*). You can always 
use -lf switch at runtime in order to change the lease file.



More information about the blfs-support mailing list