例:EVPN-VXLAN 環境での IGMP スヌーピングによる帯域幅の保持
この例では、イーサネットVPN(EVPN)-仮想拡張LANのプロバイダエッジ(PE)デバイスでIGMPスヌーピングを設定する方法を示しています。マルチキャスト トラフィックが VXLAN コアに到着すると、EVPN が設定された PE デバイスは、IGMP リスナーが存在するローカル アクセス インターフェイスにのみトラフィックを転送します。
必要条件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
CE に接続されたマルチホーム PE デバイスとして設定された 2 台の QFX10000 スイッチ、マルチホーム PE に接続された PE デバイスとして設定された 1 台の QFX10000 デバイス、CE デバイスとして設定された 1 台の QFX5110。
すべてのデバイスで実行されている Junos OS リリース 17.2R1 以降。
概要
IGMP スヌーピングは、ブロードキャスト ドメイン内のマルチキャスト トラフィックを、対象となる受信者およびマルチキャスト デバイスに制限するために使用されます。マルチキャスト トラフィックが大量にある環境では、IGMP リスナーが存在するインターフェイスでのみマルチキャスト トラフィックが転送されるため、IGMP スヌーピングによって帯域幅が維持されます。IGMP は、マルチキャスト グループ メンバーシップを管理できるようになっています。
各 VLAN で IGMP スヌーピングを有効にすると、デバイスは EVPN タイプ 7 およびタイプ 8 ルート(Join および Leave Sync Routes)をアドバタイズして、EVPN インスタンス内のマルチホーミング ピア デバイス間で IGMP の参加と脱退の状態を同期します。アクセス側では、デバイスはマルチキャストトラフィックをサブスクライブされたリスナーにのみ転送します。ただし、リモート レシーバーがない場合でも、マルチキャスト トラフィックは EVPN コアにフラッディングします。
EVPN-VXLAN環境でIGMPスヌーピングを設定するには、以下が必要です。
オールアクティブ モードのマルチホーミング ピア PE デバイス。
IGMP バージョン 2 のみ。(IGMP バージョン 1 および 3 はサポートされていません)。
PEがローカルアクセスインターフェイスのIGMPクエリアになるためにプロキシモードで設定されたIGMPスヌーピング。
この機能は、VLAN 内と VLAN 間の両方のマルチキャスト転送をサポートします。PE デバイスは、どちらか一方または両方を実行するように設定できます。この例では、VLAN 間転送を有効にするために、各 PE デバイスが静的に定義されたプロトコル独立マルチキャスト(PIM)ランデブー ポイント(RP)として設定され、マルチキャスト転送が有効になります。また、各 IRB インターフェイスの [edit protocols pim interface interface-name] 階層レベルで distributed-dr ステートメントを設定します。このモードでは、このシナリオで必要のない PIM 機能を無効にすることで、PIM はマルチキャスト トラフィックをより効率的に転送できます。このステートメントを設定すると、PIM はインターフェイスで受信した IGMP レポートを処理するときに、インターフェイスの指定ルーター(DR)ステータスを無視します。インターフェイスが IGMP レポートを受信すると、PE デバイスは PIM アップストリームのジョイン メッセージを送信して、インターフェイスの DR ステータスに関係なく、マルチキャスト ストリームをプルしてインターフェイスに転送します。
位相幾何学
図 1 は、2 つの PE デバイス(PE1 と PE2)がカスタマー エッジ(CE)デバイスに接続された EVPN-VXLAN 環境を示しています。これらのPEは、冗長性を提供するためにアクティブ/アクティブモードでデュアルihome接続されています。3 番目の PE デバイスは、CE に面する PE デバイスにトラフィックを転送します。IGMP は、IRB(統合型ルーティングおよびブリッジング)インターフェイスで有効になっています。CE デバイスは 5 つの VLAN をホストします。IGMP スヌーピングは、すべての VLAN で有効になっています。この実装はマルチキャスト ルーターの使用をサポートしていないため、PE の各 VLAN は IGMP レイヤー 2 クエリアとして有効になっています。マルチホーム PE デバイスは、IGMP リスナーが存在するインターフェイス上でのみ CE にトラフィックを転送します。
構成
EVPN-VXLAN 環境で IGMP スヌーピングを設定するには、以下のタスクを実行します。
CLIクイック構成
この例を迅速に設定するには、以下のコマンドをコピーして、テキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを [edit] 階層レベルで CLI にコピー アンド ペーストして、設定モードから commit を入力します。
デバイスPE1
set chassis aggregated-devices ethernet device-count 2 set interfaces xe-0/0/0:1 description “Connected to CE” set interfaces xe-0/0/0:2 ether-options 802.3ad ae1 set interfaces xe-0/0/1:0 enable set interfaces xe-0/0/1:0 unit 0 description “Connected to PE3” set interfaces xe-0/0/1:0 unit 0 family inet address 192.0.2.1/24 set interfaces ae0 enable set interfaces ae1 enable set interfaces lo0 unit 0 family inet address 192.168.1.1/32 set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi all-active set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp periodic fast set interfaces ae0 aggregated-ether-options lacp system-id 00:00:00:00:00:01 set interfaces ae0 unit 0 description “Connected to CE” set interfaces ae1 esi 00:22:22:22:22:22:22:22:22:22 set interfaces ae1 esi all-active set interfaces ae1 aggregated-ether-options lacp active set interfaces ae1 aggregated-ether-options periodic fast set interfaces ae1 aggregated-ether-options lacp system id 00:00:00:00:00:02 set interfaces ae1 unit 0 description “Connected to CE” set interfaces ae0 family ethernet-switching interface-mode trunk set interfaces ae0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] set interfaces ae1 unit 0 family ethernet-switching interface-mode trunk set interfaces ae1 unit 0 family ethernet-switching vlan [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] set interfaces irb unit 1 family inet address 10.1.1.1/24 virtual-gateway-address 10.1.1.10 set interfaces irb unit 2 family inet address 10.2.1.1/24 virtual-gateway-address 10.2.1.10 set interfaces irb unit 3 family inet address 10.3.1.1/24 virtual-gateway-address 10.3.1.10 set interfaces irb unit 4 family inet address 10.4.1.1/24 virtual-gateway-address 10.4.1.10 set interfaces irb unit 5 family inet address 10.5.1.1/24 virtual-gateway-address 10.5.1.10 set routing-options router-id 192.168.1.1 set routing-options autonomous-system 65536 set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.1.1 set protocols bgp group INT family evpn signaling set protocols bgp group INT local-as 65536 set protocols bgp group INT neighbor 172.16.1.1 set vlans VLAN vlan-id 1 set vlans VLAN1 l3-interface irb.1 set vlans VLAN1 vxlan vni 1 set vlans VLAN2 vlan-id 2 set vlans VLAN2 l3-interface irb.2 set vlans VLAN2 vxlan vni2 set vlans VLAN3 vlan-id 3 set vlans VLAN3 l3-interface irb.3 set vlans VLAN3 vxlan vni 3 set vlans VLAN4 vlan-id 4 set vlans VLAN4 l3-interface irb.4 set vlans VLAN4 vxlan vni 4 set vlans VLAN5 vlan-id 5 set vlans VLAN5 l3-interface irb.5 set vlans VLAN5 vxlan vni 5 set protocols evpn encapsulation vxlan set protocols evpn ingress-replication set protocols evpn extended-vni-list 1-5 set policy-options policy-statement evpn-pplb from protocol evpn set policy-options policy-statement evpn-pplb then load-balance per-packet set routing-options forwarding-table export evpn-pplb set switch-options vtep-source-interface lo0:0 set switch-options route distinguisher 192.168.1.1:1 set switch-options vrf-target target:1:1 set protocols igmp interface irb.1 set protocols igmp interface irb.2 set protocols igmp interface irb.3 set protocols igmp interface irb.4 set protocols igmp interface irb.5 set protocols igmp-snooping vlan VLAN1 l2-querier source-address 10.1.1.1 set protocols igmp-snooping vlan VLAN1 proxy set protocols igmp-snooping vlan VLAN2 l2-querier source-address 10.2.1.1 set protocols igmp-snooping vlan VLAN2 proxy set protocols igmp-snooping vlan VLAN3 l2-querier source-address 10.3.1.1 set protocols igmp-snooping vlan VLAN3 proxy set protocols igmp-snooping vlan VLAN4 l2-querier source-address 10.4.1.1 set protocols igmp-snooping vlan VLAN4 proxy set protocols igmp-snooping vlan VLAN4 l2-querier source-address 10.5.1.1 set protocols igmp-snooping vlan VLAN5 proxy set protocols pim rp static address 172.16.1.1 set protocols pim interface irb.1 distributed-dr set protocols pim interface irb.2 distributed-dr set protocols pim interface irb.3 distributed-dr set protocols pim interface irb.4 distributed-dr set protocols pim interface irb.5 distributed-dr
デバイスPE2
set chassis aggregated-devices ethernet device-count 2 set interfaces xe-0/0/0:0 ether-options 802.3ad ae1 set interfaces xe-0/0/0:1 description “Connected to CE” set interfaces xe-0/0/0:1 ether-options 802.3ad ae0 set interfaces xe-0/0/1:0 enable set interfaces xe-0/0/1:0 unit 0 description “Connected to PE3” set interfaces xe-0/0/1:0 family inet address 198.51.100.1/24 set interfaces ae0 enable set interfaces ae1 enable set interfaces lo0 unit 0 family inet address 192.168.2.1/32 set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi all-active set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated ether-options lacp periodic fast set interfaces ae0 aggregated ether-options lacp system-id 00:00:00:00:00:01 set interfaces ae1 esi 00:22:22:22:22:22:22:22:22:22 set interfaces ae1 esi all-active set interfaces ae1 aggregated-ether-options lacp active set interfaces ae1 aggregated-ether-options lacp periodic fast set interfaces ae1 aggregated-ether-options lacp system-id 00:00:00:00:00:02 set interfaces ae0 unit 0 description “Connected to CE” set interfaces ae0 unit family ethernet-switching interface-mode trunk set interfaces ae0 unit family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] set interfaces ae1 unit 0 description “Connected to CE” set interfaces ae1 unit 0 family ethernet-switching interface-mode trunk set interfaces ae1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] set interfaces irb unit 1 family inet address 10.1.1.2/24 virtual-gateway-address 10.1.1.10 set interfaces irb unit 2 family inet address 10.2.1.2/24 virtual-gateway-address 10.2.1.10 set interfaces irb unit 3 family inet address 10.3.1.2/24 virtual-gateway-address 10.3.1.10 set interfaces irb unit 4 family inet address 10.4.1.2/24 virtual-gateway-address 10.4.1.10 set interfaces irb unit 5 family inet address 10.5.1.2/24 virtual-gateway-address 10.5.1.10 set routing-options router-id 192.168.2.1 set routing-options autonomous-system 65536 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface xe-0/0/1:0.0 set protocols bgp group INT type internal set protocols bgp group INT local-address 192.168.2.1 set protocols bgp group INT family evpn signaling set protocols bgp group INT local-as 65536 set protocols bgp group INT neighbor 172.16.1.1 set vlans VLAN1 vlan-id 1 set vlans VLAN1 l3-interface irb.1 set vlans VLAN1 vxlan vni 1 set vlans VLAN2 vlan-id 2 set vlans VLAN2 l3-interface irb.2 set vlans VLAN2 vxlan vni 2 set vlans VLAN3 vlan-id 3 set vlans VLAN3 l3-interface irb.3 set vlans VLAN3 vxlan vni 3 set vlans VLAN4 vlan-id 4 set vlans VLAN4 l3-interface irb.4 set vlans VLAN4 vxlan vni 4 set vlans VLAN5 vlan-id 5 set vlans VLAN5 l3-interface irb.5 set vlans VLAN5 vxlan vni 3 set protocols evpn encapsulation vxlan set protocols evpn muticast-mode ingress-encapsulation set protocols evpn extended-vni-list 1-5 set policy-options policy statement evpn-pplb from protocol evpn set policy-options policy-statement evpn-pplb then load-balance per-packet set routing-options forwarding-table export evpn-pplb set switch-options vtep-source-interface lo0.0 set switch-options route-distinguisher 192.168.2.1:1 set switch-options vrf-target target:1:1 set protocols igmp interface irb.1 set protocols igmp interface irb.2 set protocols igmp interface irb.3 set protocols igmp interface irb.4 set protocols igmp interface irb.5 set protocols igmp-snooping vlan VLAN1 l2-querier source-address 10.1.1.2 set protocols igmp-snooping vlan VLAN1 proxy set protocols igmp-snooping vlan VLAN2 l2-querier source-address 10.2.1.2 set protocols igmp-snooping vlan VLAN2 proxy set protocols igmp-snooping vlan VLAN3 l2-querier source-address 10.3.1.2 set protocols igmp-snooping vlan VLAN3 proxy set protocols igmp-snooping vlan VLAN4 l2-querier source-address 10.4.1.2 set protocols igmp-snooping vlan VLAN4 proxy set protocols igmp-snooping vlan VLAN5 l2-querier source-address 10.5.1.2 set protocols igmp-snooping vlan VLAN5 proxy set protocols pim rp static address 172.16.1.1 set protocols pim interface irb.1 distributed-dr set protocols pim interface irb.2 distributed-dr set protocols pim interface irb.3 distributed-dr set protocols pim interface irb.4 distributed-dr set protocols pim interface irb.5 distributed-dr
西暦
set chassis aggregated devices ethernet device-count 2 set interfaces xe-0/2/0 ether-options 802.3ad ae0 set interfaces xe-0/2/1 ether-options 802.3ad ae0 set interfaces xe-0/2/0 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/2/0 unit 0 family ethernet-switching vlan members 1-5 set interfaces xe-0/2/1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/2/1 unit 0 family ethernet-switching vlan members 1-5 set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp periodic fast set interfaces ae0 unit 0 family ethernet-switching interface-mode trunk set interfaces ae0 unit 0 family ethernet-switching vlan members 1-5 set interfaces ae1 aggregated-ether-options lacp active set interfaces ae1 aggregated-ether-options lacp periodic fast set interfaces ae1 unit 0 family ethernet-switching interface-mode trunk set interfaces ae1 unit 0 family ethernet-switching vlan members 1-5 set vlans BD-1 vlan-id 1 set vlans BD-2 vlan-id 2 set vlans BD-3 vlan-id 3 set vlans BD-4 vlan-id 4 set vlans BD-5 vlan-id 5
PE3の
set interfaces xe-0/0/0 enable set interfaces xe-/0/0/0 unit 0 description “Connected to PE1” set interfaces xe-0/0/0 unit 0 family inet 192.0.2.2/24 set interfaces xe-0/0/1 enable set interfaces xe-0/0/1 unit 0 description “Connected to PE2” set interfaces xe-0/0/1 unit 0 family inet 198.51.100.2/24 set interfaces lo0 unit 0 family inet address 172.16.1.1/32 set interfaces xe-0/0/0:1 enable set interfaces xe-0/0/0:1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/0:1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] set interfaces xe-0/0/1:1 enable set interfaces xe-0/0/1:1 unit 0 family ethernet-switching interface-mode trunk set interfaces xe-0/0/1:1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] set interfaces irb unit 1 famly inet address 10.1.1.5/24 virtual-gateway address 10.1.1.10 set interfaces irb unit 2 family inet address 10.2.1.5/24 virtual-gateway address 10.2.1.10 set interfaces irb unit 3 family inet address 10.3.1.5/24 virtual-gateway address 10.3.1.10 set interfaces irb unit 4 family inet address 10.4.1.5/24 virtual-gateway address 10.4.1.10 set interrfaces irb unit 5 family inet address 10.5.1.5/24 virtual-gateway address 10.5.1.10 set routing-options router-id 172.16.1.1 se routing-options autonomous-system 65536 set ospf area 0.0.0.0 interface all set ospf area 0.0.0.0 fxp0.0 disable set protocols bgp group INT type internal set protocols bgp group INT local-address 172.16.1.1 set protocols bgp group INT family evpn signaling set protocols bgp group INT local-as 65536 set protocols bgp group INT neighbor 192.168.1.1 set protocols bgp group INT neighbor 192.168.2.1 set vlans VLAN1 vlan-id 1 set vlans VLAN1 l3-interface irb.1 set vlans VLAN1 vxlan vni 1 set vlans VLAN2 vlan-id 2 set vlans VLAN2 l3-interface irb.2 set vlans VLAN2 vxlan vni 2 set vlans VLAN3 vlan-id 3 set vlans VLAN3 l3-interface irb.3 set vlans VLAN3 vxlan vni 3 set vlans VLAN4 vlan-id 4 set vlans VLAN4 l3-interface irb.4 set vlans VLAN4 vxlan vni 4 set vlans VLAN5 vlan-id 5 set vlans VLAN5 l3-interface irb.5 set vlans VLAN5 vxlan vni 5 set protocols evpn encapsulation vxlan set protocols evpn multicast-mode ingress-replication set protocols evpn extended-vni-list 1-5 set policy-options policy-statement evpn-pplb from protocol evpn set policy-options policy-statement evpn-pbllb then load-balance per packet set routing-options forwarding-table export evpn-pplb set switch-options vtep-source-interface lo0 set switch-options route-distinguisher 172.16.1.1:1 set switch-option vrf-target target:1:1 set protocols igmp interface irb.1 set protocols igmp interface irb.2 set protocols igmp interface irb.3 set protocols igmp interface irb.4 set protocols igmp interface irb.5 set protocols igmp-snooping vlan VLAN1 l2-querier source-address 10.1.1.5 set protocols igmp-snooping vlan VLAN1 proxy set protocols igmp-snooping vlan VLAN2 l2-querier source-address 10.2.1.5 set protocols igmp-snooping vlan VLAN2 proxy set protocols igmp-snooping vlan VLAN3 l2-querier source-address 10.3.1.5 set protocols igmp-snooping vlan VLAN3 proxy set protocols igmp-snooping vlan VLAN4 l2-querier source-address 10.4.1.5 set protocols igmp-snooping vlan VLAN4 proxy set protocols igmp-snooping vlan VLAN5 l2-querier source-address 10.5.1.5 set protocols igmp-snooping vlan VLAN5 proxy set protocols pim rp local 172.16.1.1 set protocols pim interface irb.1 distributed-dr set protocols pim interface irb.2 distributed-dr set protocols pim interface irb.3 distributed-dr set protocols pim interface irb.4 distributed-dr set protocols pim interface irb.5 distributed-dr
PE1の設定
手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLIのナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスPE1を設定するには:
集合型イーサネット論理インターフェイスの数を指定します。
[edit chassis] user@PE1# set aggregated-devices ethernet device-count 2
インターフェイスを設定します。
[edit interfaces] user@PE1# set xe-0/0/0:1 description “Connected to CE” user@PE1# set xe-0/0/0:2 ether-options 802.3ad ae1 user@PE1# set xe-0/0/1:0 enable user@PE1# set xe-0/0/1:0 unit 0 description “Connected to PE3” user@PE1# set xe-0/0/1:0 unit 0 family inet address 192.0.2.1/24 user@PE1# set ae0 enable user@PE1# set ae1 enable user@PE2# set lo0 unit 0 family inet address 192.168.1.1/32
アクティブ-アクティブマルチホーミングを設定し、各集合型イーサネットインターフェイスでLACP(Link Aggregation Control Protocol)を有効にします。
[edit interfaces] user@PE1# set ae0 esi 00:11:11:11:11:11:11:11:11:11 user@PE1# set esi all-active user@PE1# set ae0 aggregated-ether-options lacp active user@PE1# set ae0 aggregated-ether-options lacp periodic-fast user@PE1# set ae0 aggregated-ether-options lacp system-id 00:00:00:00:00:01 user@PE1# set ae1 esi 00:22:22:22:22:22:22:22:22:22 user@PE1# set ae1 esi all-active user@PE1# set ae1 aggregated-ether-options lacp active user@PE1# set ae1 aggregated-ether-options lacp periodic-fast user@PE1# set ae0 aggregated-ether-options lacp system-id 00:00:00:00:00:02
各集合型イーサネットインターフェイスをトランクポートとして設定します。
[edit interfaces] user@PE1# set ae0 unit 0 description “Connected to CE” user@PE1# set ae0 unit 0 family ethernet-switching interface-mode trunk user@PE1# set ae0 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] user@PE1# set ae1 unit 0 description “Connected to CE” user@PE1# set ae1 unit 0 family ethernet-switching interface-mode trunk user@PE1# set ae1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ]
IRB インターフェイスと仮想ゲートウェイ アドレスを設定します。
[edit interfaces] user@PE1# set irb unit 1 family inet address 10.1.1.1/24 virtual-gateway-address 10.1.1.10 user@PE1# set irb unit 2 family inet address 10.2.1.1/24 virtual-gateway-address 10.2.1.10 user@PE1# set irb unit 3 family inet address 10.3.1.1/24 virtual-gateway-address 10.3.1.10 user@PE1# set irb unit 4 family inet address 10.4.1.1/24 virtual-gateway-address 10.4.1.10 user@PE1# set irb unit 5 family inet address 10.5.1.1/24 virtual-gateway-address 10.5.1.10
自律システムを設定します。
[edit routing-options] user@PE1# set router-id 192.168.1.1 user@PE1# set autonomous-system 65536
OSPFを設定します。
[edit protocols ospf] user@PE1# set area 0.0.0.0 interface xe-0/0/1:0.0 user@PE1# set area 0.0.0.0 interface lo0. passive
BGP内部ピアリングを設定します。
[edit protocols bgp] user@PE1# set group INT type internal user@PE1# set group INT local-address 192.168.1.1 user@PE1# set group INT family evpn signaling user@PE1# set group INT local-as 65536 user@PE1# set group INT neighbor 172.16.1.1
VLAN を構成します。
[set vlans] user@PE1# set VLAN1 vlan-id 1 user@PE1# set VLAN1 l3-interface irb.1 user@PE1# set VLAN1 vxlan vni 1 user@PE1# set VLAN2 vlan-id 2 user@PE1# set VLAN2 l3-interface irb.2 user@PE1# set VLAN2 vxlan vni 2 user@PE1# set VLAN3 vlan-id 3 user@PE1# set VLAN3 l3-interface irb.3 user@PE1# set VLAN3 vxlan vni 3 user@PE1# set VLAN4 vlan-id 4 user@PE1# set VLAN4 l3-interface irb.4 user@PE1# set VLAN4 vxlan vni 4 user@PE1# set VLAN5 vlan-id 5 user@PE1# set VLAN5 l3-interface irb.5 user@PE1# set VLAN2 vxlan vni 5
EVPN を有効にします。
[edit protocols evpn] user@PE1# set encapsulation vxlan user@PE1# set multicast-mode ingress-replication user@PE1# set extended-vni-list 1-5
エクスポート・ルーティング・ルーティングポリシーを構成して、EVPNトラフィックを負荷分散します。
[edit policy-options] user@PE1# set policy-statement evpn-pplb from protocol evpn user@PE1# set policy-statement evpn-pplb then load-balance per packet [edit routing-options] user@PE1# set forwarding-table export evpn-pplb
VXLAN トンネルの送信元インターフェイスを設定します。
[edit switch-options] user@PE1# set vtep-source-interface lo0.0 user@PE1# set route-distinguisher 192.168.1.1:1 user@PE1# set vrf-target target:1:1
VLAN に関連付けられている IRB インターフェイスで IGMP を有効にします。
[edit protocols igmp] user@PE1# set interface irb.1 user@PE1# set interface irb.2 user@PE1# set interface irb.3 user@PE1# set interface irb.4 user@PE1# set interface irb.5
VLAN で IGMP スヌーピングを有効にします。
[edit protocols igmp-snooping vlan] user@PE1# set VLAN1 l2-querier source-address 10.1.1.1 user@PE1# set VLAN1 proxy user@PE1# set VLAN2 l2-querier source-address 10.2.1.1 user@PE1# set VLAN2 proxy user@PE1# set VLAN3 l2-querier source address 10.3.1.1 user@PE1# set VLAN3 proxy user@PE1# set VLAN4 l2-querier source-address 10.4.1.1 user@PE1# set VLAN4 proxy user@PE1# set VLAN5 l2-querier source-address 10.5.1.1 user@PE1# set VLAN5 proxy
静的ランデブーポイントを定義し、VLAN に関連付けられた IRB インターフェイスで を有効にすることで PIM を設定します。
手記:この手順は、VLAN 間転送を設定する場合にのみ必要です。PE デバイスが VLAN 内転送のみを実行している場合は、この手順を省略します。
[edit protocols pim] user@PE1# set rp static address 172.16.1.1 user@PE1# set interface irb.1 distrbuted-dr user@PE1# set interface irb.2 distributed-dr user@PE1# set interface irb.3 distributed-dr user@PE1# set interface irb.4 distributed-dr user@PE1# set interface irb.5 distributed-dr
業績
設定モードから、show chassis、show interfacesshow routing-options、show protocols、show vlans、show policy-options、およびshow switch-optionsコマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@PE1# show chassis
aggregated-devices {
ethernet {
device-count 2;
}
}
user@PE1# show
interfaces {
xe-0/0/0:1 {
description "Connected to CE";
ether-options {
802.3ad ae0;
}
}
xe-0/0/0:2 {
ether-options {
802.3ad ae1;
}
}
xe-0/0/1:0 {
enable;
unit 0 {
description "Connected to PE3";
family inet {
address 192.0.2.1/24;
}
}
}
xe-0/0/1:1 {
enable;
}
ae0 {
enable;
esi {
00:11:11:11:11:11:11:11:11:11;
all-active;
}
aggregated-ether-options {
lacp {
active;
periodic fast;
system-id 00:00:00:00:00:01;
}
}
unit 0 {
description "Connected to CE";
family ethernet-switching {
interface-mode trunk;
vlan {
members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ];
}
}
}
}
ae1 {
enable;
esi {
00:22:22:22:22:22:22:22:22:22;
all-active;
}
aggregated-ether-options {
lacp {
active;
periodic fast;
system-id 00:00:00:00:00:02;
}
}
unit 0 {
description "Connected to CE";
family ethernet-switching {
interface-mode trunk;
vlan {
members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ];
}
}
}
}
irb {
unit 1 {
family inet {
address 10.1.1.1/24 {
virtual-gateway-address 10.1.1.10;
}
}
}
unit 2 {
family inet {
address 10.2.1.1./24 {
virtual-gateway-address 10.2.1.10;
}
}
}
unit 3 {
family inet {
address 10.3.1.1./24 {
virtual-gateway-address 10.3.1.10;
}
}
}
unit 4 {
family inet {
address 10.4.1.1./24 {
virtual-gateway-address 10.4.1.10;
}
}
}
unit 5 {
family inet {
address 10.5.1.1./24 {
virtual-gateway-address 10.5.1.10;
}
}
}
}
lo0 {
unit 0 {
family inet {
address 192.168.1.1/32;
}
}
}
}
routing-options {
router-id 192.168.1.1;
autonomous-system 65536;
forwarding-table {
export evpn-pplb;
}
}
protocols {
igmp {
interface irb.1;
interface irb.2;
interface irb.3;
interface irb.4;
interface irb.5;
}
bgp {
group INT {
type internal;
local-address 192.168.1.1;
family evpn {
signaling;
}
local-as 65536;
neighbor 172.16.1.1;
}
}
ospf {
area 0.0.0.0 {
interface xe-0/0/1:0.0;
interface lo0.0 {
passive;
}
}
}
pim {
rp {
static {
address 172.16.1.1;
}
}
interface irb.1 {
distributed-dr;
}
interface irb.2 {
distributed-dr;
}
interface irb.3 {
distributed-dr;
}
interface irb.4 {
distributed-dr;
}
interface irb.5 {
distributed-dr;
}
}
evpn {
encapsulation vxlan;
multicast-mode ingress-replication;
extended-vni-list 1-5;
}
igmp-snooping {
vlan VLAN1 {
l2-querier {
source-address 10.1.1.1;
}
proxy;
}
vlan VLAN2 {
l2-querier {
source-address 10.2.1.1;
}
proxy;
}
vlan VLAN3 {
l2-querier {
source-address 10.3.1.1;
}
proxy;
}
vlan VLAN4 {
l2-querier {
source-address 10.4.1.1;
}
proxy;
}
vlan VLAN5 {
l2-querier {
source-address 10.5.1.1;
}
proxy;
}
}
}
policy-options {
policy-statement evpn-pplb {
from protocol evpn;
then {
load-balance per-packet;
}
}
}
switch-options {
vtep-source-interface lo0.0;
route-distinguisher 192.168.1.1:1;
vrf-target target:1:1;
}
vlans {
VLAN1 {
vlan-id 1;
l3-interface irb.1;
vxlan {
vni 1;
}
}
VLAN2 {
vlan-id 2;
l3-interface irb.2;
vxlan {
vni 2;
}
}
VLAN3 {
vlan-id 3;
l3-interface irb.3;
vxlan {
vni 3;
}
}
VLAN4 {
vlan-id 4;
l3-interface irb.4;
vxlan {
vni 4;
}
}
VLAN5 {
vlan-id 5;
l3-interface irb.5;
vxlan {
vni 5;
}
}
}
PE2の設定
手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLIのナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスPE2を設定するには:
集合型イーサネット論理インターフェイスの数を指定します。
[edit chassis] user@PE2# set aggregated-devices ethernet device-count 2
インターフェイスを設定します。
[edit interfaces] user@PE2# set xe-0/0/0:0 ether-options 802.3ad ae1 user@PE2# set xe-0/0/0:1 description “Connected to CE” user@PE2# set xe-0/0/1:0 enable user@PE2# set xe-0/0/1:0 unit 0 description “Connected to PE3” user@PE2# set xe-0/0/1:0 unit 0 family inet address 198.51.100.1/24 user@PE2# set ae0 enable user@PE2# set ae1 enable user@PE2# set lo0 unit 0 family inet address 192.168.2.1/32
アクティブ-アクティブマルチホーミングを設定し、各集合型イーサネットインターフェイスでLACP(Link Aggregation Control Protocol)を有効にします。
[edit interfaces] user@PE2# set ae0 esi 00:11:11:11:11:11:11:11:11:11 user@PE2# set esi all-active user@PE2# set ae0 aggregated-ether-options lacp active user@PE2# set ae0 aggregated-ether-options lacp periodic-fast user@PE2# set ae0 aggregated-ether-options lacp system-id 00:00:00:00:00:01 user@PE2# set ae1 esi 00:22:22:22:22:22:22:22:22:22 user@PE2# set ae1 esi all-active user@PE2# set ae1 aggregated-ether-options lacp active user@PE2# set ae1 aggregated-ether-options lacp periodic-fast user@PE2# set ae0 aggregated-ether-options lacp system-id 00:00:00:00:00:02
各集合型イーサネットインターフェイスをトランクポートとして設定します。
[edit interfaces] user@PE2# set ae0 unit 0 description “Connected to CE” user@PE2# set ae0 unit 0 family ethernet-switching interface-mode trunk user@PE2# set ae0 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] user@PE2# set ae1 unit 0 description “Connected to CE” user@PE2# set ae1 unit 0 family ethernet-switching interface-mode trunk user@PE2# set ae1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ]
IRB インターフェイスと仮想ゲートウェイ アドレスを設定します。
[edit interfaces] user@PE2# set irb unit 1 family inet address 10.1.1.2/24 virtual-gateway-address 10.1.1.10 user@PE2# set irb unit 2 family inet address 10.2.1.2/24 virtual-gateway-address 10.2.1.10 user@PE2# set irb unit 3 family inet address 10.3.1.2/24 virtual-gateway-address 10.3.1.10 user@PE2# set irb unit 4 family inet address 10.4.1.2/24 virtual-gateway-address 10.4.1.10 user@PE2# set irb unit 5 family inet address 10.5.1.2/24 virtual-gateway-address 10.5.1.10
自律システムを設定します。
[edit routing-options] user@PE2# set router-id 192.168.2.1 user@PE2# set autonomous-system 65536
OSPFを設定します。
[edit protocols ospf] user@PE2# set area 0.0.0.0 interface xe-0/0/1:0.0 user@PE2# set area 0.0.0.0 interface lo0. passive
BGP内部ピアリングを設定します。
[edit protocols bgp] user@PE2# set group INT type internal user@PE2# set group INT local-address 192.168.2.1 user@PE2# set group INT family evpn signaling user@PE2# set group INT local-as 65536 user@PE2# set group INT neighbor 172.16.1.1
VLAN を構成します。
[edit vlans] user@PE2# set VLAN1 vlan-id 1 user@PE2# set VLAN1 l3-interface irb.1 user@PE2# set VLAN1 vxlan vni 1 user@PE2# set VLAN2 vlan-id 2 user@PE2# set VLAN2 l3-interface irb.2 user@PE2# set VLAN2 vxlan vni 2 user@PE2# set VLAN3 vlan-id 3 user@PE2# set VLAN3 l3-interface irb.3 user@PE2# set VLAN3 vxlan vni 3 user@PE2# set VLAN4 vlan-id 4 user@PE2# set VLAN4 l3-interface irb.4 user@PE2# set VLAN4 vxlan vni 4 user@PE2# set VLAN5 vlan-id 5 user@PE2# set VLAN5 l3-interface irb.5 user@PE2# set VLAN2 vxlan vni 5
EVPN を有効にします。
[edit protocols evpn] user@PE2# set encapsulation vxlan user@PE2# set multicast-mode ingress-replication user@PE2# set extended-vni-list 1-5
EVPNトラフィックをロードバランシングし、転送テーブルに適用するエクスポートルーティングルーティングポリシーを設定します。
[edit policy-options] user@PE2# set policy-statement evpn-pplb from protocol evpn user@PE2# set policy-statement evpn-pplb then load-balance per packet [edit routing-options] user@PE2# set forwarding-table export evpn-pplb
VXLAN トンネルの送信元インターフェイスを設定します。
[edit switch-options] user@PE2# set vtep-source-interface lo0.0 user@PE2# set route-distinguisher 192.168.2.1:1 user@PE2# set vrf-target target:1:1
IRB インターフェイスで IGMP を有効にします。
[edit protocols igmp] user@PE2# set interface irb.1 user@PE2# set interface irb.2 user@PE2# set interface irb.3 user@PE2# set interface irb.4 user@PE2# set interface irb.5
IRB インターフェイスで IGMP スヌーピングを有効にします。
[edit protocols igmp-snooping vlan] user@PE2# set VLAN1 l2-querier source-address 10.1.1.2 user@PE2# set VLAN1 proxy user@PE2# set VLAN2 l2-querier source-address 10.2.1.2 user@PE2# set VLAN2 proxy user@PE2# set VLAN3 l2-querier source address 10.3.1.2 user@PE2# set VLAN3 proxy user@PE2# set VLAN4 l2-querier source-address 10.4.1.2 user@PE2# set VLAN4 proxy user@PE2# set VLAN5 l2-querier source-address 10.5.1.2 user@PE2# set VLAN5 proxy
静的ランデブー ポイントを定義し、IRB インターフェイスで を有効にすることで PIM を設定します。
手記:この手順は、VLAN 間転送を設定する場合にのみ必要です。PE デバイスが VLAN 内転送のみを実行している場合は、この手順を省略します。
[edit protocols pim] user@PE2# set rp static address 172.16.1.1 user@PE2# set interface irb.1 distrbuted-dr user@PE2# set interface irb.2 distributed-dr user@PE2# set interface irb.3 distributed-dr user@PE2# set interface irb.4 distributed-dr user@PE2# set interface irb.5 distributed-dr
業績
設定モードから、show chassis、show interfacesshow routing-options、show protocols、show vlans、show policy-options、およびshow switch-optionsコマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@PE2# show chassis
aggregated-devices {
ethernet {
device-count 2;
}
}
user@PE2# show
interfaces {
xe-0/0/0:0 {
ether-options {
802.3ad ae1;
}
}
xe-0/0/0:1 {
description "Connected to CE";
ether-options {
802.3ad ae0;
}
}
xe-0/0/1:0 {
enable;
unit 0 {
description "Connected to PE3";
family inet {
address 198.51.100.1/24;
}
}
}
ae0 {
esi {
00:11:11:11:11:11:11:11:11:11;
all-active;
}
aggregated-ether-options {
lacp {
active;
periodic fast;
system-id 00:00:00:00:00:01;
}
}
unit 0 {
description "Connected to CE";
family ethernet-switching {
interface-mode trunk;
vlan {
members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ];
}
}
}
}
ae1 {
enable;
esi {
00:22:22:22:22:22:22:22:22:22;
all-active;
}
aggregated-ether-options {
lacp {
active;
periodic fast;
system-id 00:00:00:00:00:02;
}
}
unit 0 {
description "CONNECTED TO CE";
family ethernet-switching {
interface-mode trunk;
vlan {
members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ];
}
}
}
}
irb {
unit 1 {
family inet {
address 10.1.1.2/24 {
virtual-gateway-address 10.1.1.10;
}
}
}
unit 2 {
family inet {
address 10.2.1.2/24 {
virtual-gateway-address 10.2.1.10;
}
}
}
unit 3 {
family inet {
address 10.3.1.2/24 {
virtual-gateway-address 10.3.1.10;
}
}
}
unit 4 {
family inet {
address 10.4.1.2/24 {
virtual-gateway-address 10.4.1.10;
}
}
}
unit 5 {
family inet {
address 10.5.1.2/24 {
virtual-gateway-address 10.5.1.10;
}
}
}
}
lo0 {
unit 0 {
family inet {
address 192.168.2.1/32;
}
}
}
}
routing-options {
router-id 192.168.2.1;
autonomous-system 65536;
forwarding-table {
export evpn-pplb;
}
}
protocols {
igmp {
interface irb.1;
interface irb.2;
interface irb.3;
interface irb.4;
interface irb.5;
}
bgp {
group INT {
type internal;
local-address 192.168.2.1;
family evpn {
signaling;
}
local-as 65536;
neighbor 172.16.1.1;
}
}
ospf {
area 0.0.0.0 {
interface lo0.0 {
passive;
}
interface xe-0/0/1:0.0;
}
}
pim {
rp {
static {
address 172.16.1.1;
}
}
interface irb.1 {
distributed-dr;
}
interface irb.2 {
distributed-dr;
}
interface irb.3 {
distributed-dr;
}
interface irb.4 {
distributed-dr;
}
interface irb.5 {
distributed-dr;
}
}
evpn {
encapsulation vxlan;
multicast-mode ingress-replication;
extended-vni-list 1-5;
}
igmp-snooping {
vlan VLAN1 {
l2-querier {
source-address 10.1.1.2;
}
proxy;
}
vlan VLAN2 {
l2-querier {
source-address 10.2.1.2;
}
proxy;
}
vlan VLAN3 {
l2-querier {
source-address 10.3.1.2;
}
proxy;
}
vlan VLAN4 {
l2-querier {
source-address 10.4.1.2;
}
proxy;
}
vlan VLAN5 {
l2-querier {
source-address 10.5.1.2;
}
proxy;
}
}
}
policy-options {
policy-statement evpn-pplb {
from protocol evpn;
then {
load-balance per-packet;
}
}
}
switch-options {
vtep-source-interface lo0.0;
route-distinguisher 192.168.2.1:1;
vrf-target target:1:1;
}
vlans {
VLAN1 {
vlan-id 2;
l3-interface irb.2;
vxlan {
vni 2;
}
}
VLAN2 {
vlan-id 1;
l3-interface irb.1;
vxlan {
vni 1;
}
}
VLAN3 {
vlan-id 3;
l3-interface irb.3;
vxlan {
vni 3;
}
}
VLAN4 {
vlan-id 4;
l3-interface irb.4;
vxlan {
vni 4;
}
}
VLAN5 {
vlan-id 5;
l3-interface irb.5;
vxlan {
vni 5;
}
}
}
CE デバイスの設定
手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLIのナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスCEを設定するには、次の手順に従います。
集合型イーサネット論理インターフェイスの数を指定します。
[edit chassis] user@CE# set aggregated-devices ethernet device-count 2
インターフェイスを設定し、集合型イーサネットインターフェイスでLACPを有効にします。
[edit interfaces] user@CE# set xe-0/2/0 ether-options 802.3ad ae0 user@CE# set xe-0/2/1 ether-options 802.3ad ae0 user@CE# set ae0 aggregated ether-options lacp active user@CE# set ae0 aggregated ether-options lacp periodic fast user@CE# set ae1 aggregated ether-options lacp active user@CE# set ae1 aggregated ether-options lacp periodic fast
レイヤー 2 カスタマー ブリッジ ドメインと、そのドメインに関連付けられた VLAN を作成します。
[edit] user@CE# set vlans BD-1 vlan-id 1 user@CE# set vlans BD-2 vlan-id 2 user@CE# set vlans BD-3 vlan-id 3 user@CE# set vlans BD-4 vlan-id 4 user@CE# set vlans BD-5 vlan-id 5
指定されたVLAN識別子でタグ付けされたパケットを受信するためのトランクポートとしてCEドメインに含めるように、各インターフェイスを設定します。
[edit interfaces] user@CE# set xe-0/2/0 unit 0 family ethernet-switching interface-mode trunk user@CE# set xe-0/2/0 unit 0 family ethernet-switching vlan members 1-5 user@CE# set xe-0/2/1 unit 0 family ethernet-switching interface-mode trunk user@CE# set xe-0/2/1 unit 0 family ethernet-switching vlan members 1-5 user@CE# set ae0 unit 0 family ethernet-switching interface-mode trunk user@CE# set ae0 unit 0 family ethernet-switching vlan members 1-5 user@CE# set ae1 unit 0 family ethernet-switching interface-mode trunk user@CE# set ae1 unit 0 family ethernet-switching vlan members 1-5
業績
設定モードから、 show chassis コマンドと show interfaces コマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@CE# show chassis
aggregated-devices {
ethernet {
device-count 2;
}
}
user@CE# show interfaces
xe-0/2/0 {
ether-options {
802.3ad ae0;
}
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members 1-5;
}
}
}
}
xe-0/2/1 {
ether-options {
802.3ad ae0;
}
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members 1-5;
}
}
}
}
ae0 {
aggregated-ether-options {
lacp {
active;
periodic fast;
}
}
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members 1-5;
}
}
}
}
ae1 {
aggregated-ether-options {
lacp {
active;
periodic fast;
}
}
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members 1-5;
}
}
}
}
user@CE# show vlans
BD-1 {
vlan-id 1;
domain-type bridge;
}
BD-2 {
vlan-id 2;
domain-type bridge;
}
BD-3 {
vlan-id 3;
domain-type bridge;
}
BD-3 {
vlan-id 3;
domain-type bridge;
}
BD-4 {
vlan-id 4;
domain-type bridge;
}
BD-5 {
vlan-id 5;
domain-type bridge;
}
PE3の設定
手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLIのナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスPE3を設定するには:
インターフェイスを設定します。
[edit interfaces] user@PE3# set xe-0/0/0 enable user@PE3# set xe-0/0/0 unit 0 description “Connected to PE1” user@PE3# set xe-0/0/0 unit 0 family inet 192.0.2.2/24 user@PE3# set xe-0/0/1 unit 0 description “Connected to PE2” user@PE3# set xe-0/0/1 198.51.100.2/24 user@PE3# set lo0 unit 0 family inet address 172.16.1.1/32
各論理イーサネットインターフェイスを、指定されたVLAN識別子でタグ付けされたパケットを受信するためのトランクポートとして設定します。
[edit interfaces] user@PE3# set xe-0/0/0:1 enable user@PE3# set xe-0/0/0:1 unit 0 family ethernet-switching interface-mode trunk user@PE3# set xe-0/0/0:1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ] user@PE3# set xe-0/0/1:1 enable user@PE3# set xe-0/0/1:1 unit 0 family ethernet-switching interface-mode trunk user@PE3# set xe-0/0/1:1 unit 0 family ethernet-switching vlan members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ]
IRB インターフェイスと仮想ゲートウェイ アドレスを設定します。
[edit interfaces] user@PE3# set irb unit 1 family inet address 10.1.1.5/24 virtual-gateway-address 10.1.1.10 user@PE3# set irb unit 2 family inet address 10.2.1.5/24 virtual-gateway-address 10.2.1.10 user@PE3# set irb unit 3 family inet address 10.3.1.5/24 virtual-gateway-address 10.3.1.10 user@PE3# set irb unit 4 family inet address 10.4.1.5/24 virtual-gateway-address 10.4.1.10 user@PE3# set irb unit 5 family inet address 10.5.1.5/24 virtual-gateway-address 10.5.1.10
自律システムを設定します。
[edit routing-options] user@PE3# set router-id 172.16.1.1 user@PE3# set autonomous-system 65536
OSPF の設定
[edit protocols ospf] user@PE3# set area 0.0.0.0 interface all user@PE3# set ospf area 0.0.0.0 fxp0.0 disable
PE1とPE2でBGP内部ピアリングを設定します。
[edit protocols bgp] user@PE3# set group INT type internal user@PE3# set group INT local-address 172.16.1.1 user@PE3# set group INT family evpn signaling user@PE3# set group INT local-as 65536 user@PE3# set group INT neighbor 192.168.1.1 user@PE3# set group INT neighbor 192.168.2.1
VLAN を構成します。
[edit vlans] user@PE3# set VLAN1 vlan-id 1 user@PE3# set VLAN1 l3-interface irb.1 user@PE3# set VLAN1 vxlan vni 1 user@PE3# set VLAN2 vlan-id 2 user@PE3# set VLAN2 l3-interface irb.2 user@PE3# set VLAN2 vxlan vni 2 user@PE3# set VLAN3 vlan-id 3 user@PE3# set VLAN3 l3-interface irb.3 user@PE3# set VLAN3 vxlan vni 3 user@PE3# set VLAN4 vlan-id 4 user@PE3# set VLAN4 l3-interface irb.4 user@PE3# set VLAN4 vxlan vni 4 user@PE3# set VLAN5 vlan-id 5 user@PE3# set VLAN5 l3-interface irb.5 user@PE3# set VLAN2 vxlan vni 5
EVPN を有効にします。
[edit protocols evpn] user@PE3# set encapsulation vxlan user@PE3# set multicast-mode ingress-replication user@PE3# set extended-vni-list 1-5
エクスポート・ルーティング・ルーティングポリシーを構成して、EVPNトラフィックを負荷分散します。
[edit policy-options] user@PE3# set policy-statement evpn-pplb from protocol evpn user@PE3# set policy-statement evpn-pplb then load-balance per packet [edit routing-options] user@PE3# set forwarding-table export evpn-pplb
VXLAN トンネルの送信元インターフェイスを設定します。
[edit switch-options] user@PE3# set vtep-source-interface lo0.0 user@PE3# set route-distinguisher 172.16.1.1:1 user@PE3# set vrf-target target:1:1
IRB インターフェイスで IGMP を有効にします。
[edit protocols igmp] user@PE1# set interface irb.1 user@PE1# set interface irb.2 user@PE1# set interface irb.3 user@PE1# set interface irb.4 user@PE1# set interface irb.5
IRB インターフェイスで IGMP スヌーピングを有効にします。
[edit protocols igmp-snooping vlan] user@PE1# set VLAN1 l2-querier source-address 10.1.1.5 user@PE1# set VLAN1 proxy user@PE1# set VLAN2 l2-querier source-address 10.2.1.5 user@PE1# set VLAN2 proxy user@PE1# set VLAN3 l2-querier source address 10.3.1.5 user@PE1# set VLAN3 proxy user@PE1# set VLAN4 l2-querier source-address 10.4.1.5 user@PE1# set VLAN4 proxy user@PE1# set VLAN5 l2-querier source-address 10.5.1.5 user@PE1# set VLAN5 proxy
ローカル ランデブー ポイントを定義し、IRB インターフェイスで を有効にすることで PIM を設定します。
手記:この手順は、VLAN 間転送を設定する場合にのみ必要です。PE デバイスが VLAN 内転送のみを実行している場合は、この手順を省略します。
[edit protocols pim] user@PE1# set rp local address 172.16.1:1 user@PE1# set interface irb.1 distrbuted-dr user@PE1# set interface irb.2 distributed-dr user@PE1# set interface irb.3 distributed-dr user@PE1# set interface irb.4 distributed-dr user@PE1# set interface irb.5 distributed-dr
業績
設定モードから、show chassis、show interfacesshow routing-options、show protocols、show vlans、show policy-options、およびshow switch-optionsコマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@PE3# show
interfaces {
xe-0/0/0 {
enable;
unit 0 {
description "Connected to PE1";
family inet {
address 192.0.2.2/24;
}
}
}
xe-0/0/1 {
enable;
unit 0 {
description “Connected to PE2”;
family inet {
address 198.51.100.2/24
}
}
}
xe-0/0/0:1 {
enable;
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ];
}
}
}
}
xe-0/0/1:1 enable;
unit 0 {
family ethernet-switching {
interface-mode trunk;
vlan {
members [ VLAN1 VLAN2 VLAN3 VLAN4 VLAN5 ];
}
}
}
}
irb {
unit 1 {
family inet {
address 10.1.1.5/24 {
virtual-gateway-address 10.1.1.10;
}
}
}
unit 2 {
family inet {
address 10.2.1.5/24 {
virtual-gateway-address 10.2.1.10;
}
}
}
unit 3 {
family inet {
address 10.3.1.5/24 {
virtual-gateway-address 10.3.1.10;
}
}
}
unit 4 {
family inet {
address 10.4.1.5/24 {
virtual-gateway-address 10.4.1.10;
}
}
}
unit 5 {
family inet {
address 10.5.1.5/24 {
virtual-gateway-address 10.5.1.10;
}
}
}
}
lo0 {
unit 0 {
family inet {
address 172.16.1.1/32;
}
}
}
}
routing-options {
router-id 172.16.1.1;
autonomous-system 65536
forwarding-table {
export evpn-pplb;
}
}
protocols {
igmp {
interface irb.1;
interface irb.2;
interface irb.3;
interface irb.4;
interface irb.5;
}
bgp {
group INT {
type internal;
local-address 172.16.1.1;
family evpn {
signaling;
}
local-as 65546;
neighbor 192.168.1.1;
neighbor 192.168.2.1;
}
}
ospf {
area 0.0.0.0 {
interface all ;
interface fxp0.0;
disable;
}
}
}
pim {
rp {
local {
address 172.16.1.1;
}
}
interface irb.1 {
distributed-dr;
}
interface irb.2 {
distributed-dr;
}
interface irb.3 {
distributed-dr;
}
interface irb.4 {
distributed-dr;
}
interface irb.5 {
distributed-dr;
}
}
evpn {
encapsulation vxlan;
multicast-mode ingress-replication;
extended-vni-list 1-5;
}
igmp-snooping {
vlan VLAN1 {
l2-querier {
source-address 10.1.1.5;
}
proxy;
}
vlan VLAN2 {
l2-querier {
source-address 10.2.1.5;
}
proxy;
}
vlan VLAN3 {
l2-querier {
source-address 10.3.1.5;
}
proxy;
}
vlan VLAN4 {
l2-querier {
source-address 10.4.1.5;
}
proxy;
}
vlan VLAN5 {
l2-querier {
source-address 10.5.1.5;
}
proxy;
}
}
}
policy-options {
policy-statement evpn-pplb {
from protocol evpn;
then {
load-balance per-packet;
}
}
}
switch-options {
vtep-source-interface lo0.0;
route-distinguisher 172.16.1.1:1;
vrf-target target:1:1;
}
vlans {
VLAN1 {
vlan-id 1;
l3-interface irb.1;
vxlan {
vni 1;
}
}
VLAN2 {
vlan-id 2;
l3-interface irb.2;
vxlan {
vni 2;
}
}
VLAN3 {
vlan-id 3;
l3-interface irb.3;
vxlan {
vni 3;
}
}
VLAN4 {
vlan-id 4;
l3-interface irb.4;
vxlan {
vni 4;
}
}
VLAN5 {
vlan-id 5;
l3-interface irb.5;
vxlan {
vni 5;
}
}
}
検証
設定が正常に機能していることを確認します。
IGMP メッセージが同期されていることを確認する
目的
IGMP の参加メッセージと脱退メッセージが同期されていることを各 PE で確認します。
アクション
動作モードから、 show evpn instance extensive コマンドを実行します。
user@PE1> show evpn instance extensive
Instance: default-switch
Route Distinguisher: 192.168.1.1:1
Encapsulation type: VXLAN
MAC database status Local Remote
MAC advertisements: 25 40
MAC+IP advertisements: 10 15
Default gateway MAC advertisements: 10 10
Number of local interfaces: 3 (3 up)
Interface name ESI Mode Status AC-Role
ae0.0 00:11:11:11:11:11:11:11:11:11 all-active Up Root
ae1.0 00:22:22:22:22:22:22:22:22:22 all-active Up Root
xe-0/0/1:1.0 00:00:00:00:00:00:00:00:00:00 single-homed Up Root
Number of IRB interfaces: 5 (5 up)
Interface name VLAN VNI Status L3 context
irb.1 1 Up master
irb.2 2 Up master
irb.3 3 Up master
irb.4 4 Up master
irb.5 5 Up master
Number of bridge domains: 5
VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label SG sync IM core nexthop
1 1 3 3 irb.1 Extended Enabled 1 Enabled 2097159
2 2 3 3 irb.2 Extended Enabled 2 Enabled 2097161
3 3 3 3 irb.3 Extended Enabled 3 Enabled 2097162
4 4 3 3 irb.4 Extended Enabled 4 Enabled 2097163
5 5 3 3 irb.5 Extended Enabled 5 Enabled 2097164
Number of neighbors: 2
Address MAC MAC+IP AD IM ES Leaf-label
192.168.2.1 25 10 9 5 0
172.16.1.1 15 10 1 5 0
Number of ethernet segments: 7
ESI: 00:11:11:11:11:11:11:11:11:11
Status: Resolved by IFL ae0.0
Local interface: ae0.0, Status: Up/Forwarding
Number of remote PEs connected: 1
Remote PE MAC label Aliasing label Mode
192.168.2.1 5 0 all-active
DF Election Algorithm: MOD based
Designated forwarder: 192.168.2.1
Backup forwarder: 192.168.1.1
Last designated forwarder update: Jul 13 01:22:45
ESI: 00:22:22:22:22:22:22:22:22:22
Status: Resolved by IFL ae1.0
Local interface: ae1.0, Status: Up/Forwarding
Number of remote PEs connected: 1
Remote PE MAC label Aliasing label Mode
192.168.2.1 5 0 all-active
DF Election Algorithm: MOD based
Designated forwarder: 192.168.2.1
Backup forwarder: 192.168.1.1
Last designated forwarder update: Jul 13 21:02:47
ESI: 05:00:00:00:64:00:00:00:01:00
Local interface: irb.1, Status: Up/Forwarding
Number of remote PEs connected: 2
Remote PE MAC label Aliasing label Mode
192.168.2.1 1 0 all-active
172.16.1.1 1 0 single-homed
ESI: 05:00:00:00:64:00:00:00:02:00
Local interface: irb.2, Status: Up/Forwarding
Number of remote PEs connected: 2
Remote PE MAC label Aliasing label Mode
192.168.2.1 2 0 all-active
172.16.1.1 2 0 single-homed
ESI: 05:00:00:00:64:00:00:00:03:00
Local interface: irb.3, Status: Up/Forwarding
Number of remote PEs connected: 2
Remote PE MAC label Aliasing label Mode
192.168.2.1 3 0 all-active
172.16.1.1 3 0 single-homed
ESI: 05:00:00:00:64:00:00:00:04:00
Local interface: irb.4, Status: Up/Forwarding
Number of remote PEs connected: 2
Remote PE MAC label Aliasing label Mode
192.168.2.1 4 0 all-active
172.16.1.1 4 0 single-homed
ESI: 05:00:00:00:64:00:00:00:05:00
Local interface: irb.5, Status: Up/Forwarding
Number of remote PEs connected: 2
Remote PE MAC label Aliasing label Mode
172,168.1.1 5 0 all-active
192.168.2.1 5 0 all-active
Router-ID: 192.168.1.1
意味
SG SyncがEnabledされ、IM Core next-hopフィールドに有効なルートが表示されます。
送信元アドレスが学習され、マルチキャスト トラフィックが転送されていることを確認する
目的
マルチキャスト受信者が VXLAN トンネルの送信元インターフェイスを学習していることを、各 PE で確認します。
アクション
動作モードから、 show evpn igmp-snooping database extensive l2-domain-id 1 コマンドと show igmp snooping evpn database vlan VLAN1 コマンドを入力します。
これらのコマンドは、VLAN1 の出力を表示します。これらを使用して、設定された各VLANの出力を表示できます
動作モードから、 show evpn multicast-snooping next-hops を入力し、ダウンストリーム インターフェイスが学習されたことを確認します。
user@PE1> show evpn igmp-snooping database extensive
l2-domain-id 1
Instance: default-switch
VN Identifier: 1
Group IP: 225.1.1.1
Access OIF Count: 2
Interface ESI Local Remote
ae1.0 00:22:22:22:22:22:22:22:22:22 1 0
ae0.0 00:11:11:11:11:11:11:11:11:11 0 1
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.2
Access OIF Count: 2
Interface ESI Local Remote
ae1.0 00:22:22:22:22:22:22:22:22:22 1 0
ae0.0 00:11:11:11:11:11:11:11:11:11 0 1
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.3
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 1 0
ae1.0 00:22:22:22:22:22:22:22:22:22 1 0
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.4
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 1 0
ae1.0 00:22:22:22:22:22:22:22:22:22 0 1
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.5
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 1 0
ae1.0 00:22:22:22:22:22:22:22:22:22 1 0
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.6
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 0 1
ae1.0 00:22:22:22:22:22:22:22:22:22 1 0
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.7
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 0 1
ae1.0 00:22:22:22:22:22:22:22:22:22 1 0
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.8
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 1 0
ae1.0 00:22:22:22:22:22:22:22:22:22 0 1
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.9
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 1 0
ae1.0 00:22:22:22:22:22:22:22:22:22 0 1
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
Group IP: 225.1.1.10
Access OIF Count: 2
Interface ESI Local Remote
ae0.0 00:11:11:11:11:11:11:11:11:11 0 1
ae1.0 00:22:22:22:22:22:22:22:22:22 0 1
Remote OIF Count: 2, Core NH: 2097159
Interface Nbr
vtep.32770 192.168.2.1
vtep.32769 172.16.1.1
user@PE1> show igmp snooping evpn database vlan
VLAN1
Instance: default-switch
Bridge-Domain: VLAN1, VN Identifier: 1
Group IP: 225.1.1.1
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae0.0 0 1
xe-0/0/1:1.0 1 0
ae1.0 1 0
Group IP: 225.1.1.2
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae0.0 0 1
xe-0/0/1:1.0 1 0
ae1.0 1 0
Group IP: 225.1.1.3
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
xe-0/0/1:1.0 1 0
ae1.0 1 0
ae0.0 1 0
Group IP: 225.1.1.4
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae1.0 0 1
xe-0/0/1:1.0 1 0
ae0.0 1 0
Group IP: 225.1.1.5
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae1.0 1 0
xe-0/0/1:1.0 1 0
ae0.0 1 0
Group IP: 225.1.1.6
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae0.0 0 1
ae1.0 1 0
xe-0/0/1:1.0 1 0
Group IP: 225.1.1.7
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae0.0 0 1
ae1.0 1 0
xe-0/0/1:1.0 1 0
Group IP: 225.1.1.8
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae1.0 0 1
xe-0/0/1:1.0 1 0
ae0.0 1 0
Group IP: 225.1.1.9
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae1.0 0 1
xe-0/0/1:1.0 1 0
ae0.0 1 0
Group IP: 225.1.1.10
Core NH: 2097159
Access OIF Count: 3
Interface Local Remote
ae1.0 0 1
ae0.0 0 1
xe-0/0/1:1.0 1 0
user@PE1> show evpn multicast-snooping next-hops
Family: INET
ID Refcount KRefcount Downstream interface Addr
2097159 3 1 vtep.32769
vtep.32770
2097161 3 1 vtep.32769
vtep.32770
2097162 3 1 vtep.32769
vtep.32770
2097163 3 1 vtep.32769
vtep.32770
2097164 3 1 vtep.32769
vtep.32770