By default, when you apply an IEEE 802.1p rewrite rule to an output logical interface, the software rewrites the IEEE bits in the outer VLAN tag only.
For Gigabit Ethernet IQ2 PICs and 10-Gigabit Ethernet IQ2 PICs only, you can rewrite the IEEE bits in both the outer and inner VLAN tags of the tagged Ethernet frames. When you enable the CoS rewrite for both tags, the same IEEE 802.1p rewrite table is used for the inner and outer VLAN tag.
For IQ PICs, you can only configure one IEEE 802.1 rewrite rule on a physical port. All logical ports (units) on that physical port should apply the same IEEE 802.1 rewrite rule.
To rewrite both the outer and inner VLAN tags, include the vlan-tag outer-and-inner statement at the [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules ieee-802.1 (rewrite-name | default)] hierarchy level:
- [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules ieee-802.1 (rewrite-name | default)]
-
vlan-tag outer-and-inner;
To explicitly specify the default behavior, include the vlan-tag outer statement at the [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules ieee-802.1 (rewrite-name | default)] hierarchy level:
- [edit class-of-service interfaces interface-name unit logical-unit-number rewrite-rules ieee-802.1 (rewrite-name | default)]
-
vlan-tag outer;
For more information about VLAN tags, see the JUNOS Network Interfaces Configuration Guide.