Connecting and Logging In to a Switch
77
Todd5000> (enable) set port speed 2/1 100
Port(s) 2/1 speed set to 100Mbps.
If you set the port speed to auto, both the speed and duplex are set to auto-
negotiate the link. You can't set the duplex without first setting the speed:
Todd5000> (enable) set port duplex 2/1 ?
Usage: set port duplex <mod_num/port_num> <full|half>
Todd5000> (enable) set port duplex 2/1 full
Port(s) 2/1 set to full-duplex.
Todd5000> (enable) ^C
Notice that the command Ctrl+C was used in the preceding code. This is a
break sequence used on both types of switches.
You can view the duplex and speed with the show port command:
Todd5000> (enable) sh port 2/1
Port Name Status Vlan Level Duplex Speed Type
----- ------------- ---------- ------- ------ ------ ----- ----
2/1 Sales Printer notconnect 2 normal full 100 10/100BaseTX
1900 IOS-Based Switch
You can set only the duplex on the 1900 switch because the ports are all
fixed speeds. Use the duplex command in interface configuration:
Todd1900EN(config)#int f0/26
Todd1900EN(config-if)#duplex ?
auto Enable auto duplex configuration
full Force full duplex operation
full-flow-control Force full duplex with flow control
half Force half duplex operation
Todd1900EN(config-if)#duplex full
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com