"Kevin Wang" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to