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:
-
maximum-lease-time;
-
default-lease-time;
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;