HP (Hewlett-Packard) 8200ZL Switch User Manual


 
Classifier-Based Software Configuration
Creating a Service Policy
The default class differs from other classes because it contains no match/
ignore statements and uses implicit match ipv4 any any and match ipv6 any any
statements to manage all unmatched packets. If you do not configure a default
class, unmatched and unignored packets are transmitted without an action
performed on them.
4. Enter the exit command to exit the policy configuration context.
To display a policy configuration, enter the show policy < feature-name >
< policy-name > command (see Figure 9-9), where < feature-name > is a
software feature (such as QoS or port mirroring) that supports classifier-
based configuration.
To edit a policy configuration, re-enter the policy context (policy com-
mand) and modify class-action statements as described in “Modifying
Classes in a Policy” on page 9-28.
To resequence the order in which class-action statements are listed, enter
the resequence command (see “Resequencing Classes in a Policy” on page
9-29).
Example. In the following QoS policy configuration, matching HTTP packets
are rate-limited to 10000 kbps and assigned an 802.1p (CoS) priority of 3 in
their Layer 2 VLAN headers. All unmatched packets are managed by the
default class, which assigns a slightly higher 802.1p priority (4) and a new
DSCP codepoint (5)
ProCurve(config)# class ipv4 http
ProCurve(class-config)# match tcp any any eq 80
ProCurve(class-config)# match tcp any any eq 8080
ProCurve(class-config)# exit
ProCurve(config)# policy qos RateLimitPrioritizeSuspectTraffic
ProCurve(policy-config)# class ipv4 http action rate-limit kbps 10000
ProCurve(policy-config)# class ipv4 http action priority 3
ProCurve(policy-config)# default-class action priority 4 dscp 5
ProCurve(policy-config)# exit
Figure 9-8. Example of a Policy Configuration
As shown in Figure 9-8, a policy configuration requires a feature-specific policy
command to identify the software feature used to manage one or more traffic
classes:
To configure a QoS policy, use the policy qos command as described in the
“Quality of Service” chapter in the Advanced Traffic Management Guide.
9-27