R3303-HP HSR6800 Routers ACL and QoS Configuration Guide

124
Figure 42 Network diagram
Device Interface IP address
Device
Interface IP address
CE 1 GE 1/0/2 10.1.1.2/24 CE 2 GE 1/0/3 10.2.1.2/24
PE 1 GE 1/0
/
1 10.1.1.1/24
PE 2 GE 1/0
/
2 10.2.1.1/24
S 2/0
/
1 12.1.1.1/24
S 2/0
/
2 12.2.1.1/24
Loop0 1.1.1.1/32 Loop0 1.1.1.2/32
P S 2/0
/
1 12.1.1.2/24
S 2/0
/
2 12.2.1.2/24
Configuration procedure
1. Configure device PE 1:
# Configure four classes to match the DSCP values AF11, AF21, AF31, and EF of the MPLS
packets in the same VPN.
<PE1> system-view
[PE1] traffic classifier af11
[PE1-classifier-af11] if-match dscp af11
[PE1-classifier-af11] traffic classifier af21
[PE1-classifier-af21] if-match dscp af21
[PE1-classifier-af21] traffic classifier af31
[PE1-classifier-af31] if-match dscp af31
[PE1-classifier-af31] traffic classifier efclass
[PE1-classifier-efclass] if-match dscp ef
[PE1-classifier-efclass] quit
# Configure four traffic behaviors to set the EXP value to 1, 2, 3, and 4, respectively, for MPLS
packets.
[PE1] traffic behavior exp1
[PE1-behavior-exp1] remark mpls-exp 1
[PE1-behavior-exp1] traffic behavior exp2
[PE1-behavior-exp2] remark mpls-exp 2
[PE1-behavior-exp2] traffic behavior exp3
[PE1-behavior-exp3] remark mpls-exp 3
[PE1-behavior-exp3] traffic behavior exp4
[PE1-behavior-exp4] remark mpls-exp 4
[PE1-behavior-exp4] quit