例:ギガビットイーサネットIQ VLANタグのスタックと書き換え
イーサネットフレームがインターフェイス ge-4/0/0
でトンネルに入り、インターフェイス ge-4/2/0
でトンネルを出る VLAN CCC トンネルを設定します。
次の例は、次のタスクを実行する方法を示しています。
外側のVLANタグをスワップし、入力時に新しいVLANタグをプッシュします。エグレスで外側のVLANタグをポップし、内側のVLANタグをスワップします
入力時に外側のVLANタグをポップし、内側のVLANタグを入れ替えます。外側のVLANタグをスワップし、エグレスで新しいVLANタグをプッシュする
イングレス時に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; } }