The dhcp lease-proxy command enables DHCP lease proxy on a BAS interface and specifies a proxy lease.
The undo dhcp lease-proxy command disables DHCP lease proxy on a BAS interface.
The dhcp lease-proxy first-step second-step command enables DHCP lease proxy with step-based proxy leases.
The undo dhcp lease-proxy first-step second-step command disables DHCP lease proxy with step-based proxy leases.
By default, DHCP lease proxy is disabled on a BAS interface.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
lease-time |
Specifies a proxy lease. |
The value is an integer ranging from 600 to 3600, in seconds. The default value is 600s. |
first-step first-step |
Specifies a first-step proxy lease. |
The value is an integer ranging from 300 to 599, in seconds. |
second-step second-step |
Specifies a second-step proxy lease. |
The value is an integer ranging from 1800 to 3600, in seconds. |
Usage Scenario
In a scenario where a DHCP server assigns an IP address with a long lease to a client, if the client or the link between the client and the BRAS fails, the user is offline. However, the DHCP server cannot immediately detect the logout because the lease of the assigned IP address has not expired. As a result, the DHCP server cannot release the assigned IP address immediately after the user is offline, causing a waste of address resources. To resolve this problem, run the dhcp lease-proxy command to enable DHCP lease proxy on a BAS interface and specifies a proxy lease. After DHCP lease proxy is enabled, the BRAS functioning as a DHCP relay agent changes the lease to a short proxy lease before sending DHCP Offer and ACK messages to the client. In this way, the BRAS can release the assigned IP address immediately after the user goes offline due to a user-side fault. If the client sends a lease renewal packet after the fault is rectified, the BRAS replies with an NAK message and triggers the client to re-initiate a login request for service restoration.
Using shorter proxy leases can accelerate the identification of client or link faults. However, users renew their leases more frequently, increasing the processing load of the device. To balance the conflict between fault detection and processing load, run the dhcp lease-proxy first-step second-step command to enable DHCP lease proxy with step-based proxy leases. After this function is enabled, the first-step proxy lease specified by first-step is used for user login and lease renewal by default.Precautions
In VS mode, this command is supported only by the admin VS.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] commit [~HUAWEI-GigabitEthernet0/1/1.1] bas [~HUAWEI-GigabitEthernet0/1/1.1-bas] dhcp lease-proxy first-step 500 second-step 2000
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1.1 [*HUAWEI] commit [~HUAWEI-GigabitEthernet0/1/1.1] bas [~HUAWEI-GigabitEthernet0/1/1.1-bas] dhcp lease-proxy 700