Managing the MAC Address Table
Beginning in privileged EXEC mode, follow these steps to add a secure address:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
switchport port-security
mac-address mac-address
Step 4
end
Step 5
show port-security
Step 6
copy running-config
startup-config
To remove a secure address, use the no switchport port-security mac-address mac-address global
configuration command.
Displaying Address Table Entries
You can display the MAC address table by using one or more of the privileged EXEC commands
described in
Table 7-5
Commands for Displaying the MAC Address Table
Command
show mac address-table address
show mac address-table aging-time
show mac address-table count
show mac address-table dynamic
show mac address-table interface
show mac address-table multicast
show mac address-table static
show mac address-table vlan
Catalyst 2950 Desktop Switch Software Configuration Guide
7-60
Purpose
Enter global configuration mode.
Specify an interface, and enter interface configuration mode.
Add a secure address.
Return to privileged EXEC mode.
Verify your entry.
(Optional) Save your entries in the configuration file.
Table
7-5:
Description
Displays MAC address table information for the specified MAC address.
Displays the aging time in all VLANs or the specified VLAN.
Displays the number of addresses present in all VLANs or the specified VLAN.
Displays dynamic MAC address table entries only.
Displays the MAC address table information for the specified interface.
Displays the Layer 2 multicast entries for all VLANs or the specified VLAN.
Displays static MAC address table entries only.
Displays the MAC address table information for the specified VLAN.
Chapter 7
Administering the Switch
78-14982-01