Re: DHCP questions...
"Kevin Wang" <kevinwang1975@hotmail.com> writes:
>
> Second, where or how to check if the lease of DHCP expires? I know "ipconfig
> /all" can do this under Windows.
Information about your leases is probably stored in the textfile
"/var/lib/dhcp/dhclient.leases" (or maybe
"/var/run/dhclient.eth0.leases", depending on your configuration).
There may be several unexpired leases there, only one of which you're
using. Generally, if you do:
egrep expire /var/lib/dhcp/dhclient.leases
to list all the expiry times, the last (both the last displayed and
the latest date) will be when your current lease expires.
--
Kevin <buhr@telus.net>
Reply to: