host1(config)#mpls classifier-list be-green traffic-class best-effort color yellow
To map the specified PHB ID to the internal traffic class/color combination:
•
Issue the mpls diff-serv phb-id traffic-class command.
host1(config)#mpls diff-serv phb-id standard 45 traffic-class gold color green
To create or modify an MPLS policy:
•
Issue the mpls policy-list command.
host1(config)#mpls policy-list mpls-exp-setting
To enable collection of policy statistics for a tunnel or LSP. Collection is disabled by
default.
•
Issue the mpls policy-statistics command.
host1#mpls policy-statistics boston2dc
Policy statistics are displayed when you issue the show mpls forwarding or show mpls
tunnel command, if a policy is attached and policy statistics are enabled.
To specify the traffic class for which LSP-level queues are created and the scheduler
profile to be used with the queues:
•
Issue the mpls traffic-class command.
host1(config)#mpls traffic-class af1 scheduler-profile af1-scheduler-profile
These classes originate from E-LSPs and L-LSPs (classes derived from the signaled
PHB-ID) or regular LSPs (classes configured with the mpls traffic-class command)
To specify the PHB supported by a signaled tunnel:
•
Issue the tunnel mpls diff-serv phb-id command.
host1(config-if)#tunnel mpls diff-serv phb-id standard 35 exp-bits 5
For E-LSPs, you also use this command to map the PHB to the specified exp-bits bitValue.
You can repeat the command for up to eight PHB mappings.
For L-LSPs, do not use the exp-bits keyword. If you repeat the command, the most recent
command overwrites the previous command.
Preference of per-VR Versus per-LSP Behavior
MPLS always prefers the per-LSP method of matching and setting EXP bits by means
of applied policies over the per-VR method.
Per-VR matching of EXP bits is not performed on the LSP when an input policy (matching
on incoming EXP bits) is attached to the ingress segment of the LSP.
Similarly, per-VR setting of EXP bits is not performed on the LSP when an output policy
(setting the outgoing EXP bits) is attached to the egress segment of the LSP.
Copyright © 2010, Juniper Networks, Inc.312
JunosE 11.2.x BGP and MPLS Configuration Guide