C613-50631-01 Rev A Command Reference for IE340 Series 3072
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP) COMMANDS
LEASE
lease
Overview This command sets the expiration time for a leased address for the DHCP address
pool you are configuring. The time set by the days, hours, minutes and seconds is
cumulative. The minimum total lease time that can be configured is 20 seconds.
The maximum total lease time that can be configured is 120 days.
Note that if you add a user-defined option 51 using the option command, then you
will override any settings created with this command. Option 51 specifies a lease
time of 1 day.
Use the infinite parameter to set the lease expiry time to infinite (leases never
expire).
Use the no variant of this command to return the lease expiration time back to the
default of one day.
Syntax
lease <days> <hours> <minutes> [<seconds>]
lease infinite
no lease
Default The default lease time is 1 day.
Mode DHCP Configuration
Examples To set the lease expiration time for address pool P2 to 35 minutes, use the
commands:
awplus# configure terminal
awplus(config)# ip dhcp pool P2
awplus(dhcp-config)# lease 0 0 35
Parameter Description
<days> The number of days, from 0 to 120, that the lease expiry time is
configured for.
Default: 1
<hours> The number of hours, from 0 to 24, that the lease expiry time is
configured for.
Default: 0
<minutes> The number of minutes, from 0 to 60, the lease expiry time is configured
for.
Default: 0
<seconds> The number of seconds, from 0 to 60, the lease expiry time is configured
for.
infinite The lease never expires.