Defining a policy, Applying a policy, Configuration procedure – H3C Technologies H3C WX6000 Series Access Controllers User Manual
Page 439: Configuration example, 5 applying a policy
45-5
# Configure traffic policing action for the traffic behavior.
[Sysname-behavior-test] car cir 640
Defining a Policy
A policy associates a class with a traffic behavior. Each traffic behavior is comprised of a group of QoS
actions. A device executes these QoS actions in the order they are defined.
Follow these steps to associate a traffic behavior with a class:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a policy (This operation leads you
to policy view)
qos policy
policy-name
—
Specify the traffic behavior for a class
classifier
classifier-name behavior
behavior-name
Required
Applying a Policy
Configuration procedure
Follow these steps to apply a policy on a port:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter port
view
interface interface-type
interface-number
Enter port
view or port
group view
Enter port
group
view
port-group
{ manual port-group-name
| aggregation
agg-id }
Perform either of the two operations.
The configuration performed in Ethernet
port view applies to the current port only.
The configuration performed in port
group view applies to all the ports in the
port group.
Apply an associated
policy
qos apply policy policy-name
inbound
Required
Configuration example
1) Network
requirements
Configure a policy named test to associate the traffic behavior named test_behavior with the class
named test_class. Apply the policy to the inbound direction of GigabitEthernet 0/0/1 port.
2) Configuration
procedure
# Enter system view.
# Create a policy (This operation leads you to policy view).
[Sysname] qos policy test
[Sysname-qospolicy-test]
# Associate the traffic behavior named test_behavior with the class named test_class.
[Sysname-qospolicy-test] classifier test_class behavior test_behavior
[Sysname-qospolicy-test] quit
# Enter port view.
[Sysname] interface GigabitEthernet 0/0/1