speed for Gigabit switches

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

This command is supported on the following switch models:

  • GS108Tv3 and GS110TPv3
  • GS308T and GS310TP
  • GS724TPv2 and GS724TPP
  • GS728TPv2, GS728TPPv2, GS752TPv2, and GS752TPP

Syntax

speed {{10 | 100 | 1000} | {auto [10 | 100 | 1000 | 10/100 | 10/100/1000]}}

Parameter

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

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

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.

10/100: Forces the port speed to autonegotiation with 10 Mbits/s and 100 Mbits/s ability.

10/100/1000: Forces the port speed to autonegotiation with 10 Mbits/s, 100 Mbits/s, and 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 g1
Switch(config-if)# speed 100
Switch(config-if)# exit
Switch(config)# interface g2
Switch(config-if)# speed auto 10/100

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

CODE
Switch# show running-config interfaces g1-2
interface g1
 speed 100
interface g2
 speed auto 10/100

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

CODE
Switch# show interfaces g1-4 status
Port  Name        Status      Vlan  Duplex  Speed    Type
g1                connected   1     a-full  100M     Copper
g2                connected   1     a-full  a-100M   Copper
g3                notconnect  1     auto    auto     Copper
g4                notconnect  1     auto    1000M    Copper