Qos-local-id marking configuration example – H3C Technologies H3C S7500E Series Switches User Manual

Page 82

Advertising
background image

9-6

[Device-acl-adv-3002] rule permit ip destination 192.168.0.3 0

[Device-acl-adv-3002] quit

# Create a class named classifier_dbserver, and reference ACL 3000 in the class.

[Device] traffic classifier classifier_dbserver

[Device-classifier-classifier_dbserver] if-match acl 3000

[Device-classifier-classifier_dbserver] quit

# Create a class named classifier_mserver, and reference ACL 3001 in the class.

[Device] traffic classifier classifier_mserver

[Device-classifier-classifier_mserver] if-match acl 3001

[Device-classifier-classifier_mserver] quit

# Create a class named classifier_fserver, and reference ACL 3002 in the class.

[Device] traffic classifier classifier_fserver

[Device-classifier-classifier_fserver] if-match acl 3002

[Device-classifier-classifier_fserver] quit

# Create a behavior named behavior_dbserver, and configure the action of setting the local

precedence value to 4 for the behavior.

[Device] traffic behavior behavior_dbserver

[Device-behavior-behavior_dbserver] remark local-precedence 4

[Device-behavior-behavior_dbserver] quit

# Create a behavior named behavior_mserver, and configure the action of setting the local

precedence value to 3 for the behavior.

[Device] traffic behavior behavior_mserver

[Device-behavior-behavior_mserver] remark local-precedence 3

[Device-behavior-behavior_mserver] quit

# Create a behavior named behavior_fserver, and configure the action of setting the local

precedence value to 2 for the behavior.

[Device] traffic behavior behavior_fserver

[Device-behavior-behavior_fserver] remark local-precedence 2

[Device-behavior-behavior_fserver] quit

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

[Device] qos policy policy_server

[Device-qospolicy-policy_server] classifier classifier_dbserver behavior behavior_dbserver

[Device-qospolicy-policy_server] classifier classifier_mserver behavior behavior_mserver

[Device-qospolicy-policy_server] classifier classifier_fserver behavior behavior_fserver

[Device-qospolicy-policy_server] quit

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

[Device] interface gigabitethernet 2/0/1

[Device-GigabitEthernet2/0/1] qos apply policy policy_server inbound

[Device-GigabitEthernet2/0/1] quit

QoS-Local-ID Marking Configuration Example

QoS-local-ID marking is mainly used for re-classifying packets of multiple classes to perform a uniform

set of actions on them as a re-classified class.

Consider the case of limiting the total rate of packets with source MAC address 0001-0001-0001 and

packets with source IP address 1.1.1.1 to 128 kbps. Without QoS local ID marking, you can only

assign fixed bandwidth to the two classes by associating each of them with a rate-limit traffic behavior.

Advertising