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

rewrite-rules (Definition)

date_range 31-May-24

Syntax (Rewrite Rule Configuration)

content_copy zoom_out_map
rewrite-rules {
    (dscp | dscp-ipv6 | ieee-802.1 | exp) rewrite-name {
        import (rewrite-name | default);
        forwarding-class class-name {
            loss-priority priority code-point (alias | bits);
        }
    }
}

Syntax (Rewrite Rule Association with Interface)

content_copy zoom_out_map
rewrite-rules {
    (dscp | dscp-ipv6 | ieee-802.1 | exp) rewrite-name;
}

Hierarchy Level (Rewrite Rule Configuration)

content_copy zoom_out_map
[edit class-of-service],

Hierarchy Level (Rewrite Rule Association with Interface)

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

Description

Configure rewrite rules that map traffic to code points when traffic exits the system, and apply the rewrite rules to a specific interface.

MPLS EXP rewrite rules can only be bound to logical interfaces, not to physical interfaces. You can configure up to 64 EXP rewrite rules, but you can use only 16 EXP rewrite rules on switch interfaces at any given time.

Options

The remaining statements are explained separately. See CLI Explorer.

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

footer-navigation