< Home

lease (upgrade-compatible command)

Function

The lease command sets the lease for IP addresses in a global IP address pool.

By default, the lease of IP addresses is one day.

Format

lease day [ hour [ minute ] ]

Parameters

Parameter

Description

Value

day

Specifies the number of days in the IP address lease.

The value is an integer ranging from 0 to 999, in days. The default value is 1.

hour

Specifies the number of hours in the IP address lease.

The value is an integer ranging from 0 to 23, in hours. The default value is 0.

minute

Specifies the number of minutes in the IP address lease.

The value is an integer ranging from 0 to 59, in minutes. The default value is 0.

Views

IP address pool view

Default Level

2: Configuration level

Usage Guidelines

After the upgrade, it is replaced by the lease { day day [ hour hour [ minute minute ] ] | unlimited } command.

Example

# Specify the IP address lease of the global address pool global1 to 1 day.

<HUAWEI> system-view
[HUAWEI] ip pool global1
[HUAWEI-ip-pool-global1] lease 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >