Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Specifying DHCP Lease Times for IP Address Assignments

For clients that do not request a specific lease time, the default lease time is one day. You can configure a maximum lease time for IP address assignments or change the default lease time.

To configure lease times, include the maximum-lease-time and default-lease-time statements:

You can include these statements at the following hierarchy levels:

[edit system services dhcp][edit system services dhcp pool][edit system services dhcp static-binding]

Lease times defined for static bindings and address pools take priority over lease times defined at the [edit system services dhcp] hierarchy level.

The maximum-lease-time statement configures the maximum length of time in seconds for which a client can request and hold a lease. If a client requests a lease longer than the maximum specified, the lease is granted only for the maximum time configured on the server. After a lease expires, the client must request a new lease.

Note: Maximum lease times do not apply to dynamic BOOTP leases. These leases are not specified by the client and can exceed the maximum lease time configured.

The following example shows a configuration for maximum and default lease times:

[edit system services dhcp]maximum-lease-time 7200;default-lease-time 3600;

Published: 2013-02-22