Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

dscp (Rewrite Rules on Interfaces)

date_range 04-Jun-24

Syntax

content_copy zoom_out_map
dscp (rewrite-name | default) protocol (inet-both | inet-outer | mpls);

Hierarchy Level

content_copy zoom_out_map
[edit class-of-service interfaces interface-name rewrite-rules],
[edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules]

Description

For IPv4 traffic, apply a Differentiated Services (DiffServ) code point (DSCP) rewrite rule to an interface. Supported interfaces for rewrite rules depend on the platform and software release.

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

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

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

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) 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.

footer-navigation