The dhcp snooping sticky-mac command enables the device to generate static MAC address entries based on dynamic DHCP snooping binding entries.
The undo dhcp snooping sticky-mac command disables the device from generating static MAC address entries based on dynamic DHCP snooping binding entries.
By default, the device is disabled to generate static MAC address entries based on dynamic DHCP snooping binding entries.
Ethernet interface view, GE interface view, XGE interface view, port group view, Eth-trunk interface view
Usage Scenario
Dynamic MAC address entries are learned and generated by the device, and static MAC address entries are configured by command lines. A MAC address entry consists of the MAC address, VLAN ID, and port number of a DHCP client. The device implements Layer 2 forwarding based on MAC address entries.
If a DHCP snooping binding entry is updated, the corresponding static MAC address entry is automatically updated.
If you run the dhcp snooping sticky-mac command on the interface, DHCPv6 users cannot go online. Run the nd snooping enable command in the system view and interface view to enable ND snooping and the savi enable command in the system view to enable SAVI.
Prerequisites
DHCP snooping has been enabled on the device using the dhcp snooping enable command.
Precautions
Command |
Description |
---|---|
dot1x enable |
Enables 802.1X authentication on an interface. |
mac-authen |
Enables MAC address authentication on an interface. |
mac-address learning disable |
Enables MAC address learning. |
mac-limit |
Sets the maximum number of MAC addresses to be learned. |
port vlan-mapping vlan map-vlan port vlan-mapping vlan inner-vlan |
Enables VLAN mapping. |
port-security enable |
Enables port security. |