policy-map
Syntax
policy-map policy-map-name {
inet-precedence proto-ip code-point [alias | bits];
inet-precedence proto-mpls code-point [alias | bits];
dscp proto-ip code-point [alias | bits];
dscp proto-mpls code-point [alias | bits];
dscp-ipv6 proto-ip code-point [alias | bits];
dscp-ipv6 proto-mpls code-point [alias | bits];
exp all-label code-point [alias | bits];
exp outer-label code-point [alias | bits];
ieee-802.1 outer code-point [alias | bits];
ieee-802.1 outer-and-inner code-point [alias | bits];
ieee-802.1ad outer code-point [alias | bits];
ieee-802.1ad outer-and-inner code-point [alias | bits];
}
Hierarchy Level
[edit class-of-service]
Description
Define the packet- marking scheme (rewrite rules)
for a customer. Traditionally, packet marking in the Junos OS uses
the forwarding class and loss priority determined from a behavior
aggregate (BA) classifier or multifield classifier. This approach
does not allow rewrite rules to be directly assigned for each customer
because of the limited number of combinations of forwarding class
and loss priority. policy map enables you to define rewrite
rules on a per-customer basis.
Creating a policy map requires enhanced-ip, enhanced-ethernet, or enhanced-mode to be configured
under [edit chassis network-services].
Policy maps have the following configuration restrictions:
When configuring both
proto-ipandproto-mplsoptions forinet-precedence,dscp, ordscp-ipv6, you must configure both options with the same code point or code point alias.You cannot configure
inet-precedenceanddscpin the same policy map.You cannot configure
ieee-802.1andieee-802.1adin the same policy map.You cannot configure both
outerandouter-and-inneroptions forieee-802.1andieee-802.1adcode points in the same policy map.
You assign the policy map to a customer through a firewall action on an ingress or egress firewall filter (where the match conditions identify the customer). Alternatively, you can also assign a policy map to an ingress interface or a routing instance. A policy map is executed on a packet just before it is queued, so it overrides any other packet-marking scheme that was previously applied to the packet.
Options
alias |
The predefined CoS code point alias on the device. |
bits |
The bit pattern for the CoS code point. |
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 16.1R1.
