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.
In the system view:
mac-authen offline dhcp-release interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
undo mac-authen offline dhcp-release interface { interface-type interface-number1 [ to interface-number2 ] } &<1-10>
In the interface view:
mac-authen offline dhcp-release
undo mac-authen offline dhcp-release
Parameter |
Description |
Value |
---|---|---|
interface { interface-type interface-number1 [ to interface-number2 ] } |
Specifies the type and number of an interface.
|
- |
System view, Ethernet interface view, GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, Port group view
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
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.
# In the system view, enable the device to clear user entries when receiving DHCP Release packets from MAC address authentication users on GE0/0/1.
<HUAWEI> system-view [HUAWEI] mac-authen offline dhcp-release interface gigabitethernet 0/0/1
# In the interface view, enable the device to clear user entries when receiving DHCP Release packets from MAC address authentication users on GE0/0/1.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] mac-authen offline dhcp-release