9-12
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter9 Configuring the Switch Interfaces
Configuring Ethernet Interfaces
Setting the Interface Speed and Duplex ParametersBeginning in priv i leged EXEC mode , follow these s t eps to set the speed and duplex mode for a physical
interface:
Use the no speed and no duplex interface configuration commands to return the interface to the d efault
speed and duplex settings (autonegotiate). To return all interface settings to the defaults, use the default
interface interface-id interface configuration command.
This example shows how to set the interface speed to 10 Mbps and the duplex mode to half on Fast
Ethernet interface 0/3 and to verify the configuration:
Switch# configure terminal
Switch(config)# interface fastethernet0/3
Switch(config-if)# speed 10
Switch(config-if)# duplex half
Switch(config)# end
Switch# show running-config
Current configuration : 1695 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname switch
!
<output truncated>
!
interface FastEthernet0/2
no ip address
duplex half
speed 10
!
<output truncated>
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 interface interface-id Enter interface configuration mode and the physical interface
identification.
Step3 speed {10 | 100 | 1000 | auto} Enter the appropriate speed parameter for the interface, or e nter auto.
Note The 1000 keyword is available only for 10/100/1000 Mbps
ports. 100BASE-FX ports operate only at 100 Mbps.
Step4 duplex {auto | full | half} Enter the duplex parameter for the interface.
Step5 end Return to privileged EXEC mode.
Step6 show interfaces interface-id Display the interface speed and duplex mode configuration.
Step7 copy running-config startup-config (Optional) Save your entries in the configuration file.