# lease

#### Syntax

lease { days [ hours [ minutes [ seconds ] ] ] | infinite }

no lease

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Specifies the time period for which the supplied IP address is valid. The no version restores the default lease time, 30 minutes.

| Note: Ensure that DHCP clients have a minimum lease of 120 minutes before you begin a unified in-service software upgrade to prevent unwanted lease expirations due to the length of the unified ISSU process.

#### Options

- days—Number of days for which the IP address is valid; in the range 0–32768
- hours—Number of hours for which the IP address is valid in the range 0–24
- minutes—Number of minutes for which the IP address is valid; in the range 0–60
- seconds—Number of seconds for which the IP address is valid; in the range 0–60
- infinite—Assigns a lease that does not expire

#### Mode

DHCP Local Pool Configuration