Configuring IEEE 802.1p Inheritance push and swap from the Transparent Tag
To classify incoming packets based on the IEEE 802.1p bits from
the transparent tag, include the transparent
statement
at the [edit class-of-service interfaces
interface-name unit
logical-unit-number classifiers ieee-802.1 vlan-tag]
hierarchy level.
Tagged Interface Example
The following example configuration specifies the classification based on the transparent VLAN tag.
edit class-of-service { interfaces { ge-3/0/1 { unit 0 { classifiers { ieee-802.1 default vlan-tag transparent; } } } } }
To configure Junos OS to inherit the IEEE 802.1p bits from the
transparent tag, include the swap-by-poppush
statement
at the [edit interfaces interface-name unit logical-unit-number]
hierarchy
level.
The following is a configuration to swap and push VLAN tags and allow inheritance of the IEEE 802.1p value from the transparent VLAN tag in incoming packets.
edit ge-3/0/0 { vlan-tagging; encapsulation vlan-ccc; unit 0 { encapsulation vlan-ccc; vlan-id 100; swap-by-poppush; input-vlan-map { swap-push; tag-protocol-id 0x9100; inner-tag-protocol-id 0x9100; vlan-id 500; inner-vlan-id 400; } output-vlan-map { pop-swap; inner-vlan-id 100; inner-tag-protocol-id 0x88a8; } } }
The swap-by-poppush
statement causes a swap operation
to be done as a pop followed by a push operation. So for the outer
tag, the incoming S-Tag is popped and a new tag is pushed. As a result,
the S-Tag inherits the IEEE 802.1p bits from the transparent tag.
The inner tag is then pushed, which results in the inner tag inheriting
the IEEE 802.1p bits from the transparent tag.
Untagged Interface Example
The following is a configuration to push two VLAN tags and allow inheritance of the IEEE 802.1p value from the transparent VLAN tag in the incoming packet.
[edit] ge-3/0/1 { encapsulation ccc; unit 0 { input-vlan-map { push-push; tag-protocol-id 0x9100; inner-tag-protocol-id 0x9100; vlan-id 500; inner-vlan-id 400; } output-vlan-map{ pop-pop; } } }
No additional configuration is required to inherit the IEEE
802.1p value, as the push
operation inherits the IEEE 802.1p
values by default.
The following configuration specifies the classification based on the transparent VLAN tag.
[edit] class-of-service { interfaces { ge-3/0/1 { unit 0 { classifiers { ieee-802.1 default vlan-tag transparent; } } } } }