lease

Syntax

lease {| infinite} no lease

描述

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

Command context

config-dhcp-server-pool

Parameters

设置DHCPv4lease time. Format: DD:HH:MM. Default: 01:00:00.

无限

设置DHCPv4lease 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 DHCPv4 server poolprimary-poolon VRFprimaryto12hours.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#lease 00:12:00

Deletes the lease time for DHCPv4 server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#没有lease 00:12:00