ip dhcp server max-lease-time

Use this command to set the maximum lease time for the DHCP server to be shared with the DHCP client.

Use the no form of this command to delete the IPv4 maximum lease time configuration.

Command Syntax

Copy
ip dhcp server max-lease-time SECONDS
no ip dhcp server max-lease-time

Parameters

SECONDS

Maximum lease time in seconds. Default is 86400 seconds.

Default

Default value is 86400 seconds

Command Mode

Configure mode and VRF mode

Applicability

This command was introduced in OcNOS version 6.1.0.

Examples

Copy
#configure terminal
(config)#ip dhcp server max-lease-time 500
 
#configure terminal
(config)#ip vrf vrf1 
(config-vrf)#ip dhcp server max-lease-time 400