lease

Syntax

lease {| infinite} no lease

描述

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没有form of this command returns the DHCPv6 lease time to the default value 1 hour.

Command context

config-dhcpv6-server-pool

Parameters

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

无限

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

权威

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

Example

Sets the lease time for DHCPv6 server poolprimary-poolon VRFprimaryto12hours.

switch(config)#dhcpv6-server虚拟现实f primaryswitch(config-dhcpv6-server)#pool primary-poolswitch(config-dhcpv6-server-pool)#lease 00:12:00

Sets the lease time for DHCP server poolprimary-poolon VRFprimaryto the default value.

switch(config)#dhcpv6-server虚拟现实f primaryswitch(config-dhcpv6-server)#pool primary-poolswitch(config-dhcpv6-server-pool)#没有lease 00:12:00