9-14
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter9 Configuring the Switch Interfaces
Monitoring and Maintaining the Interfaces
This example shows how to enable Auto-MDIX on Gigabit Ethernet interface 0/1:
Switch# configure terminal
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# speed auto
Switch(config-if)# duplex auto
Switch(config-if)# mdix auto
Switch(config-if)# end

Adding a Description for an Interface

You can add a description about an interface to help you re member its f unctio n. The desc ription ap pears
in the output of these commands: show configuration, show running-config, and show interfaces.
Beginning in privileged EXEC mode, follow these steps to add a description for an interface:
Use the no description interface configuration command to delete the description.
This example shows how to add a description on Fast Ethernet interface 0/4 and to verify the description:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastethernet0/4
Switch(config-if)# description Connects to Marketing
Switch(config-if)# end
Switch# show interfaces fastethernet0/4 description
Interface Status Protocol Description
Fa0/4 up down Connects to Marketing
Monitoring and Maintaining the Interfaces
You can perform the tasks in these sections to monitor and maintain interfaces:
Monitoring Interface and Controller Status, page 9-15
Clearing and Resetting Interfaces and Counters, page 9-15
Shutting Down and Restarting the Interface, page 9-16
Command Purpose
Step1 configure terminal Enter global configuration mode
Step2 interface interface-id Enter interface configuration mode, and enter the interface for which
you are adding a description.
Step3 description string Add a description (up to 240 characters) for an interface.
Step4 end Return to privileged EXEC mode.
Step5 show interfaces interface-id description
or
show running-config
Verify your entry.
Step6 copy running-config startup-config (Optional) Save your entries in the configuration file.