Optimizing Port Usage Through Traffic Control and

Optimizing Port Usage Through Traffic Control and Port Trunking

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 6-1on page 6-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]

[broadcast-limit <0 - 99>]

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

For example, to configure ports 1 through 4 and port 7 for 100Mbps full-duplex with a broadcast limit of 20%, you would enter this command:

HP2512(config)# int e 1-4,7 speed-duplex 100-full broadcast-limit 20

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 7 and then configure that port for 100FDx with a broadcast limit of 20%:

HP2512(config)# int e 7

HP2512(eth-7)# speed-duplex 100-full broadcast-limit 20

If port 8 was disabled, and you wanted to enable it and configure it for 100FDx with a broadcast limit of 20%, with flow-control active and a broadcast limit of 20%, you could do so with either of the following command sets.

This command enables and configures port 8 from the config level:

HP2512(config)# interface e 8 enable speed-duplex 100-full broadcast-limit 20 flow-control

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

HP2512(config)# int e 8

HP2512(eth-8)# enable speed-duplex 100-full flow-control broadcast-limit 20

6-8