6-19
Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide
78-6511-08
Chapter 6 Configuring the System
Managing the MAC Address Tables
Adding Static Addresses
A static address has these characteristics:
•
It is manually entered in the address table and must be manually removed.
•
It can be a unicast or multicast address.
•
It does not age and is retained when the switch restarts.
You can determine how a port that receives a packet forwards it to another port for transmission. Because
all ports are associated with at least one VLAN, the switch acquires the VLAN ID for the address from
the ports that you select on the forwarding map.
A static address in one VLAN must be a static address in other VLANs. A packet with a static address
that arrives on a VLAN where it has not been statically entered is flooded to all ports and not learned.
Static addresses are entered in the address table with an in-port-list, an out-port-list, and a VLAN ID, if
needed. Packets received from the in-port list are forwarded to ports listed in the out-port-list.
Note
If the in-port-list and out-port-list parameters are all access ports in a single VLAN, you can omit the
VLAN ID. In this case, the switch recognizes the VLAN as that associated with the in-port VLAN.
Otherwise, you must supply the VLAN ID.
Beginning in privileged EXEC mode, follow these steps to add a static address:
Removing Static Addresses
Beginning in privileged EXEC mode, follow these steps to remove a static address:
You can remove all secure addresses by using the clear mac-address-table static command in
privileged EXEC mode.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
mac-address-table static hw-addr
in-port out-port-list vlan vlan-id
Enter the MAC address, the input port, the ports to which it can be
forwarded, and the VLAN ID of those ports.
Step 3
end
Return to privileged EXEC mode.
Step 4
show mac-address-table static
Verify your entry.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
no mac-address-table static hw-addr
in-port in-port out-port-list
out-port-list vlan vlan-id
Enter the static MAC address, the input port, the ports to which it can be
forwarded, and the VLAN ID to be removed.
Step 3
end
Return to privileged EXEC mode.
Step 4
show mac-address-table static
Verify your entry.