22-13
Catalyst2950 and Catalyst2955 Switch Software Configuration Guide
78-11380-10
Chapter22 Configuring Port-Based Tra ffic Control Displaying Port-Based Traffic Control Settings
This example shows how to set the aging time as 2 minutes for the inactivity aging type with aging
enabled for the configured secure addresses on the in terfa ce:
Switch(config-if)# switchport port-security aging time 2
Switch(config-if)# switchport port-security aging type inactivity
Switch(config-if)# switchport port-security aging static
You can verify the previous commands by entering the show port-security interface interface-id
privileged EXEC command.
Displaying Port-Based Traffic Control Settings
The show interfaces interface-id switchport privileged EXEC command displays (among other
characteristics) the interface traffic suppressi o n a nd c ont ro l c on figu rat io n. T he sh ow inte rfaces
counters privileged EXEC commands display the count of discarded packets. The show storm-control
and show port-security privileged EXEC commands display those features.
To display traffic control information, use one or more of the privileged EXEC commands in Table 22-3.
Table22-3 Commands for Displaying Traf fic Control Status and Configuration
Command Purpose
show interfaces [interface-id] switchport Displays the administrative and operational status of all switching
(nonrouting) ports or the specified port, including port blocking and
port protection settings.
show storm-control [interface-id] [broadcast |
multicast | unicast]Displays storm control suppression levels set on all interfaces or the
specified interface for the specified traffic type or for broadcast traf f ic
if no traffic type is entered.
show interfaces [interface-id] counters broadcast Displays the storm-control broadcast suppression discard counter with
the number of packets discarded for all interfaces or the speci fied
interface.
show interfaces [interface-id] counters multicast Displays the storm-control multicast suppression discard counter with
the number of packets discarded for all interfaces or the speci fied
interface.
show interfaces [interface-id] counters unicast Displays the storm-control unicast suppression discard counter with
the number of packets discarded for all interfaces or the speci fied
interface.
show port-security [interface interface-id] Displays port security settings for the switch or for the specified
interface, including the maximum allowed number of secure MAC
addresses for each interface, the number of secure MAC addresses on
the interface, the number of security violations that have occurred, and
the violation mode.
show port-security [interface interface-id] address Displays all secure M AC addresses configured on all switch interfaces
or on a specified interface with aging information for each address.