Overriding the Input Classification
For IPv4 or IPv6 packets, you can override the incoming classification, assigning them to the same forwarding class based on their input interface, input precedence bits, or destination address. You do so by defining a policy class when configuring CoS properties and referencing this class when configuring a routing policy.
When you override the classification of incoming packets, any mappings you configured for associated precedence bits or incoming interfaces to output transmission queues are ignored. Also, if the packet loss priority (PLP) bit was set in the packet by the incoming interface, the PLP bit is cleared.
To override the input packet classification, do the following:
Define the policy class by including the
classstatement at the[edit class-of-service forwarding-policy]hierarchy level:[edit class-of-service] forwarding-policy { class class-name { classification-override { forwarding-class class-name; } } }
class-nameis a name that identifies the routing policy class.Associate the policy class with a routing policy by including it in a
policy-statementstatement at the[edit policy-options]hierarchy level. Specify the destination prefixes in theroute-filterstatement and the CoS policy class name in thethenstatement.[edit policy-options] policy-statement policy-name { term term-name { from { route-filter destination-prefix match-type <class class-name> } then class class-name; } }Apply the policy by including the
exportstatement at the[edit routing-options]hierarchy level:[edit routing-options] forwarding-table { export policy-name; }