dhcp upgrade

Function

The dhcp upgrade command configures leases of all DHCPv4 users on a BRAS.

The undo dhcp upgrade command deletes the configuration.

By default, the dhcp upgrade command is not configured.

This command is supported only on the NetEngine 8000 F1A.

Format

dhcp upgrade lease days [ hours [ minutes ] ] [ renewal-time days1 [ hours1 [ minutes1 ] ] ] [ rebinding-time days2 [ hours2 [ minutes2 ] ] ]

undo dhcp upgrade

Parameters

Parameter Description Value
hours

Specifies the hours.

The value is an integer ranging from 0 to 23.

minutes

Specifies the minutes.

The value is an integer ranging from 0 to 59.

renewal-time days1

Specifies the days.

The value is an integer that ranges from 0 to 999.

hours1

Specifies the hours.

The value is an integer that ranges from 0 to 23.

minutes1

Specifies the minutes.

The value is an integer that ranges from 0 to 59.

rebinding-time days2

Specifies the days.

The value is an integer that ranges from 0 to 999.

hours2

Specifies the hours.

The value is an integer that ranges from 0 to 23.

minutes2

Specifies the minutes.

The value is an integer that ranges from 0 to 59.

lease days

Specifies the days.

The value is an integer ranging from 0 to 999.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

Unlike PPP users, DHCPv4 users are unaware of link Down events and cannot dial up again during the upgrade of DHCPv4 users must restart their terminals to trigger the IP address request process before they can get online again. The current solution is to reduce the address pool lease at a specified time before the BRAS upgrade, so that terminals can send renewal packets immediately after the device is upgraded, enabling DHCPv4 users to get online again. For example, if the address pool renewal time is 1.5 days, then you can change the address pool lease to 30 minutes and renewal time to 15 minutes 1.5 days before the upgrade.

However, there are still two problems:

  • Modification of an address pool lease applies to only DHCP users using addresses assigned from the address pool. The lease of addresses delivered by the RADIUS server remains unchanged. As a result, users with addresses delivered by the RADIUS server need to wait a long time before they can get online again, unless these users restart their terminals.
  • The lease of a user address pool is configured in the address pool view. Manually modifying the leases of all address pools requires a lot of work.

    To solve the preceding problems, run the dhcp upgrade command in the system view to modify the leases of all DHCPv4 user addresses.

Configuration Impact

After the dhcp upgrade command is run, all DHCP users use the globally configured lease, no matter whether their IP addresses are delivered by the RADIUS server or assigned from local address pools.

After the dhcp upgrade command is run, you can run the display dhcp upgrade command to view the configuration result and calculate the restart time of the BRAS based on the previous lease.

This command applies to Layer 2 DHCPv4 users, Layer 3 DHCPv4 users, and leased line Layer 2 DHCPv4 users.

This command cannot be saved into the configuration file and is automatically deleted after the device is upgraded.

Precautions

If a short lease is configured, CPU usage will rise when many DHCP users send renewal messages at the same time. In a non-BRAS-upgrade scenario, do not configure a short lease.

Example

# Configure address leases of all DHCPv4 users on a device.
<HUAWEI> system-view
[~HUAWEI] dhcp upgrade lease 0 0 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >