Configuring Inner and Outer TPIDs and VLAN IDs
For some rewrite operations, you must configure the inner or outer tag-protocol identifier (TPID) values and inner or outer virtual local area network identifier (VLAN ID) values. These values can be applied to either the input VLAN map or the output VLAN map. The stacked and rewriting Gigabit-Ethernet VLAN Tags are also referred to as Q-in-Q tunneling.
The VLAN IDs you define in the input VLAN maps are stacked on top of the VLAN ID bound to the logical interface. For more information about binding a VLAN ID to the logical interface, see 802.1Q VLANs Overview.
All TPIDs you include in input and output VLAN maps must be
among those you specify at the [edit interfaces interface-name gigether-options ethernet-switch-profile tag-protocol-id [ tpids ]]
hierarchy level or [edit interfaces interface-name aggregated-ether-options ethernet-switch-profile
tag-protocol-id [ tpids ]]
hierarchy level.
For more information, see Configuring
Frames with Particular TPIDs to Be Processed as Tagged Frames.
Table 1 and Table 2 specify when these statements are required. Table 1 indicates valid statement combinations
for rewrite operations for the input VLAN map. “No” means
the statement must not be included in the input VLAN map for the rewrite
operation. “Optional” means the statement may be optionally
specified for the rewrite operation in the input VLAN map. “Any”
means that you must include the vlan-id
statement, tag-protocol-id
statement, inner-vlan-id
statement,
or inner-tag-protocol-id
statement.
|
Input VLAN Map Statements |
|||
---|---|---|---|---|
Rewrite Operation | vlan-id | tag-protocol-id | inner-vlan-id | inner-tag-protocol-id |
push | Optional |
Optional |
No |
No |
pop | No |
No |
No |
No |
swap | Any |
Any |
No |
No |
push-push | Optional |
Optional |
Optional |
optional |
swap-push | Optional |
Optional |
Any |
Any |
swap-swap | Optional |
Optional |
Any |
Any |
pop-swap | No |
No |
Any |
Any |
pop-pop | No |
No |
No |
No |
Table 2 indicates valid statement combinations for rewrite operations for the output VLAN map. “No” means the statement must not be included in the output VLAN map for the rewrite operation. “Optional” means the statement may be optionally specified for the rewrite operation in the output VLAN map.
|
Output VLAN Map Statements |
|||
---|---|---|---|---|
Rewrite Operation | vlan-id | tag-protocol-id | inner-vlan-id | inner-tag-protocol-id |
push | No |
Optional |
No |
No |
pop | No |
No |
No |
No |
swap | No |
Optional |
No |
No |
push-push | No |
Optional |
No |
Optional |
swap-push | No |
Optional |
No |
Optional |
swap-swap | No |
Optional |
No |
Optional |
pop-swap | No |
No |
No |
Optional |
pop-pop | No |
No |
No |
No |
Input VLAN Map with inner-vlan-id Statement, Output VLAN Map with Optional inner-tag-protocol-id Statement
[edit interfaces interface-name unit logical-unit-number] input-vlan-map { pop-swap; inner-vlan-id number; } output-vlan-map { pop-swap; inner-tag-protocol-id tpid; }
Input VLAN Map with inner-tag-protocol-id Statement, Output VLAN Map with Optional inner-tag-protocol-id Statement
[edit interfaces interface-name unit logical-unit-number] input-vlan-map { pop-swap; inner-tag-protocol-id tpid; } output-vlan-map { pop-swap; inner-tag-protocol-id tpid; }
Input VLAN Map with inner-tag-protocol-id and inner-vlan-id Statements
[edit interfaces interface-name unit logical-unit-number] input-vlan-map { pop-swap; inner-vlan-id number; inner-tag-protocol-id tpid; }