dhcp lease-proxy

Function

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.

Format

dhcp lease-proxy [ lease-time ]

dhcp lease-proxy first-step first-step second-step second-step

undo dhcp lease-proxy [ lease-time ]

undo dhcp lease-proxy first-step first-step second-step second-step

Parameters

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.

Views

BAS interface view (GE), BAS interface view (VE), BAS interface view (trunk)

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bras-control write

Usage Guidelines

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.

  • Lease proxy takes effect only when the lease assigned by the DHCP server is greater than a value that is twice the proxy lease.
  • If a user's lease is delivered by the RADIUS server, the RADIUS-delivered lease takes effect.
  • DHCP lease proxy and WLAN user roaming switchover (which can be enabled using the wlan-switch enable command) are mutually exclusive.
  • A fixed proxy lease and a step-based proxy lease cannot be configured on the same BAS interface. If both a fixed proxy lease and a step-based proxy lease are configured on the same BAS interface, the later configuration overrides the previous one.
  • DHCP lease proxy is not supported on inter-board Eth-Trunk's slave processing board or RUI backup device.
  • DHCP lease proxy is not supported on a BAS interface on which DHCP proxy is disabled.
  • DHCP lease proxy does not support self-defined options.

Example

# Enable DHCP lease proxy with step-based proxy leases on a BAS interface and set the first-step and second-step proxy leases to 500s and 2000s, respectively.
<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
# Enable DHCP lease proxy on a BAS interface and set the proxy lease to 700s.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >