speed

This topic explains the command that sets the port speed on Gigabit smart switch models, including autonegotiation options.

Syntax

speed {auto | 100 | 1000}

Parameter

auto: Sets the port speed to autonegotiation (which is also the default setting).

100: Forces the port speed to 100 Mbits/s, or if used with the auto keyword, to autonegotiation with 100 Mbits/s ability.

1000: Forces the port speed to 1000 Mbits/s, or if used with the auto keyword, to autonegotiation with 1000 Mbits/s ability.

Default

auto (autonegotiation) with all available abilities.

Mode

Interface Configuration

Usage

Use this command to change the port speed configuration up to the maximum physical speed. The output of the show interfaces command with the status keyword shows the following:

  • For a port that is connected, if the port speed is set to automatic, the Speed field shows the "a-" prefix before the detected speed. If the speed is set to a specific value, the Speed field shows only the set speed.
  • For a port that is not connected, if the port speed is set to automatic, the Speed field shows "auto." If the speed is set to a specific value, the Speed field shows the set speed.

Example

This example shows how to modify the port speed configuration:

CODE
Switch(config)# interface 1/0/1
Switch(config-if)# speed 100
Switch(config-if)# exit
Switch(config)# interface 1/0/2
Switch(config-if)# speed auto

This example shows how to display the running configuration, which includes the port speed configuration:

CODE
Switch# show running-config interfaces 1/0/1-1/0/2
interface 1/0/1
 speed 100
interface 1/0/2

This example shows how to display information about interfaces, including the interface link speed:

CODE
Switch# show interfaces 1/0/1-1/0/2 status
Port  Name  Status      Vlan  Duplex  Speed    Type
1/0/1       connected   1     a-full  100M     Copper
1/0/2       connected   1     a-full  a-100M   Copper