SWITCH PORT COMMANDS
The Switch Port commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command Parameter
config ports
<portlist> [mdix [normal | cross | auto] | description [add <desc 8> |
clear_description] | flow_control [enable | disable] | learning [enable | disable] |
state [enable | disable] | speed [auto | 100_full | 100_half | 10_full | 10_half]]
show ports <portlist>
Each command is listed in detail, as follows:
config ports
Purpose To configure the Switch’s Ethernet port settings.
Syntax
config ports <portlist> [mdix [normal | cross | auto] |
description [add <desc 8> | clear_description] | flow_control
[enable | disable] | learning [enable | disable] | state [enable |
disable] | speed [auto | 100_full | 100_half | 10_full | 10_half]]
Description
The config ports command configures the Switch’s Ethernet port
settings. Only the ports listed in the <portlist> are affected.
Parameters
<portlist> − A port or range of ports to be configured.
mdix [normal | cross | auto] − Specifies the MDIX setting of the port.
The MDIX setting can be auto, normal or cross.
If set to normal state, the port in MDIX mode, can be connected to
PC NIC using a straight cable. If set to cross state, the port in mdi
mode, can be connected to a port (in mdix mode) on another switch
through a straight cable.
description <desc 8> − Enter and alphanumeric string of no more
that 8 characters to describe a selected port interface.
clear_description – Clear the description for the specified ports.
flow_control [enable|disable] – Enables or disables flow control for
the specified ports.
state [enable | disable] − Enables or disables the specified range of
ports.
speed – Sets the speed of a port or range of ports, with the addition
of one of the following:
• auto − Enables auto-negotiation for the specified range of
ports.
• [10 | 100] − Configures the speed in Mbps for the specified
range of ports.
• [half | full] − Configures the specified range of ports as either
full or half-duplex.
32