lease
Syntax
lease {<TIME> | infinite}
no lease
Description
Sets the length of the DHCPv4 lease time for the current pool. The lease time determines how long an IP address is valid before a DHCPv4 client must request that it be renewed.
The
no
form of this command returns the DHCPv4 lease time to its default value 1 hour.
Command context
config-dhcp-server-pool
Parameters
<TIME>
Sets the DHCPv4 lease time. Format: DD:HH:MM. Default: 01:00:00.
infinite
Sets the DHCPv4 lease time to infinite. This means that addresses do not need to be renewed.
Authority
Administrators
Example
Sets the lease time for DHCPv4 server pool primary-pool on VRF primary to 12 hours.
switch(config)# dhcp-server vrf primary switch(config-dhcp-server)# pool primary-pool switch(config-dhcp-server-pool)# lease 00:12:00
Deletes the lease time for DHCPv4 server pool primary-pool on VRF primary.
switch(config)# dhcp-server vrf primary switch(config-dhcp-server)# pool primary-pool switch(config-dhcp-server-pool)# no lease 00:12:00