[Contents] [Prev] [Next] [Index] [Report an Error]

Assigning the IEEE 802.1p Rewrite Rule to Dual VLAN Tags

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.

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.

Example: Assigning the IEEE 802.1p Rewrite Rule to Dual VLAN Tags

Apply the ieee8021p-rwrule1 rewrite rule to both inner and outer VLAN tags of Ethernet-tagged frames exiting the ge-0/0/0.0 interface:

class-of-service {
interfaces {
ge-0/0/0 {
unit 0 {
rewrite-rules {
ieee-802.1 ieee8021p-rwrule1 vlan-tag outer-and-inner;
}
}
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]