Configuring Unicast MAC Address Filtering
Configuring Unicast MAC Address Filtering
Follow these steps to configure the device to drop a source or destination unicast static address:
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Monitoring and Maintaining Administration of the Device
Command
clear mac address-table dynamic
System Management Configuration Guide, Cisco IOS XE Amsterdam 17.2.x (Catalyst 9500 Switches)
36
Command or Action
enable
Example:
Device> enable
configure terminal
Example:
Device# configure terminal
mac address-table static mac-addr vlan
vlan-id drop
Example:
Device(config)# mac address-table static
c2f3.220a.12f4 vlan 4 drop
end
Example:
Device(config)# end
show running-config
Example:
Device# show running-config
copy running-config startup-config
Example:
Device# copy running-config
startup-config
Purpose
Enables privileged EXEC mode.
• Enter your password if prompted.
Enters global configuration mode.
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.
Returns to privileged EXEC mode.
Verifies your entries.
(Optional) Saves your entries in the
configuration file.
Purpose
Removes all dynamic entries.
Administering the Device