Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

dscp (Rewrite Rules)

Syntax

Hierarchy Level

Description

For IPv4 traffic, apply a Differentiated Services (DiffServ) code point (DSCP) rewrite rule.

Logical interfaces do not support multiple dscp rewrite rules for the same protocol.

DSCP and DSCP IPv6 rewrite rules are supported on M Series and T Series routers when non-queuing PICs are installed, but are disabled when queuing PICs are installed with the following exceptions:

  • On M320 routers, DSCP rewrite is supported on IQ, IQ2, IQE, and IQ2E PICs when used with the Enhanced III FPC.

  • On M120 routers, DSCP rewrite is supported on IQ, IQ2, IQE, and IQ2E PICs.

DSCP and DCSP IPv6 rewrite rules are supported on MIC and MPC interfaces on MX Series routers.

DSCP rewrite rules are not supported on T Series routers when IQ, IQ2, IQE, IQ2E, SONET/SDH OC48/STM16 IQE, or PD-5-10XGE-SFPP PICs are installed.

Options

rewrite-name

Name of a rewrite-rules mapping configured at the [edit class-of-service rewrite-rules dscp] hierarchy level.

default

The default mapping.

protocol inet-both

For gr- interfaces (GRE tunnels) on MPCs, rewrite the DSCP CoS value to both the inner and outer header for Unicast/Multicast IPv4 traffic. The first six bits of the CoS value are rewritten and the final two bits are taken from the incoming CoS value.

protocol inet-outer

For gr- interfaces on MPCs, rewrite the DSCP CoS value to the outer header for Unicast/Multicast IPv4 traffic. The first six bits of the CoS value are rewritten and the final two bits are taken from the incoming CoS value.

protocol mpls

(Optional for ingress MPLS tunnel nodes) For interfaces on MX Series routers or hosted on Enhanced III FPCs in M120 or M320 routers only, rewrite the MPLS EXP bits in the MPLS header independently of the IPv4 DSCP value for IPv4 packets entering an MPLS tunnel.

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.