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

traffic-class (Tunnels)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
traffic-class traffic-class-value;

Hierarchy Level

content_copy zoom_out_map
[edit interfaces gre-interface name unit unit number  tunnel ]
[edit logical-systems logical-system-name interfaces gre-interface-name unit unit number  tunnel]

Description

Configure a static ToS/Traffic Class value in the IPv4/IPv6 header, respectively, of a GRE tunnel. This can be useful, for example, when you want to apply a different classification to port-mirrored traffic than the source traffic.

This setting overrides ToS reflection set by copying the inner IP header’s ToS value to the outer IP packet header.

Note:

If rewrite rules are configured on the egress WAN interface, those rewrite rules will overwrite this setting. Therefore the traffic-class setting only makes sense when no rewrite rules are configured.

Options

traffic-class-value

The value represents the entire 8-bit differentiated services (DS) field in the IP header, and should be chosen based on the desired DSCP/IP precedence value. For example, if a DSCP value of 111000 is desired, then configure the traffic-class value to be 224 (corresponding to 111000 00).

  • Range: 0-255

Required Privilege Level

interface

Release Information

Statement introduced before Junos OS Release 11.2R1.

footer-navigation