Cisco Systems 2940 Switch User Manual


 
9-12
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter 9 Configuring the Switch Interfaces
Configuring Ethernet Interfaces
Setting the Interface Speed and Duplex Parameters
Beginning in privileged EXEC mode, follow these steps 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 default
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
Step 1
configure terminal Enter global configuration mode.
Step 2
interface interface-id Enter interface configuration mode and the physical interface
identification.
Step 3
speed {10 | 100 | 1000 | auto} Enter the appropriate speed parameter for the interface, or enter auto.
Note The 1000 keyword is available only for 10/100/1000 Mbps
ports. 100BASE-FX ports operate only at 100 Mbps.
Step 4
duplex {auto | full | half} Enter the duplex parameter for the interface.
Step 5
end Return to privileged EXEC mode.
Step 6
show interfaces interface-id Display the interface speed and duplex mode configuration.
Step 7
copy running-config startup-config (Optional) Save your entries in the configuration file.