Adding Static Addresses; Removing Static Addresses - Cisco WS-C2955T-12 Software Manual

Software guide
Table of Contents

Advertisement

Chapter 6
Configuring the System

Adding Static Addresses

A static address has these characteristics:
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.
If the in-port-list and out-port-list parameters are all access ports in a single VLAN, you can omit the
Note
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:
Command
Step 1
configure terminal
Step 2
mac-address-table static hw-addr
in-port out-port-list vlan vlan-id
Step 3
end
Step 4
show mac-address-table static

Removing Static Addresses

Beginning in privileged EXEC mode, follow these steps to remove a static address:
Command
Step 1
configure terminal
Step 2
no mac-address-table static hw-addr
in-port in-port out-port-list
out-port-list vlan vlan-id
Step 3
end
Step 4
show mac-address-table static
You can remove all secure addresses by using the clear mac-address-table static command in
privileged EXEC mode.
78-6511-08
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.
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.
Purpose
Enter global configuration mode.
Enter the static MAC address, the input port, the ports to which it can be
forwarded, and the VLAN ID to be removed.
Return to privileged EXEC mode.
Verify your entry.
Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide
Managing the MAC Address Tables
6-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents