4-37
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 4 Administering the Switch
Managing the MAC Address Table
To add a static address, perform this task:
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#
configure terminal
Switch(config)#
mac address-table static c2f3.220a.12f4 vlan 4 interface
gigabitethernet0/1
Switch(config)#
end
Switch#
Configuring Unicast MAC Address Filtering
When unicast MAC address filtering is enabled, the switch drops packets with specific source or
destination MAC addresses. This feature is disabled by default and only supports unicast static
addresses.
When using unicast address filtering, consider these guidelines:
•
Multicast MAC addresses, broadcast MAC addresses, and router MAC addresses are not supported.
If you specify one of these addresses when entering the
mac address-table static
vlan
drop
global
configuration command, one of these messages appears:
% Only unicast addresses can be configured to be dropped
% CPU destined address cannot be configured as drop address
•
Packets that are forwarded to the CPU are also not supported.
Command
Purpose
Step 1
configure terminal
Enters global configuration mode.
Step 2
mac address-table static
mac-addr
vlan
vlan-id
interface
interface-id
Adds 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.
•
For
interface-id
, specify the interface to which the received packet is
forwarded. Valid interfaces include physical ports or port channels.
You can specify static multicast addresses for multiple interface IDs.
However, you cannot assign static unicast MAC address to multiple
interfaces with the same MAC address and VLAN ID.
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.
Step 3
end
Returns to privileged EXEC mode.
Step 4
show mac address-table static
Verifies your entries.
Step 5
copy running-config startup-config
(Optional) Saves your entries in the configuration file.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...