Enabling or disabling ports and configuring port mode (CLI)

You can configure one or more of the following port parameters.

See Table 3: Status and parameters for each port type.


no interface <port-list> [<disable|enable>]

Disables or enables the port for network traffic. Does not use the no form of the command. (Default: enable.)

speed-duplex [<auto-10|10-full|10-half|100-full|100-half|auto|auto-100|1000-full>]

Note that in the above Syntax:, you can substitute int for interface (for example, int <port-list> ).

Specifies the port's data transfer speed and mode. Does not use the no form of the command. (Default: auto.)

The 10/100 auto-negotiation feature allows a port to establish a link with a port at the other end at either 10 Mbps or 100 Mbps, using the highest mutual speed and duplex mode available. Only these speeds are allowed with this setting.


10 Mbps and 100 Mbps is supported on half duplex mode when link parameter is configured as 100-full and local as auto.


To configure port C5 for auto-10-100, enter this command:
switch(config)# int c5 speed-duplex auto-10-100
To configure ports C1 through C3 and port C6 for 100Mbps full-duplex, enter these commands:
switch(config)# int c1-c3,c6 speed-duplex 100-full
Similarly, to configure a single port with the above command settings, you could either enter the same command with only the one port identified or go to the context level for that port and then enter the command. For example, to enter the context level for port C6 and then configure that port for 100FDx:
switch(config)# int e c6
switch(eth-C6)# speed-duplex 100-full
If port C8 was disabled, and you wanted to enable it and configure it for 100FDx with flow-control active, you could do so with either of the following command sets:
Figure 3: Two methods for changing a port configuration

For more on flow control, see Enabling or disabling flow control (CLI).