Beispiele: Stapeln und Umschreiben von Gigabit Ethernet IQ VLAN-Tags
Konfigurieren Sie einen VLAN-CCC-Tunnel, in dem Ethernet-Frames an der Schnittstelle in den Tunnel eintreten und den Tunnel an der Schnittstelle verlassen.ge-4/0/0
ge-4/2/0
Die folgenden Beispiele zeigen, wie die folgenden Aufgaben ausgeführt werden:
Vertauschen Sie eine VLAN-ID sowohl für den Eingang als auch für den Ausgang
Tauschen Sie ein TPID- und VLAN-ID-Paar für beide VLAN-Tags beim Eingang und beim Ausgang aus
Pushen eines TPID- und VLAN-ID-Paares beim Eingang
[edit interfaces] ge-4/0/0 { vlan-tagging; encapsulation vlan-ccc; gigether-options { ethernet-switch-profile { tag-protocol-id 0x9909; } } unit 0 { encapsulation vlan-ccc; vlan-id 512; input-vlan-map { push; tag-protocol-id 0x9909; vlan-id 520; } output-vlan-map pop; } } ge-4/2/0 { vlan-tagging; encapsulation vlan-ccc; unit 0 { encapsulation vlan-ccc; vlan-id 515; input-vlan-map { swap-push; vlan-id 520; inner-vlan-id 512; } output-vlan-map { pop-swap; } } [edit protocols] mpls { interface ge-4/0/0.0; interface ge-4/2/0.0; } connections { interface-switch vlan-tag-push { interface ge-4/0/0.0; interface ge-4/2/0.0; } } }
Stapeln von inneren und äußeren VLAN-Tags
[edit interfaces] ge-0/2/0 { stacked-vlan-tagging; mac 00.01.02.03.04.05; gigether-options { loopback; } unit 0 { vlan-tags outer 0x8100.200 inner 0x8100.200; } }
Vertauschen einer VLAN-ID bei eingehendem Datenverkehr
[edit interfaces] ge-4/0/0 { vlan-tagging; encapsulation vlan-ccc; gigether-options { ethernet-switch-profile { tag-protocol-id 0x9100; } } ... unit 1 { encapsulation vlan-ccc; vlan-id 1000; input-vlan-map { swap; tag-protocol-id 0x9100; vlan-id 2000; } } } ge-4/2/0 { vlan-tagging; encapsulation vlan-ccc; ... unit 1 { encapsulation vlan-ccc; vlan-id 2000; input-vlan-map { swap; tag-protocol-id 0x9100; vlan-id 1000; } } [edit protocols] mpls { ... interface ge-4/0/0.1; interface ge-4/2/0.1; } connections { ... interface-switch vlan-tag-swap { interface ge-4/2/0.1; interface ge-4/0/0.1; } } }
Tauschen Sie eine VLAN-ID beim ausgehenden Datenverkehr aus
[edit interfaces] ge-4/0/0 { vlan-tagging; encapsulation vlan-ccc; ... unit 1 { encapsulation vlan-ccc; vlan-id 1000; } } ge-4/2/0 { vlan-tagging; encapsulation vlan-ccc; gigether-options { ethernet-switch-profile { tag-protocol-id 0x8800; } } ... unit 1 { encapsulation vlan-ccc; vlan-id 2000; output-vlan-map { swap; tag-protocol-id 0x8800; } } } [edit protocols] mpls { ... interface ge-4/0/0.1; interface ge-4/2/0.1; } connections { ... interface-switch vlan-tag-swap { interface ge-4/2/0.1; interface ge-4/0/0.1; } }
Vertauschen Sie eine VLAN-ID sowohl für den Eingang als auch für den Ausgang
[edit interfaces] ge-4/0/0 { vlan-tagging; encapsulation vlan-ccc; gigether-options { ethernet-switch-profile { tag-protocol-id [ 0x8800 0x9100 ]; } } ... unit 1 { encapsulation vlan-ccc; vlan-id 1000; input-vlan-map { swap; tag-protocol-id 0x9100; vlan-id 2000; } } } ge-4/2/0 { vlan-tagging; encapsulation vlan-ccc; gigether-options { ethernet-switch-profile { tag-protocol-id [ 0x8800 0x9100 ]; } } unit 1 { encapsulation vlan-ccc; vlan-id 2000; output-vlan-map { swap; tag-protocol-id 0x8800; } } } [edit protocols] mpls { ... interface ge-4/0/0.1; interface ge-4/2/0.1; } connections { ... interface-switch vlan-tag-swap { interface ge-4/2/0.1; interface ge-4/0/0.1; } }
Tauschen Sie das äußere VLAN-Tag aus und übertragen Sie ein neues VLAN-Tag auf den Eingang. Legen Sie das äußere VLAN-Tag ab und tauschen Sie das innere VLAN-Tag beim Ausgang aus
[edit interfaces] ge-1/1/0 { unit 1 { vlan-id 200; input-vlan-map { swap-push; tag-protocol-id 0x9100; vlan-id 400; inner-tag-protocol-id 0x9100; inner-vlan-id 500; } output-vlan-map { pop-swap; inner-tag-protocol-id 0x9100; } } }
Tauschen Sie ein TPID- und VLAN-ID-Paar für beide VLAN-Tags beim Eingang und beim Ausgang aus
[edit interfaces] ge-1/1/0 { unit 0 { vlan-tags { inner 0x9100.425; outer 0x9200.525; } input-vlan-map { swap-swap; tag-protocol-id 0x9100; vlan-id 400; inner-tag-protocol-id 0x9100; inner-vlan-id 500; } output-vlan-map { swap-swap; tag-protocol-id 0x9200; inner-tag-protocol-id 0x9100; } } }
Legen Sie das äußere VLAN-Tag ab und tauschen Sie das innere VLAN-Tag beim Eingang aus. Tauschen Sie das äußere VLAN-Tag aus und übertragen Sie ein neues VLAN-Tag beim Ausgang
[edit interfaces] ge-1/1/0 { unit 0 { vlan-tags { inner 0x9100.425; outer 0x9200.525; } input-vlan-map { pop-swap; tag-protocol-id 0x9100; vlan-id 400; } output-vlan-map{ swap-push; tag-protocol-id 0x9200; inner-tag-protocol-id 0x9100; } } }
Legen Sie ein TPID- und VLAN-ID-Paar bei Eingang ab. Pushen einer VLAN-ID und eines TPID-Paares beim ausgehenden Datenverkehr
[edit interfaces] ge-1/1/0 { unit 0 { vlan-tags { inner 0x9100.425; outer 0x9200.525; } input-vlan-map{ pop-pop; } output-vlan-map { push-push; tag-protocol-id 0x9200; inner-tag-protocol-id 0x9100; } } }
Platzieren Sie ein äußeres VLAN-Tag, um eine nicht getaggte VPLS-Schnittstelle mit getaggten VPLS-Schnittstellen zu verbinden
[edit interfaces] ge-1/1/0 { vlan-tagging; encapsulation extended-vlan-vpls; unit 0 { vlan-id 0; input-vlan-map { push; vlan-id 0; } output-vlan-map pop; family vpls; } }