SROS Command Line Interface Reference Guide
DHCP Pool Command Set
5991-2114
© Copyright 2007 Hewlett-Packard Development Company, L.P.
1417
lease
<days> <hours> <minutes>
Use the
lease
command to specify the duration of the lease for an IP address assigned to a Dynamic Host
Configuration Protocol (DHCP) client. Use the
no
form of this command to return to the default lease
value.
Syntax Description
<days>
Specifies the duration of the IP address lease in days.
<hours>
Optional. Specifies the number of hours in a lease. You may only enter a value in
the hours field if the days field is specified.
<minutes>
Optional. Specifies the number of minutes in a lease. You may only enter a value
in the minutes field if the days and hours fields are specified.
Default Values
By default, an IP address lease is one day.
Usage Examples
The following example specifies a lease of
2 days
:
ProCurve(config)#
ip dhcp-server pool MyPool
ProCurve(config-dhcp)#
lease 2
The following example specifies a lease of
1 hour
:
ProCurve(config)#
ip dhcp-server pool MyPool
ProCurve(config-dhcp)#
lease 0 1
The following example specifies a lease of
30 minutes
:
ProCurve(config)#
ip dhcp-server pool MyPool
ProCurve(config-dhcp)#
lease 0 0 30