protocol (Rewrite Rules)
Syntax
protocol protocol-types;
Hierarchy Level
[edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules exp rewrite-name], [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules dscp rewrite-name], [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules dscp-ipv6 rewrite-name], [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules inet-precedence rewrite-name] [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules inet6-precedence rewrite-name]
Description
Apply a rewrite rule to MPLS packets only, and write the CoS value to MPLS headers only; or apply a rewrite rule to MPLS and IPv4 or IPv6 packets, and write the CoS value to MPLS and IPv4 or IPv6 headers.
Options
protocol-types
can be one of the following:
-
mpls-any
—Apply a rewrite rule to MPLS packets and write the CoS value to MPLS headers only. -
mpls-inet-both
—Apply a rewrite rule to VPN MPLS packets with IPv4 payloads. Write the CoS value to the MPLS and IPv4 headers. -
mpls-inet-both-non-vpn
—Apply a rewrite rule to non-VPN MPLS packets with IPv4 payloads. Write the CoS value to the MPLS and IPv4 headers.
Junos OS Evolved supports only the
mpls-any
option. Devices running Junos OS Evolved do not support
different rewrite rules for VPN and non-VPN traffic.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced before Junos OS Release 7.4.
Option for dscp
and inet-prec
introduced in Junos OS
Release 8.4.
Option for dscp-ipv6
introduced in Junos OS Release 10.4R2.