2-157
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
mac address-table static
mac address-table static
To add static addresses to the MAC address table or to enable unicast MAC address filtering, use the mac
address-table static command in global configuration mode. To remove static entries from the table or
return to the default setting, use the no form of this command.
mac address-table static mac-addr vlan vlan-id {drop | interface interface-id}
no mac address-table static mac-addr vlan vlan-id [drop | interface interface-id]
Syntax Description
Defaults No static addresses are configured.
Unicast MAC address filtering is disabled. The switch does not drop traffic for specific source or
destination MAC addresses.
Command Modes Global configuration
Command History
Usage Guidelines Follow these guidelines when using the drop keyword to configure MAC address filtering:
• Multicast MAC addresses, broadcast MAC addresses, and router MAC addresses are not supported.
Packets that are forwarded to the CPU are also not supported.
• If you add a unicast MAC address as a static address and configure unicast MAC address filtering,
the switch either adds the MAC address as a static address or drops packets with that MAC address,
depending on which command was entered last. The second command that you entered overrides the
first command.
For example, if you enter the mac address-table static mac-addr vlan vlan-id interface
interface-id global configuration command followed by the mac address-table static mac-addr
vlan vlan-id drop command, the switch drops packets with the specified MAC address as a source
or destination.
mac-addr Destination MAC address (unicast or multicast) to add to the address
table. Packets with this destination address received in the specified
VLAN are forwarded to the specified interface.
vlan vlan-id Specifies the VLAN for which the packet with the specified MAC
address is received. The range is 1 to 4094.
drop Configures the switch to drop traffic with a specific source or destination
MAC address.
interface interface-id Interface to which the received packet is forwarded. Valid interfaces
include physical ports and port channels.
Release Modification
12.2(452)EY This command was introduced.