beautypg.com

H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 35

background image

28

[DeviceC-acl-basic-2002] rule permit source 192.168.0.2 0

[DeviceC-acl-basic-2002] quit

# Create a class named classifier_devicea, and use basic ACL 2001 as the match criterion in the class.

[DeviceC] traffic classifier classifier_devicea

[DeviceC-classifier-classifier_devicea] if-match acl 2001

[DeviceC-classifier-classifier_devicea] quit

# Create a class named classifier_deviceb, and use basic ACL 2002 as the match criterion in the class.

[DeviceC] traffic classifier classifier_deviceb

[DeviceC-classifier-classifier_deviceb] if-match acl 2002

[DeviceC-classifier-classifier_deviceb] quit

# Create a behavior named behavior_devicea, and configure the primap action.

[DeviceC] traffic behavior behavior_devicea

[DeviceC-behavior-behavior_devicea] primap pre-defined dscp-dscp

[DeviceC-behavior-behavior_devicea] quit

# Create a behavior named behavior_deviceb, and configure the primap action.

[DeviceC] traffic behavior behavior_deviceb

[DeviceC-behavior-behavior_deviceb] primap pre-defined dscp-dscp

[DeviceC-behavior-behavior_deviceb] quit

# Create a policy named policy_server1, and associate the classes with the behaviors in the policy.

[DeviceC] qos policy policy_server1

[DeviceC-qospolicy-policy_server1] classifier classifier_devicea behavior

behavior_devicea

[DeviceC-qospolicy-policy_server1] quit

# Create a policy named policy_server2, and associate the classes with the behaviors in the policy.

[DeviceC] qos policy policy_server2

[DeviceC-qospolicy-policy_server2] classifier classifier_deviceb behavior

behavior_deviceb

[DeviceC-qospolicy-policy_server2] quit

# Apply the policy named policy_server1 to the incoming traffic of GigabitEthernet 1/0/1.

[DeviceC] interface gigabitethernet 1/0/1

[DeviceC-GigabitEthernet1/0/1] qos apply policy policy_server1 inbound

[DeviceC-GigabitEthernet1/0/1] quit

# Apply the policy named policy_server2 to the incoming traffic of GigabitEthernet 1/0/2.

[DeviceC] interface gigabitethernet 1/0/2

[DeviceC-GigabitEthernet1/0/2] qos apply policy policy_server2 inbound

Priority mapping table and priority marking configuration
example

NOTE:

For information about priority marking, see the chapter “

Priority marking configuration

.”