Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


show class-of-service rewrite-rule



Display the mapping of forwarding classes and loss priority to code point values.



Display all rewrite rules.

name name

(Optional) Display the specified rewrite rule.

type type

(Optional) Display the rewrite rule of the specified type. The rewrite rule type can be one of the following:

  • dscp—For IPv4 traffic.

  • dscp-ipv6—For IPv6 traffic.

  • exp—For MPLS traffic.

  • frame-relay-de—(SRX Series only) For Frame Relay traffic.

  • ieee-802.1—For Layer 2 traffic.

  • inet-precedence—For IPv4 traffic.

Required Privilege Level


Output Fields

Table 1 describes the output fields for the show class-of-service rewrite-rule command. Output fields are listed in the approximate order in which they appear.

Table 1: show class-of-service rewrite-rule Output Fields

Field Name

Field Description

Rewrite rule

Name of the rewrite rule.

Code point type

Type of rewrite rule: dscp, dscp-ipv6, exp, frame-relay-de, or inet-precedence.

Forwarding class

Classification of a packet affecting the forwarding, scheduling, and marking policies applied as the packet transits the router or switch.


Internal index for this particular rewrite rule.

Loss priority

Loss priority for rewriting.

Code point

Code point value to rewrite.

Sample Output

show class-of-service rewrite-rule type dscp