HP 5400ZL User Manual

Page 433

Advertising
background image

Classifier-Based Software Configuration

Applying a Service Policy to an Interface

To apply a service policy on a port or VLAN interface, enter one of the
following commands from the global configuration context.

Context: Global configuration

Syntax: interface <port-list > service-policy <policy-name > in

Configures the specified ports with a policy that is applied
to inbound traffic on each interface.

Separate individual port numbers in a series with a comma;
for example,

a1, b4, d3. Enter a range of ports by using a dash;

for example,

a1-a5.

The policy name you enter must be the same as the policy
name you configured with the

policy command (see

“Creating a Service Policy” on page 9-24).

Context: Global configuration

Syntax: vlan <vlan-id > service-policy <policy-name > in

Configures a policy on the specified VLAN that is applied to
inbound traffic on the VLAN interface.

Valid VLAN ID numbers range from

1 to 4094.

The policy name you enter must be the same as the policy
name you configured with the

policy command (see

“Creating a Service Policy” on page 9-24).

The following example shows how to apply a QoS policy to a port range and
a VLAN interface:

ProCurve# interface a4-a5 service-policy RateLimitPrioritizeSuspectTraffic in

ProCurve# vlan 10 service-policy RateLimitPrioritizeSuspectTraffic in

Figure 9-10. Example of How to Configure an Interface with a Service Policy

Checking Resource Usage.

After you apply a service policy to an interface,

use the

show policy resources command to verify the amount of additional

resources used and the amount of resources that are still available on the
switch. Classifier-based service policies (such as QoS or mirroring) share the
same hardware resources with other software features, such as ACLs, virus
throttling, management VLAN, globally configured QoS policies, MAC-based
mirroring policies, and so on.

Use the displayed information to decide if you need to re-prioritize current
resource usage by reconfiguring or disabling software features to free the
resources reserved for less important features. For a detailed explanation of

9-31

Advertising
This manual is related to the following products: