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.
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. |
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: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.