Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

lease-time

date_range 04-Dec-23

Syntax

content_copy zoom_out_map
lease-time (length | infinite);

Hierarchy Level

content_copy zoom_out_map
[edit interfaces interface-name                 unit                 logical-unit-number            family     inet dhcp]

Description

Request a specific lease time for the IP address. The lease time is the length of time in seconds that a client holds the lease for an IP address assigned by a DHCP server.

Default

If no lease time is requested by client, then the server sends the lease time. The default lease time on a Junos OS DHCP server is one day.

Options

seconds

Request a lease time of a specific duration.

Note:

Starting in Junos OS Release 23.4R1, the DHCP client silently discards the DHCP OFFER which has a lease-time of less than 15 seconds.

  • Range: 60 through 2147483647 seconds

infinite

Request that the lease never expire.

Required Privilege Level

interface—To view this statement in the configuration.interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 9.0.

footer-navigation