Optimizing Traffic Flow with Port Controls, Port Trunking, and Filters

Viewing Port Status and Configuring Port Parameters

Using the CLI To Configure Ports. You can configure one or more of the following port parameters. For details on each option, see Table 9-1on page 9-3.

Syntax: [no] interface <[ethernet] port-list>disable enable speed-duplex

<auto-10 10-full 10-half 100-full 100-half auto1000-full > flow-control

Note that in the above syntax you can substitute an “int” for “interface” and an “e” for “ethernet”; that is int e <port-list>.

For example, to configure ports C1 through C3 and port C6 for 100Mbps full- duplex, you would enter these commands:

HPswitch(config)# int e c1-c3,c6 speed-duplex 100-full

Similarly, to configure a single port with the settings in the above command, 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:

HPswitch(config)# int e c6

HPswitch(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.

These commands enable and configure port C8 from the config level:

HPswitch(config)# int e c8 enable HPswitch(config)# int e c8 speed-duplex 100-full HPswitch(config)# int e c8 flow-control

These commands select the context level for port C8 and then apply all of the configuration commands to port C8:

HPswitch(config)# int e c8 HPswitch(eth-C8)# enable HPswitch(eth-C8)# speed-duplex 100-full HPswitch(eth-C8)# flow-control

9-8