Specifications
4-31
System Management Software Configuration Guide for Cisco IE 2000U and Connected Grid Switches
Chapter 4 Administering the Switch
Managing the MAC Address Table
You add a static address to the address table by specifying the destination MAC unicast address and the
VLAN from which it is received. Packets received with this destination address are forwarded to the
interface specified with the interface-id option.
When you configure a static MAC address in a private-VLAN primary or secondary VLAN, you should
also configure the same static MAC address in all associated VLANs. Static MAC addresses configured
in a private-VLAN primary or secondary VLAN are not replicated in the associated VLAN. For more
information about private VLANs, see the “Configuring Private VLANs” chapter in the Layer 2
Switching Software Configuration Guide for Cisco IE 2000U and Connected Grid Switches.
BEFORE YOU BEGIN
Review the “MAC Address Table” section on page 4-4.
DETAILED STEPS
To remove static entries from the address table, use the no mac address-table static mac-addr vlan
vlan-id [interface interface-id] global configuration command.
EXAMPLE
This example shows how to add the static address c2f3.220a.12f4 to the MAC address table. When a
packet is received in VLAN 4 with this MAC address as its destination address, the packet is forwarded
to the specified port:
Switch(config)# mac address-table static c2f3.220a.12f4 vlan 4 interface
gigabitethernet0/1
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
mac address-table static mac-addr
vlan vlan-id interface interface-id
Add a static address to the MAC address table.
• For mac-addr, specify the destination MAC unicast address
to add to the address table. Packets with this destination
address received in the specified VLAN are forwarded to the
specified interface.
• For vlan-id, specify the VLAN for which the packet with the
specified MAC address is received. Valid VLAN IDs are 1 to
4094; do not enter leading zeros.
• For interface-id, specify the interface to which the received
packet is forwarded. Valid interfaces include physical ports
or port channels. For static multicast addresses, you can enter
multiple interface IDs. For static unicast addresses, you can
enter only one interface at a time, but you can enter the
command multiple times with the same MAC address and
VLAN ID.
Step 3
end Return to privileged EXEC mode.
Step 4
show mac address-table static Verify your entries.
Step 5
copy running-config
startup-config
(Optional) Save your entries in the configuration file.