2-423
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
mac-address-table static
mac-address-table static
To configure the static MAC addresses for a VLAN interface or drop unicast traffic for a MAC address
for a VLAN interface, use the mac-address-table static command. To remove the static MAC address
configurations, use the no form of this command.
mac-address-table static mac-addr {vlan vlan-id} {interface type | drop}
no mac-address-table static mac-addr {vlan vlan-id} {interface type} {drop}
Syntax Description
Defaults This command has no default settings.
Command Modes Global configuration mode
Command History
Usage Guidelines When a static MAC address is installed, it is associated with a port.
The output interface specified must be a Layer 2 interface and not an SVI.
If you do not enter a protocol type, an entry is automatically created for each of the four protocol types.
Entering the no form of this command does not remove the system MAC addresses.
When removing a MAC address, entering interface int is optional. For unicast entries, the entry is
removed automatically. For multicast entries, if you do not specify an interface, the entire entry is
removed. You can specify the selected ports to be removed by specifying the interface.
Examples This example shows how to add the static entries to the MAC address table:
Switch(config)# mac-address-table static 0050.3e8d.6400 vlan 100 interface fastethernet5/7
Switch(config)#
Related Commands
mac-addr MAC address; optional when using the no form of this command.
vlan vlan-id VLAN and valid VLAN number; valid values are from 1 to 4094.
interface type Interface type and number; valid options are FastEthernet and GigabitEthernet.
drop Drops all traffic received from and going to the configured MAC address in the
specified VLAN.
Release Modification
12.1(13)EW Support for this command was introduced on the Catalyst 4500 series switches.
Command Description
show mac-address-table static Displays the static MAC address table entries only.