lease

Syntax

lease {<TIME> | infinite}

no lease

Description

Sets the length of the DHCPv6 lease time for the current pool. The lease time determines how long an IP address is valid before a DHCPv6 client must request that it be renewed.

The no form of this command returns the DHCPv6 lease time to the default value 1 hour.

Command context

config-dhcpv6-server-pool

Parameters

<TIME>

Sets the DHCPv6 lease time. Format: DD:HH:MM. Default: 01:00:00.

infinite

Sets the DHCPv6 lease time to infinite. This means that addresses do not need to be renewed.

Authority

Administrators or local user group members with execution rights for this command.

Example

Sets the lease time for DHCPv6 server pool primary-pool on VRF primary to 12 hours.

switch(config)# dhcpv6-server vrf primary
switch(config-dhcpv6-server)# pool primary-pool
switch(config-dhcpv6-server-pool)# lease 00:12:00

Sets the lease time for DHCP server pool primary-pool on VRF primary to the default value.

switch(config)# dhcpv6-server vrf primary
switch(config-dhcpv6-server)# pool primary-pool
switch(config-dhcpv6-server-pool)# no lease 00:12:00