Enabling or disabling ports and configuring port mode

You can configure one or more of the following port parameters. See Status and parameters for each port type (Broadcast limit.)

Syntax

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.

Examples

To configure port C5 for auto-10-100, enter this command:

(HP_Switch_name#) int c5 speed-duplex auto-10-100

To configure ports C1 through C3 and port C6 for 100Mbps full-duplex, enter these commands:

(HP_Switch_name#) 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:

(HP_Switch_name#) int e c6 
HP 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:

Two methods for changing a port configuration

Two methods for changing a port configuration