예: 기가비트 이더넷 IQ VLAN 태그 스태킹 및 재작성
이더넷 프레임이 인터페이스에서 ge-4/0/0
터널로 들어가고 인터페이스에서 ge-4/2/0
터널을 나가는 VLAN CCC 터널을 구성합니다.
다음 예제에서는 다음 작업을 수행하는 방법을 보여 줍니다.
외부 VLAN 태그를 스왑하고 수신 시 새 VLAN 태그를 푸시합니다. 송신 시 외부 VLAN 태그를 팝하고 내부 VLAN 태그를 스왑합니다.
수신 시 외부 VLAN 태그를 팝하고 내부 VLAN 태그를 스왑합니다. 외부 VLAN 태그를 스왑하고 송신 시 새 VLAN 태그를 푸시합니다.
외부 VLAN 태그를 팝하여 태그 처리되지 않은 VPLS 인터페이스를 태그가 지정된 VPLS 인터페이스에 연결
수신 시 TPID 및 VLAN ID 쌍 푸시
[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; } } }
스택 내부 및 외부 VLAN 태그
[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; } }
수신 시 VLAN ID 스왑
[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; } } }
송신 시 VLAN ID 스왑
[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; } }
수신 및 송신 모두에서 VLAN ID 스왑
[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; } }
외부 VLAN 태그를 스왑하고 수신 시 새 VLAN 태그를 푸시합니다. 송신 시 외부 VLAN 태그를 팝하고 내부 VLAN 태그를 스왑합니다.
[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; } } }
수신 및 송신 시 VLAN 태그에 대한 TPID 및 VLAN ID 쌍 스왑
[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; } } }
수신 시 외부 VLAN 태그를 팝하고 내부 VLAN 태그를 스왑합니다. 외부 VLAN 태그를 스왑하고 송신 시 새 VLAN 태그를 푸시합니다.
[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; } } }
수신 시 TPID 및 VLAN ID 쌍을 팝합니다. 송신 시 VLAN ID 및 TPID 페어 푸시
[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; } } }
외부 VLAN 태그를 팝하여 태그 처리되지 않은 VPLS 인터페이스를 태그가 지정된 VPLS 인터페이스에 연결
[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; } }