9-16
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter9 Configuring the Switch Interfaces
Monitoring and Maintaining the 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 interfaces privileged EXEC
command output.
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
Shutting Down and Restarting the Interface
Shutting down an interface disables all functions on the specified interface and marks the interface as
unavailable on all monitoring command displays. This information is communicated to other network
servers through all dynamic routing protocols. The interface is not mentioned in any routing updates.
Beginning in privileged EXEC mode, follow these steps to shut down an interface:
Use the no shutdown interface configuration command to restart the interface.
This example shows how to shut down Fast Ethernet interface 0/5:
Switch# configure terminal
Switch(config)# interface fastethernet0/5
Switch(config-if)# shutdown
Switch(config-if)#
*Sep 30 08:33:47: %LINK-5-CHANGED: Interface FastEthernet0/5, changed state to
administratively down
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface {vlan vlan-id} | {{fastethernet | gigabitethernet}
interface-id} | {port-channel port-channel-number}Select the interface to be configured.
Step3 shutdown Shut down an interface.
Step4 end Return to privileged EXEC mode.
Step5 show running-config Verify your entry.