ip dhcp server default-lease-time

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

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

Command Syntax

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

Parameters

SECONDS

Default 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 default-lease-time 500
 
#configure terminal
(config)#ip vrf vrf1 
(config-vrf)#ip dhcp server default-lease-time 400