You can set GRE tunnel interfaces to copy the ToS bits (DSCP value) from the incoming IPv4 header to the outer GRE IP header for transit traffic. You can set this at the individual GRE interface level by including the copy-tos-to-outer-ip-header-transit statement at the [edit interfaces gr-fpc/pic/port unit logical-unit-number] hierarchy level, or globally by including the copy-tos-to-outer service-type ([ gre ] | [ mt ]) statement at the [edit chassis] hierarchy level.
You can also now rewrite the DSCP/IP precedence value in both the inner and outer headers with the rewrite rules ([ dscp ] | [ inet-precedence ]) default protocol ([ inet-both ] | [ inet-outer ]) statement at the [edit class-of-service interfaces interface-name] hierarchy level.
| Product / Application | Software | Introduced Release |
|---|---|---|
| MX204 | Junos OS | 17.4R1 |
| MX240 | Junos OS | 15.1F5 |
| MX301 | Junos OS | 25.4R1 |
| MX304 | Junos OS | 22.2R3 |
| MX480 | Junos OS | 15.1F5 |
| MX960 | Junos OS | 15.1F5 |
| MX2010 | Junos OS | 15.1F5 |
| MX2020 | Junos OS | 15.1F5 |
| MX10003 | Junos OS | 17.3R1 |
| MX10004 | Junos OS | 22.3R1 |
| MX10008 | Junos OS | 18.2R1 |
| MX10016 | Junos OS | 19.2R1 |