Configuring Unicast MAC Address Filtering Follow these steps to configure the device to drop a source or destination unicast static address: Procedure Monitoring and Maintaining Administration of the Device Administering the Device Configuring Unicast MAC Address Filtering Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 mac address-table static mac-addr vlan vlan-id drop Example:
Device(config)# mac address-table static c2f3.220a.12f4 vlan 4 drop Enables unicast MAC address filtering and configure the device to drop a packet with the specified source or destination unicast static address. • mac-addr—Specifies a source or destination unicast MAC address (48-bit). Packets with this MAC address are dropped. • vlan-id—Specifies the VLAN for which the packet with the specified MAC address is received. Valid VLAN IDs are 1 to 4094. Step 4 end Example: Device(config)# end Returns to privileged EXEC mode. Step 5 show running-config Example: Device# show running-config Verifies your entries. Step 6 copy running-config startup-config Example:
Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. Command Purpose clear mac address-table dynamic Removes all dynamic entries. Administering the Device 35