(Optional) Configuring the Device to Clear the MAC Address Entry Immediately When the User Is Disconnected
Context
If a DHCP client is disconnected but its MAC address entry is not aged, the device forwards the message whose destination address is the IP address of the DHCP client based on the dynamic MAC address entries. This deteriorates device performance.
The DHCP client sends a DHCP Release message when it is disconnected. Upon receiving the message, the device immediately deletes the DHCP snooping binding entry of the DHCP client. You can enable the device to delete the mapping MAC address entry when a dynamic DHCP snooping binding entry is deleted.
Procedure
- Run system-view
The system view is displayed.
- Run dhcp snooping user-offline remove mac-address
The device deleted the MAC address entry of a DHCP client when the dynamic binding entry was deleted.
By default, the device does not delete the MAC address entry of a DHCP client when the dynamic binding entry was deleted.
- Run commit
The configuration is committed.