Mac-Address-Table Static - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference release ios xe 3.4.0sg and ios 15.1(2)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches

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.
Syntax Description
mac-addr
vlan vlan-id
interface type
drop
Defaults
This command has no default settings.
Command Modes
Global configuration mode
Command History
Release
12.1(13)EW
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
Command
show mac-address-table static
OL-27596 -01
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}
MAC address; optional when using the no form of this command.
VLAN and valid VLAN number; valid values are from 1 to 4094.
Interface type and number; valid options are FastEthernet and GigabitEthernet.
Drops all traffic received from and going to the configured MAC address in the
specified VLAN.
Modification
Support for this command was introduced on the Catalyst 4500 series switches.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
Description
Displays the static MAC address table entries only.
mac-address-table static
2-423

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents