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.

Swap the Outer VLAN<br />

Tag and Push a New<br />

VLAN Tag on Ingress;<br />

Pop the Outer VLAN<br />

Tag and Swap the<br />

Inner VLAN Tag on<br />

Egress<br />

Swap a TPID and VLAN<br />

ID Pair for Both VLAN<br />

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

vlan-id 2000;<br />

}<br />

}<br />

}<br />

ge-4/2/0 {<br />

vlan-tagging;<br />

encapsulation vlan-ccc;<br />

gigether-options {<br />

ethernet-switch-profile {<br />

tag-protocol-id [ 0x8800 0x9100 ];<br />

}<br />

}<br />

unit 1 {<br />

encapsulation vlan-ccc;<br />

vlan-id 2000;<br />

output-vlan-map {<br />

swap;<br />

tag-protocol-id 0x8800;<br />

}<br />

}<br />

}<br />

[edit protocols]<br />

mpls {<br />

...<br />

interface ge-4/0/0.1;<br />

interface ge-4/2/0.1;<br />

}<br />

connections {<br />

...<br />

interface-switch vlan-tag-swap {<br />

interface ge-4/2/0.1;<br />

interface ge-4/0/0.1;<br />

}<br />

}<br />

[edit interfaces]<br />

ge-1/1/0 {<br />

unit 1 {<br />

vlan-id 200;<br />

input-vlan-map {<br />

swap-push;<br />

tag-protocol-id 0x9100;<br />

vlan-id 400;<br />

inner-tag-protocol-id 0x9100;<br />

inner-vlan-id 500;<br />

}<br />

output-vlan-map {<br />

pop-swap;<br />

inner-tag-protocol-id 0x9100;<br />

}<br />

}<br />

}<br />

[edit interfaces]<br />

ge-1/1/0 {<br />

Chapter 5: Stacking and Rewriting Gigabit <strong>Ethernet</strong> VLAN Tags<br />

151

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

Saved successfully!

Ooh no, something went wrong!