8-34
Classifier-Based Software Configuration
Traffic Classes
Figure 8-11. Example of Resequencing a Policy Configuration
Applying a Service Policy to an Interface
To apply the feature-specific service policies you create to an inbound port or
VLAN interface, use the interface service-policy in or vlan service-policy in
command.
The following service-policy restrictions apply to all software features:
■ A service policy is supported only on inbound traffic.
■ Only one feature-specific policy (for example, QoS, mirroring) is sup-
ported on a port or VLAN interface.
■ PBR is only supported on a VLAN interface
■ If you apply a policy to a port or VLAN interface on which a policy of the
same type (for example, QoS) is already configured, an error message is
displayed. The new policy does not overwrite the existing one.
Before you can apply a new policy, you must first remove the existing
policy with the no interface service-policy in or no vlan service-policy in
command.
Because only one policy of each type is supported on a port or VLAN interface,
ensure that the policy you want to apply contains all the required classes and
actions for your configuration.
HP Switch(config)# show policy RateLimitPrioritizeSuspectTraffic
Statements for Policy policy qos “RateLimitPrioritizeSuspectTraffic”
10 class ipv4 "http" action rate-limit kbps 10000
20 class ipv4 "voice" action priority 3
HP Switch(config)# policy resequence RatelimitPrioritizeSuspectTraffic 100 100
HP Switch(config)# )# policy qos RateLimitPrioritizeSuspectTraffic
HP Switch(policy-qos)# 200 class ipv4 voice action priority 3
HP Switch(policy-qos)# exit
HP Switch(config)# show policy RateLimitPrioritizeSuspectTraffic
Statements for Policy policy qos "RateLimitPrioritizeSuspectTraffic"
100 class ipv4 "http" action rate-limit kbps 10000
200 class ipv4 "voice" action priority 3
exit
The interval between class-
action statements is 1.
The interval between class-
action statements is 100, and
a new statement has been
added.