Configuring Rewrite Rules for MPLS EXP Classifiers
You configure EXP rewrite rules to alter CoS values in
outgoing MPLS packets on the outbound family mpls
interfaces
of a switch to match the policies of a targeted peer. Policy matching
allows the downstream routing platform or switch in a neighboring
network to classify each packet into the appropriate service group.
To configure an EXP CoS rewrite rule, create the rule by giving
it a name and associating it with a forwarding class, loss priority,
and code point. This creates a rewrite table. After the rewrite rule
is created, enable it on a logical family mpls
interface.
EXP rewrite rules can only be enabled on logical family mpls
interfaces, not on physical interfaces or on interfaces of other
family types. You can also apply an existing EXP rewrite rule on a
logical interface.
There are no default rewrite rules.
You can configure up to 64 EXP rewrite rules, but you can only
use 16 EXP rewrite rules at any time on the switch. On a given family mpls
logical interface, all pushed MPLS labels have
the same EXP rewrite rule applied to them. You can apply different
EXP rewrite rules to different logical interfaces on the same physical
interface.
On each physical interface, either all forwarding classes that are being used on the interface must have rewrite rules configured, or no forwarding classes that are being used on the interface can have rewrite rules configured. On any physical port, do not mix forwarding classes with rewrite rules and forwarding classes without rewrite rules.
To replace an existing rewrite rule on the interface with a new rewrite rule of the same type, first explicitly remove the existing rewrite rule and then apply the new rule.
To create an EXP rewrite rule for MPLS traffic and enable it on a logical interface: