Cisco WS-C2960-24TT-L Software Guide - Page 147
Adding Static Addresses, Removing Static Addresses
View all Cisco WS-C2960-24TT-L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 147 highlights
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: Step 1 Step 2 Step 3 Step 4 Command configure terminal mac-address-table static hw-addr in-port out-port-list vlan vlan-id end show mac-address-table static Purpose Enter global configuration mode. Enter the MAC address, the input port, the ports to which it can be forwarded, and the VLAN ID of those ports. Return to privileged EXEC mode. Verify your entry. Removing Static Addresses Beginning in privileged EXEC mode, follow these steps to remove a static address: Step 1 Step 2 Step 3 Step 4 Command Purpose configure terminal Enter global configuration mode. no mac-address-table static hw-addr Enter the static MAC address, the input port, the ports to which it can be in-port in-port out-port-list forwarded, and the VLAN ID to be removed. out-port-list vlan vlan-id end Return to privileged EXEC mode. show mac-address-table static Verify your entry. You can remove all secure addresses by using the clear mac-address-table static command in privileged EXEC mode. 78-6511-08 Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide 6-19