Cisco Systems 3550 Switch User Manual


 
8-21
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter 8 Configuring Interface Characteristics
Monitoring and Maintaining the Layer 2 Interface
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 Gigabit Ethernet interface 0/5:
Switch# clear counters gigabitethernet0/5
Clear "show interface" counters on this interface [confirm] y
Switch#
*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface GigabitEthernet0/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 lines.
This example shows how to clear and reset Gigabit Ethernet interface 0/5:
Switch# clear interface gigabitethernet0/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 Gigabit Ethernet interface 0/5:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/5
Switch(config-if)# shutdown
Switch(config-if)#
*Sep 30 08:33:47: %LINK-5-CHANGED: Interface GigabitEthernet0/5, changed state to a
administratively down
This example shows how to re-enable Gigabit Ethernet interface 0/5:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/5
Switch(config-if)# no shutdown
Switch(config-if)#
*Sep 30 08:36:00: %LINK-3-UPDOWN: Interface GiogabitEthernet0/5, changed state to up
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
interface {vlan vlan-id} | {{fastethernet | gigabitethernet}
interface-id} | {port-channel port-channel-number}
Select the interface to be configured.
Step 3
shutdown Shut down an interface.
Step 4
end Return to privileged EXEC mode.
Step 5
show running-config Verify your entry.