21.03.2013 Views

Junos® OS Ethernet Interfaces Configuration ... - Juniper Networks

Junos® OS Ethernet Interfaces Configuration ... - Juniper Networks

Junos® OS Ethernet Interfaces Configuration ... - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Junos ®<br />

<strong>OS</strong> 12.3 <strong>Ethernet</strong> <strong>Interfaces</strong> <strong>Configuration</strong> Guide<br />

Table 8: Rewrite Operations on Untagged, Single-Tagged, and<br />

Dual-Tagged Frames (continued)<br />

Rewrite Operation<br />

swap-swap<br />

pop-pop<br />

pop-swap<br />

Untagged<br />

No<br />

No<br />

No<br />

Single-Tagged<br />

No<br />

No<br />

No<br />

Dual-Tagged<br />

Yes<br />

Yes<br />

Yes<br />

Number of Tags<br />

The rewrite operations push and push-push can be valid in certain circumstances on<br />

frames that are not tagged. For example, a single-tagged logical interface (interface 1)<br />

and a dual-tagged logical interface (interface 2) have the following configurations:<br />

Interface 1 [edit interfaces interface-name unit logical-unit-number]<br />

input-vlan-map {<br />

pop;<br />

}<br />

output-vlan-map {<br />

push;<br />

}<br />

Interface 2 [edit interfaces interface-name unit logical-unit-number]<br />

input-vlan-map {<br />

pop-pop;<br />

}<br />

output-vlan-map {<br />

push-push;<br />

}<br />

When a frame is received on the interface as a result of the input-vlan-map operation,<br />

the frame is not tagged. As it goes out of the second interface, the output-vlan-map<br />

operation push-push is applied to it. The resulting frame will be dual-tagged at the logical<br />

interface output.<br />

Depending on the VLAN rewrite operation, you configure the rewrite operation for the<br />

interface in the input VLAN map, the output VLAN map, or in both the input VLAN map<br />

and the output VLAN map. Table 9 on page 132 shows what rewrite operation combinations<br />

you can configure. “None” means that no rewrite operation is specified for the VLAN map.<br />

Table 9: Applying Rewrite Operations to VLAN Maps<br />

132<br />

Input VLAN Map<br />

none<br />

push<br />

pop<br />

Output VLAN Map<br />

none<br />

Yes<br />

No<br />

No<br />

push<br />

No<br />

No<br />

Yes<br />

pop<br />

No<br />

Yes<br />

No<br />

swap<br />

Yes<br />

No<br />

No<br />

push-push<br />

No<br />

No<br />

No<br />

swap-push<br />

No<br />

No<br />

No<br />

swap-swap<br />

Yes<br />

No<br />

No<br />

0<br />

– 2<br />

– 1<br />

pop-pop<br />

No<br />

No<br />

No<br />

swap-pop<br />

No<br />

No<br />

No<br />

Copyright © 2012, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!