DGS-6604
m
lease
CLI Reference Guide
381
lease
Use this command to configure the lease duration of an IP address that is
assigned from a DHCP server to a client. Use the no form of this command to
restore the default value.
lease {
DAYS [HOURS | MINUTES
] | infinite}
no lease
Default
1 day
Command Mode
DHCP pool configuration
Usage Guideline
This command specified the duration of a lease. This command can only be
executed under DHCP pool configuration mode, identified by the (config-dhcp)#
prompt.
Examples
The following is a sample of configuring the lease, in address pool "pool1", to 1
day.
The following is sample of configuring the lease, in address pool "pool1", to 1
hour.
Syntax Description
DAYS
Specifies the duration of the lease in number of days
HOURS
(Optional) Specifies the number of hours in the lease. The
DAYS
value must be
configured prior to
HOURS
.
MINUTES
(Optional) Specifies the number of minutes in the lease. The
DAYS
and
HOURS
values must be configured prior to
MINUTES
.
Infinite
Specifies the lease is unlimited
switch# configure terminal
switch(config)# ip dhcp pool pool1
switch(config-dhcp)# lease 1
switch# configure terminal
switch(config)# ip dhcp pool pool1
switch(config-dhcp)# lease 0 1
Summary of Contents for DGS-6600 Series
Page 1: ...0 9 3 ...