The dhcp snooping user-offline remove mac-address command enables the device to delete the MAC address entry of a user whose DHCP snooping binding entry is deleted.
The undo dhcp snooping user-offline remove mac-address command disables the device from deleting the MAC address entry of a user whose binding entry is deleted.
By default, the device does not delete the MAC address entry of a user whose DHCP snooping binding entry is deleted.
dhcp snooping user-offline remove mac-address
undo dhcp snooping user-offline remove mac-address
Usage Scenario
If a user goes offline but its MAC address entry is not aged, the device forwards the packet whose destination address is the IP address of the user based on the dynamic MAC address entry. After the dhcp snooping user-offline remove mac-address command is executed, the user MAC address entry is deleted when the DHCP snooping binding entry is deleted. With the function of discarding unknown unicast packets on the network-side interface, the device discards packets destined to offline users.
Prerequisites
DHCP snooping has been enabled on the device using the dhcp snooping enable command.