9-16
Catalyst2950 Desktop Switch Software Configuration Guide
78-11380-05
Chapter9 Configuring Interface Characteristics
Monitoring and Maintaining the Interfaces
no ip address
mls qos cos 7
mls qos cos override
end
Clearing and Resetting Interfaces and Counters
Table 9 -3 lists the privileged EXEC mode clear commands that you can use to clear counters and res et
interfaces.
To clear the interface counters shown by the show interfaces privileged EXEC command, use the clear
counters privileged EXEC command. The clear counters command clears all current interface counters
from the interface unless optional arguments are specified to clear only a specific interface type from a
specific interface number.
Note The clear counters privileged EXEC command does not clear counters retrieved by using Simple
Network Management Protocol (SNMP), but only those seen with the show interface privileged EXEC
command.
This example shows how to clear and reset the counters on Fast Ethernet interface 0/5:
Switch# clear counters fastethernet0/5
Clear "show interface" counters on this interface [confirm] y
Switch#
*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet0/5
by vty1 (171.69.115.10)
Use the clear interface or clear line privileged EXEC command to clear and reset an interface or serial
line. Under most circumstances, you do not need to clear the hardware logic on interfaces or serial line s.
This example shows how to clear and reset Fast Ethernet interface 0/5:
Switch# clear interface fastethernet0/5
Table9-3 Clear Commands for Interfaces
Command Purpose
clear counters [interface-id] Clear interface counters.
clear interface interface-id Reset the hardware logic on an interface.
clear line [number | console 0 | vty number] Reset the hardware logic on an asynchronous serial line.