R2511-HP MSR Router Series ACL and QoS Configuration Guide(V5)
125
Figure 51 Network diagram
Device Interface IP address
Device
Interface IP address
CE 1 Eth1/2 10.1.1.2/24 CE 2 Eth1/3 10.2.1.2/24
PE 1 Eth1/1 10.1.1.1/24
PE 2 Eth1/2 10.2.1.1/24
S2/1 12.1.1.1/24
S2/2
12.2.1.1/24
Loop0 1.1.1.1/32 Loop0 1.1.1.2/32
P S2/1 12.1.1.2/24
S2/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
Loop0 Loop0
Eth1/2
Eth1/1
Eth1/3
Eth1/2
S2/1
S2/1 S2/2
S2/2
2M 2M
100M100M
P
PE 1 PE 2
CE 1 CE 2
AS 100
VPN 1 VPN 1
AS 65410
AS 65420










