< Home

mac-authen offline dhcp-release

Function

The mac-authen offline dhcp-release command enables the device to clear user entries when receiving DHCP Release packets from MAC address authentication users.

The undo mac-authen offline dhcp-release command restores the default configuration.

By default, the device does not clear user entries when receiving DHCP Release packets from MAC address authentication users.

Format

mac-authen offline dhcp-release

undo mac-authen offline dhcp-release

Parameters

None

Views

MAC access profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After MAC address authentication users who send DHCP Release packets go offline, the corresponding user entries on the device cannot be deleted immediately. This occupies device resources and possibly prevents other users from going online. You can run this command to enable the device to clear the user entries in real time when MAC address authentication users go offline.

Precautions

MAC address authentication users who go online through VLANIF interfaces do not support this function.

If the device functions as a DHCP relay agent, configure the DHCP snooping function on the device; otherwise, this command does not take effect.

This function takes effect only in L2 BNG scenarios.

Example

# In the MAC access profile m1, enable the device to clear user entries when receiving DHCP Release packets from MAC address authentication users.

<HUAWEI> system-view
[HUAWEI] mac-access-profile name m1
[HUAWEI-mac-access-profile-m1] mac-authen offline dhcp-release
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >