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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Junos ®<br />

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

• See Table 10 on page 136 and Table 11 on page 137 for information about configuring<br />

inner and outer VLAN ID values and inner and outer TPID values required for VLAN<br />

maps.<br />

• <strong>Junos®</strong> <strong>OS</strong> <strong>Ethernet</strong> <strong>Interfaces</strong><br />

Rewriting the VLAN Tag on Tagged Frames<br />

142<br />

Related<br />

Documentation<br />

To rewrite the VLAN tag on all tagged frames entering the interface to a specified VLAN<br />

ID and TPID, include the swap, tag-protocol-id, and vlan-id statements in the input VLAN<br />

map:<br />

input-vlan-map {<br />

swap;<br />

vlan-id number;<br />

tag-protocol-id tpid;<br />

}<br />

To rewrite the VLAN tag on all tagged frames exiting the interface to a specified VLAN<br />

ID and TPID, include the swap and tag-protocol-id statements in the output VLAN map:<br />

output-vlan-map {<br />

swap;<br />

vlan-id number;<br />

tag-protocol-id tpid;<br />

}<br />

You can include these statements at the following hierarchy levels:<br />

• [edit interfaces interface-name unit logical-unit-number input-vlan-map]<br />

• [edit logical-systems logical-system-name interfaces interface-name unit<br />

logical-unit-number input-vlan-map]<br />

You cannot include both the swap statement and the vlan-id statement in the output<br />

VLAN map configuration. If you include the swap statement in the configuration, the<br />

VLAN ID in outgoing frames is rewritten to the VLAN ID bound to the logical interface.<br />

For more information about binding a VLAN ID to the logical interface, see “802.1Q VLANs<br />

Overview” on page 53.<br />

The swap operation works on the outer tag only, whether or not you include the<br />

stacked-vlan-tagging statement in the configuration. For more information, see “Examples:<br />

Stacking and Rewriting Gigabit <strong>Ethernet</strong> IQ VLAN Tags” on page 147.<br />

•<br />

input-vlan-map on page 492<br />

• output-vlan-map<br />

• swap on page 556<br />

• vlan-id on page 577<br />

• tag-protocol-id on page 561<br />

• unit on page 568<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!