例:個別のネットワーク パス上でマルチキャスト トラフィックの冗長性を提供するためのマルチトポロジー ルーティングの設定
この例では、MTR(マルチトポロジ ルーティング)を使用して、別々のネットワーク パス上でマルチキャスト トラフィックの冗長性を提供する方法を示しています。つまり、2 つのマルチキャスト ソースが同じマルチキャスト ストリームを送信しますが、リンク障害が発生した場合の冗長性を確保するために、2 つのストリームは、分離されたパスを使用します。
現時点では、PIM に MTR 拡張を使用するための標準は定義されていないことに注意してください。
要件
この例では、Junos OS リリース 9.0 以降がプロバイダ コア デバイスで実行されている必要があります。
概要
冗長マルチキャスト ストリーム、S1 および S2 を提供する各ソースが異なる IP サブネット アドレスを持っていることを想定しています。各ソースは、G1 と G2 という異なるグループを使用してマルチキャスト トラフィックを送信します。さらに、S1 と S2 が同じ顧客エッジ(CE)デバイスに接続されており、BGP を使用してプロバイダ エッジ(PE)ルーターにルートをアナウンスすると仮定します。
トポロジー内のすべてのデバイスに対する完全な設定セットについては、「 CLI クイック設定」を参照してください。この例の残りの部分は、デバイス CE1 とデバイス PE1 に焦点を当てています。
図 1 は、サンプル トポロジーを示しています。
構成
CLI クイック設定
この例を迅速に設定するには、次のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致するために必要な詳細情報を変更してから、コマンドを階層レベルで [edit]
CLI にコピーアンドペーストします。
デバイス CE1
set interfaces fe-0/1/0 fastether-options loopback set interfaces fe-0/1/0 unit 0 family inet address 11.19.130.1/24 set interfaces fe-0/1/0 unit 0 family inet address 11.19.131.1/24 set interfaces fe-0/1/0 unit 0 family inet address 11.19.132.1/24 set interfaces ge-1/2/0 unit 1 description to-PE1 set interfaces ge-1/2/0 unit 1 family inet address 10.0.0.1/30 set interfaces lo0 unit 97 family inet address 10.255.165.97/32 primary set protocols bgp group ebgp type external set protocols bgp group ebgp local-address 10.0.0.1 set protocols bgp group ebgp family inet unicast set protocols bgp group ebgp family inet multicast set protocols bgp group ebgp export set_community set protocols bgp group ebgp export inject_directs set protocols bgp group ebgp peer-as 100 set protocols bgp group ebgp neighbor 10.0.0.2 set protocols pim interface fe-0/1/0.0 mode sparse set protocols pim interface ge-1/2/0.1 mode sparse set policy-options policy-statement inject_directs term a from protocol direct set policy-options policy-statement inject_directs term a from interface fe-0/1/0.0 set policy-options policy-statement inject_directs term a then next policy set policy-options policy-statement inject_directs term a then accept set policy-options policy-statement inject_directs term b then reject set policy-options policy-statement set_community term a from route-filter 11.19.130.0/24 exact set policy-options policy-statement set_community term a from route-filter 11.19.131.0/24 exact set policy-options policy-statement set_community term a then community add red set policy-options policy-statement set_community term a then accept set policy-options policy-statement set_community term b from route-filter 11.19.132.0/24 exact set policy-options policy-statement set_community term b from route-filter 11.19.133.0/24 exact set policy-options policy-statement set_community term b then community add blue set policy-options policy-statement set_community term b then accept set policy-options policy-statement set_community term default then accept set policy-options community blue members target:50:50 set policy-options community red members target:40:40 set routing-options interface-routes rib-group inet if-rib set routing-options static route 10.0.0.0/16 next-hop 10.0.0.2 set routing-options rib-groups inet.2 import-rib inet.0 set routing-options rib-groups if-rib import-rib inet.0 set routing-options rib-groups if-rib import-rib inet.2 set routing-options rib-groups if-rib import-policy inject_directs set routing-options autonomous-system 101
デバイス CE2
set interfaces fe-0/1/1 unit 0 set interfaces ge-1/2/0 unit 46 description to-PE2 set interfaces ge-1/2/0 unit 46 family inet address 10.0.0.46/30 set interfaces lo0 unit 20 family inet address 10.255.165.20/32 primary set protocols bgp group ebgp type external set protocols bgp group ebgp local-address 10.0.0.46 set protocols bgp group ebgp peer-as 100 set protocols bgp group ebgp neighbor 10.0.0.45 set routing-options autonomous-system 102
デバイス PE1
set interfaces ge-1/2/0 unit 2 description to-CE1 set interfaces ge-1/2/0 unit 2 family inet address 10.0.0.2/30 set interfaces ge-1/2/1 unit 6 description to-P1 set interfaces ge-1/2/1 unit 6 family inet address 10.0.0.6/30 set interfaces ge-1/2/2 unit 9 description to-P3 set interfaces ge-1/2/2 unit 9 family inet address 10.0.0.9/30 set interfaces lo0 unit 93 family inet address 10.255.165.93/32 primary set interfaces lo0 unit 93 family inet address 1.1.1.30/32 set interfaces lo0 unit 93 family inet address 2.2.2.30/32 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.165.93 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp family inet multicast set protocols bgp group ibgp export nhs_test set protocols bgp group ibgp export nhs_inet0_self set protocols bgp group ibgp neighbor 10.255.165.111 set protocols bgp group ibgp neighbor 10.255.165.203 set protocols bgp group ibgp neighbor 10.255.165.113 set protocols bgp group ibgp neighbor 10.255.165.95 set protocols bgp group ibgp neighbor 10.255.165.99 set protocols bgp group ebgp type external set protocols bgp group ebgp local-address 10.0.0.2 set protocols bgp group ebgp family inet unicast set protocols bgp group ebgp family inet multicast set protocols bgp group ebgp peer-as 101 set protocols bgp group ebgp neighbor 10.0.0.1 set protocols ospf topology red topology-id 126 set protocols ospf topology blue topology-id 52 set protocols ospf area 0.0.0.0 interface ge-1/2/1.6 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/1.6 topology blue metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/1.6 topology red set protocols ospf area 0.0.0.0 interface ge-1/2/2.9 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/2.9 topology red metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/2.9 topology blue set protocols ospf area 0.0.0.0 interface lo0.93 passive set protocols ospf area 0.0.0.0 interface 1.1.1.30 topology red set protocols ospf area 0.0.0.0 interface 1.1.1.30 topology blue disable set protocols ospf area 0.0.0.0 interface 2.2.2.30 topology blue set protocols ospf area 0.0.0.0 interface 2.2.2.30 topology red disable set protocols pim rib-group inet mcast-rib set protocols pim interface ge-1/2/0.2 mode sparse set protocols pim interface ge-1/2/1.6 mode sparse set protocols pim interface ge-1/2/2.9 mode sparse set policy-options policy-statement nhs_inet0_self term a from protocol bgp set policy-options policy-statement nhs_inet0_self term a from rib inet.0 set policy-options policy-statement nhs_inet0_self term a then next-hop self set policy-options policy-statement nhs_test term a from protocol bgp set policy-options policy-statement nhs_test term a from community red set policy-options policy-statement nhs_test term a then next-hop 1.1.1.30 set policy-options policy-statement nhs_test term a then next policy set policy-options policy-statement nhs_test term a then accept set policy-options policy-statement nhs_test term b from protocol bgp set policy-options policy-statement nhs_test term b from community blue set policy-options policy-statement nhs_test term b then next-hop 2.2.2.30 set policy-options policy-statement nhs_test term b then next policy set policy-options policy-statement nhs_test term b then accept set policy-options policy-statement nhs_test term c then next-hop self set policy-options community blue members target:50:50 set policy-options community red members target:40:40 set routing-options rib-groups mcast-rib import-rib inet.2 set routing-options autonomous-system 100 set routing-options resolution rib inet.2 resolution-ribs :red.inet.0 set routing-options resolution rib inet.2 resolution-ribs :blue.inet.0 set routing-options topologies family inet topology red set routing-options topologies family inet topology blue
デバイス PE2
set interfaces ge-1/2/0 unit 38 description to-P2 set interfaces ge-1/2/0 unit 38 family inet address 10.0.0.38/30 set interfaces ge-1/2/1 unit 42 description to-P4 set interfaces ge-1/2/1 unit 42 family inet address 10.0.0.42/30 set interfaces ge-1/2/2 unit 45 description to-CE2 set interfaces ge-1/2/2 unit 45 family inet address 10.0.0.45/30 set interfaces lo0 unit 203 family inet address 10.255.165.203/32 primary set interfaces lo0 unit 203 family inet address 1.1.1.40/32 set interfaces lo0 unit 203 family inet address 2.2.2.40/32 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.165.203 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp family inet multicast set protocols bgp group ibgp export nhs_test set protocols bgp group ibgp export nhs_inet0_self set protocols bgp group ibgp neighbor 10.255.165.111 set protocols bgp group ibgp neighbor 10.255.165.93 set protocols bgp group ibgp neighbor 10.255.165.113 set protocols bgp group ibgp neighbor 10.255.165.95 set protocols bgp group ibgp neighbor 10.255.165.99 set protocols bgp group ebgp type external set protocols bgp group ebgp local-address 10.0.0.45 set protocols bgp group ebgp family inet unicast set protocols bgp group ebgp family inet multicast set protocols bgp group ebgp peer-as 102 set protocols bgp group ebgp neighbor 10.0.0.46 set protocols ospf topology red topology-id 126 set protocols ospf topology blue topology-id 52 set protocols ospf area 0.0.0.0 interface ge-1/2/0.38 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/0.38 topology blue metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/0.38 topology red set protocols ospf area 0.0.0.0 interface ge-1/2/1.42 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/1.42 topology red metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/1.42 topology blue set protocols ospf area 0.0.0.0 interface lo0.203 passive set protocols ospf area 0.0.0.0 interface 1.1.1.40 topology red set protocols ospf area 0.0.0.0 interface 1.1.1.40 topology blue disable set protocols ospf area 0.0.0.0 interface 2.2.2.40 topology red disable set protocols ospf area 0.0.0.0 interface 2.2.2.40 topology blue set protocols pim rib-group inet mcast-rib set protocols pim interface ge-1/2/0.38 mode sparse set protocols pim interface ge-1/2/1.42 mode sparse set protocols pim interface ge-1/2/2.45 mode sparse set policy-options policy-statement nhs then next-hop self set policy-options policy-statement nhs_inet0_self term a from protocol bgp set policy-options policy-statement nhs_inet0_self term a from rib inet.0 set policy-options policy-statement nhs_inet0_self term a then next-hop self set policy-options policy-statement nhs_test term a from protocol bgp set policy-options policy-statement nhs_test term a from community red set policy-options policy-statement nhs_test term a then next-hop 1.1.1.40 set policy-options policy-statement nhs_test term a then next policy set policy-options policy-statement nhs_test term a then accept set policy-options policy-statement nhs_test term b from protocol bgp set policy-options policy-statement nhs_test term b from community blue set policy-options policy-statement nhs_test term b then next-hop 2.2.2.40 set policy-options policy-statement nhs_test term b then next policy set policy-options policy-statement nhs_test term b then accept set policy-options policy-statement nhs_test term c then next-hop self set policy-options community blue members target:50:50 set policy-options community red members target:40:40 set routing-options rib-groups mcast-rib import-rib inet.2 set routing-options autonomous-system 100 set routing-options resolution rib inet.2 resolution-ribs :red.inet.0 set routing-options resolution rib inet.2 resolution-ribs :blue.inet.0 set routing-options topologies family inet topology red set routing-options topologies family inet topology blue
デバイス P1
set interfaces ge-1/2/0 unit 5 description to-PE1 set interfaces ge-1/2/0 unit 5 family inet address 10.0.0.5/30 set interfaces ge-1/2/1 unit 13 description to-P3 set interfaces ge-1/2/1 unit 13 family inet address 10.0.0.13/30 set interfaces ge-1/2/2 unit 17 description to-P4 set interfaces ge-1/2/2 unit 17 family inet address 10.0.0.17/30 set interfaces ge-1/2/3 unit 33 description to-P2 set interfaces ge-1/2/3 unit 33 family inet address 10.0.0.33/30 set interfaces lo0 unit 99 family inet address 10.255.165.99/32 primary set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.165.99 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp family inet multicast set protocols bgp group ibgp neighbor 10.255.165.93 set protocols bgp group ibgp neighbor 10.255.165.111 set protocols bgp group ibgp neighbor 10.255.165.203 set protocols bgp group ibgp neighbor 10.255.165.95 set protocols bgp group ibgp neighbor 10.255.165.113 set protocols ospf topology red topology-id 126 set protocols ospf topology blue topology-id 52 set protocols ospf area 0.0.0.0 interface ge-1/2/3.33 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/3.33 topology red set protocols ospf area 0.0.0.0 interface ge-1/2/3.33 topology blue metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/2.17 set protocols ospf area 0.0.0.0 interface ge-1/2/1.13 set protocols ospf area 0.0.0.0 interface ge-1/2/0.5 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/0.5 topology red set protocols ospf area 0.0.0.0 interface ge-1/2/0.5 topology blue metric 1 set protocols ospf area 0.0.0.0 interface lo0.99 passive set protocols pim rib-group inet mcast-rib set protocols pim interface ge-1/2/3.33 mode sparse set protocols pim interface ge-1/2/2.17 mode sparse set protocols pim interface ge-1/2/1.13 mode sparse set protocols pim interface ge-1/2/0.5 mode sparse set routing-options rib-groups mcast-rib import-rib inet.2 set routing-options autonomous-system 100 set routing-options topologies family inet topology red set routing-options topologies family inet topology blue
デバイス P2
set interfaces ge-1/2/0 unit 22 description to-P3 set interfaces ge-1/2/0 unit 22 family inet address 10.0.0.22/30 set interfaces ge-1/2/1 unit 25 description to-P4 set interfaces ge-1/2/1 unit 25 family inet address 10.0.0.25/30 set interfaces ge-1/2/2 unit 34 description to-P1 set interfaces ge-1/2/2 unit 34 family inet address 10.0.0.34/30 set interfaces ge-1/2/3 unit 37 description to-PE2 set interfaces ge-1/2/3 unit 37 family inet address 10.0.0.37/30 set interfaces lo0 unit 113 family inet address 10.255.165.113/32 primary set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.165.113 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp family inet multicast set protocols bgp group ibgp neighbor 10.255.165.93 set protocols bgp group ibgp neighbor 10.255.165.111 set protocols bgp group ibgp neighbor 10.255.165.203 set protocols bgp group ibgp neighbor 10.255.165.95 set protocols bgp group ibgp neighbor 10.255.165.99 set protocols ospf topology red topology-id 126 set protocols ospf topology blue topology-id 52 set protocols ospf area 0.0.0.0 interface ge-1/2/2.34 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/2.34 topology red set protocols ospf area 0.0.0.0 interface ge-1/2/2.34 topology blue metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/0.22 set protocols ospf area 0.0.0.0 interface ge-1/2/1.25 set protocols ospf area 0.0.0.0 interface ge-1/2/3.37 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/3.37 topology red set protocols ospf area 0.0.0.0 interface ge-1/2/3.37 topology blue metric 1 set protocols ospf area 0.0.0.0 interface lo0.113 passive set protocols pim rib-group inet mcast-rib set protocols pim interface ge-1/2/2.34 mode sparse set protocols pim interface ge-1/2/0.22 mode sparse set protocols pim interface ge-1/2/1.25 mode sparse set protocols pim interface ge-1/2/3.37 mode sparse set routing-options rib-groups mcast-rib import-rib inet.2 set routing-options autonomous-system 100 set routing-options topologies family inet topology red set routing-options topologies family inet topology blue
デバイス P3
set interfaces ge-1/2/0 unit 10 description to-PE1 set interfaces ge-1/2/0 unit 10 family inet address 10.0.0.10/30 set interfaces ge-1/2/1 unit 14 description to-P1 set interfaces ge-1/2/1 unit 14 family inet address 10.0.0.14/30 set interfaces ge-1/2/2 unit 21 description to-P2 set interfaces ge-1/2/2 unit 21 family inet address 10.0.0.21/30 set interfaces ge-1/2/3 unit 29 description to-P4 set interfaces ge-1/2/3 unit 29 family inet address 10.0.0.29/30 set interfaces lo0 unit 111 family inet address 10.255.165.111/32 primary set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.165.111 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp family inet multicast set protocols bgp group ibgp neighbor 10.255.165.93 set protocols bgp group ibgp neighbor 10.255.165.113 set protocols bgp group ibgp neighbor 10.255.165.203 set protocols bgp group ibgp neighbor 10.255.165.95 set protocols bgp group ibgp neighbor 10.255.165.99 set protocols ospf topology red topology-id 126 set protocols ospf topology blue topology-id 52 set protocols ospf area 0.0.0.0 interface ge-1/2/3.29 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/3.29 topology red metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/3.29 topology blue set protocols ospf area 0.0.0.0 interface ge-1/2/2.21 set protocols ospf area 0.0.0.0 interface ge-1/2/1.14 set protocols ospf area 0.0.0.0 interface ge-1/2/0.10 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/0.10 topology red metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/0.10 topology blue set protocols ospf area 0.0.0.0 interface lo0.111 passive set protocols pim rib-group inet mcast-rib set protocols pim interface ge-1/2/3.29 mode sparse set protocols pim interface ge-1/2/2.21 mode sparse set protocols pim interface ge-1/2/1.14 mode sparse set protocols pim interface ge-1/2/0.10 mode sparse set routing-options rib-groups mcast-rib import-rib inet.2 set routing-options autonomous-system 100 set routing-options topologies family inet topology red set routing-options topologies family inet topology blue
デバイス P4
set interfaces ge-1/2/0 unit 18 description to-P1 set interfaces ge-1/2/0 unit 18 family inet address 10.0.0.18/30 set interfaces ge-1/2/1 unit 26 description to-P2 set interfaces ge-1/2/1 unit 26 family inet address 10.0.0.26/30 set interfaces ge-1/2/2 unit 30 description to-P3 set interfaces ge-1/2/2 unit 30 family inet address 10.0.0.30/30 set interfaces ge-1/2/3 unit 41 description to-PE2 set interfaces ge-1/2/3 unit 41 family inet address 10.0.0.41/30 set interfaces lo0 unit 95 family inet address 10.255.165.95/32 primary set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.165.95 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp family inet multicast set protocols bgp group ibgp neighbor 10.255.165.93 set protocols bgp group ibgp neighbor 10.255.165.113 set protocols bgp group ibgp neighbor 10.255.165.203 set protocols bgp group ibgp neighbor 10.255.165.111 set protocols bgp group ibgp neighbor 10.255.165.99 set protocols ospf topology red topology-id 126 set protocols ospf topology blue topology-id 52 set protocols ospf area 0.0.0.0 interface ge-1/2/2.30 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/2.30 topology red metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/2.30 topology blue set protocols ospf area 0.0.0.0 interface ge-1/2/0.18 set protocols ospf area 0.0.0.0 interface ge-1/2/1.26 set protocols ospf area 0.0.0.0 interface ge-1/2/3.41 metric 10 set protocols ospf area 0.0.0.0 interface ge-1/2/3.41 topology red metric 1 set protocols ospf area 0.0.0.0 interface ge-1/2/3.41 topology blue set protocols ospf area 0.0.0.0 interface lo0.95 passive set protocols pim rib-group inet mcast-rib set protocols pim interface ge-1/2/2.30 mode sparse set protocols pim interface ge-1/2/0.18 mode sparse set protocols pim interface ge-1/2/1.26 mode sparse set protocols pim interface ge-1/2/3.41 mode sparse set routing-options rib-groups mcast-rib import-rib inet.2 set routing-options autonomous-system 100 set routing-options topologies family inet topology red set routing-options topologies family inet topology blue
デバイス CE1 の設定
手順
次の例では、設定階層のさまざまなレベルに移動する必要があります。CLI のナビゲーションの詳細については、『Junos OS CLI ユーザー ガイド』の「設定モードでの CLI エディターの使用」を参照してください。
デバイス CE1 を設定するには、次の手順に従います。
インターフェイスを設定します。
デモンストレーションの目的で、この例ではイーサネット インターフェイスをループバック モードにし、このループバック インターフェイス上で複数のアドレスを設定します。その後、アドレスは直接ルートとしてネットワークにアナウンスされます。これらのルートは、コミュニティがアタッチされた BGP ルートのグループをシミュレートします。
[edit interfaces] user@CE1# set fe-0/1/0 fastether-options loopback user@CE1# set fe-0/1/0 unit 0 family inet address 11.19.130.1/24 user@CE1# set fe-0/1/0 unit 0 family inet address 11.19.131.1/24 user@CE1# set fe-0/1/0 unit 0 family inet address 11.19.132.1/24 user@CE1# set ge-1/2/0 unit 1 description to-PE1 user@CE1# set ge-1/2/0 unit 1 family inet address 10.0.0.1/30 user@CE1# set lo0 unit 97 family inet address 10.255.165.97/32 primary
デバイス PE1 への外部 BGP(EBGP)接続を設定します。
マルチキャスト サーバーに最も近い CE ルーターは、EBGP を使用してマルチキャスト ソース IP アドレスを PE ルーターにアナウンスします。送信元アドレスは 、ファミリ inet ユニキャスト と ファミリー inet マルチキャストの両方でアナウンスされるため、BGP ルートがデフォルト ルーティング テーブル inet.0、マルチキャスト ルーティング テーブル inet.2 に追加されます。どちらのルート セットも PE ルーターによって IBGP にインジェクトされます。
[edit protocols bgp group ebgp] user@CE1# set type external user@CE1# set local-address 10.0.0.1 user@CE1# set family inet unicast user@CE1# set family inet multicast user@CE1# set peer-as 100 user@CE1# set neighbor 10.0.0.2
インターフェイスで PIM を設定します。
[edit protocols pim] user@CE1# set interface fe-0/1/0.0 mode sparse user@CE1# set interface ge-1/2/0.1 mode sparse
インターフェイス fe-0/1/0 で設定されたアドレスをアナウンスするルーティング ポリシーを設定します。
[edit policy-options policy-statement inject_directs] user@CE1# set term a from protocol direct user@CE1# set term a from interface fe-0/1/0.0 user@CE1# set term a then next policy user@CE1# set term a then accept user@CE1# set term b then reject
一部のルートに red コミュニティ属性を付け、その他のルートに blue コミュニティ属性をタグ付けするルーティング ポリシーを設定します。
CE ルーターは、EBGP を介して PE ルーターにルートをアドバタイズします。これらのルートは、コミュニティが 2 つの異なるグループに設定された BGP ファミリー inet マルチキャスト ルートとしてアドバタイズされます。ポリシーは、BGP ルートの 2 つのグループを識別します。
[edit policy-options policy-statement set_community term a] user@CE1# set from route-filter 11.19.130.0/24 exact user@CE1# set from route-filter 11.19.131.0/24 exact user@CE1# set then community add red user@CE1# set then accept [edit policy-options policy-statement set_community term b] user@CE1# set from route-filter 11.19.132.0/24 exact user@CE1# set from route-filter 11.19.133.0/24 exact user@CE1# set then community add blue user@CE1# set then accept [edit policy-options policy-statement set_community term default] user@CE1# set then accept [edit policy-options] user@CE1# set community blue members target:50:50 user@CE1# set community red members target:40:40
直接ルートが BGP にエクスポートされるように、 set_community エクスポート ポリシーを適用します。
inject_directs エクスポート ポリシーを適用して、インターフェイス fe-0/1/0 で設定されているアドレスをアナウンスします。
[edit protocols bgp group ebgp] user@CE1# set export set_community user@CE1# set export inject_directs
rib-group を使用して、コミュニティがアタッチされ、マルチキャスト ルートとしてアナウンスされた BGP ルートのグループをシミュレートします。
この設定によりマルチキャスト ルーティング テーブルが作成され、PIM はマルチキャスト ルーティング テーブル inet.2 を使用します。
[edit routing-options] user@CE1# set interface-routes rib-group inet if-rib user@CE1# set static route 10.0.0.0/16 next-hop 10.0.0.2 [edit routing-options rib-groups] user@CE1# set inet.2 import-rib inet.0 user@CE1# set if-rib import-rib inet.0 user@CE1# set if-rib import-rib inet.2 user@CE1# set if-rib import-policy inject_directs
自律システム(AS)番号を設定します。
[edit routing-options] user@CE1# set autonomous-system 101
結果
設定モードから、 、 show protocols
show policy-options
および コマンドをshow interfaces
入力して設定をshow routing-options
確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@CE1# show interfaces fe-0/1/0 { fastether-options { loopback; } unit 0 { family inet { address 11.19.130.1/24; address 11.19.131.1/24; address 11.19.132.1/24; } } } ge-1/2/0 { unit 1 { description to-PE1; family inet { address 10.0.0.1/30; } } } lo0 { unit 97 { family inet { address 10.255.165.97/32 { primary; } } } }
user@CE1# show protocols bgp { group ebgp { type external; local-address 10.0.0.1; family inet { unicast; multicast; } export [ set_community inject_directs ]; peer-as 100; neighbor 10.0.0.2; } } pim { interface fe-0/1/0.0 { mode sparse; } interface ge-1/2/0.1 { mode sparse; } }
user@CE1# show policy-options policy-statement inject_directs { term a { from { protocol direct; interface fe-0/1/0.0; } then { next policy; accept; } } term b { then reject; } } policy-statement set_community { term a { from { route-filter 11.19.130.0/24 exact; route-filter 11.19.131.0/24 exact; } then { community add red; accept; } } term b { from { route-filter 11.19.132.0/24 exact; route-filter 11.19.133.0/24 exact; } then { community add blue; accept; } } term default { then accept; } } community blue members target:50:50; community red members target:40:40;
user@CE1# show routing-options interface-routes { rib-group inet if-rib; } static { route 10.0.0.0/16 next-hop 10.0.0.2; } rib-groups { inet.2 { import-rib inet.0; } if-rib { import-rib [ inet.0 inet.2 ]; import-policy inject_directs; } } autonomous-system 101;
デバイスの設定が完了したら、設定モードから commit と入力します。
デバイス PE1 の設定
手順
次の例では、設定階層のさまざまなレベルに移動する必要があります。CLI のナビゲーションの詳細については、『Junos OS CLI ユーザー ガイド』の「設定モードでの CLI エディターの使用」を参照してください。
デバイス PE1 を設定するには、次の手順に従います。
インターフェイスを設定します。
[edit interfaces] user@PE1# set ge-1/2/0 unit 2 description to-CE1 user@PE1# set ge-1/2/0 unit 2 family inet address 10.0.0.2/30 user@PE1# set ge-1/2/1 unit 6 description to-P1 user@PE1# set ge-1/2/1 unit 6 family inet address 10.0.0.6/30 user@PE1# set ge-1/2/2 unit 9 description to-P3 user@PE1# set ge-1/2/2 unit 9 family inet address 10.0.0.9/30 user@PE1# set lo0 unit 93 family inet address 10.255.165.93/32 primary
セカンダリ アドレス 1.1.1.30 および 2.2.2.30 を設定します。
IBGP ルートをインジェクトする各ルーター上の各トポロジには、特定のプロトコルのネクスト ホップ IP アドレスが必要です。ルーター上で複数のセカンダリ ループバック IP アドレスを、プロトコルのネクスト ホップ アドレスとして使用するように設定できます。この設定は、非プライベート IP アドレス 1.1.1.30/32 と 2.2.2.30/32 をそれぞれ red トポロジと blue トポロジで使用するためにループバック インターフェイス lo0 に設定されている様子を示しています。
ルーティング トポロジに関連付けられた BGP ルートのグループは、同じ固有のプロトコルのネクスト ホップを使用します。たとえば、2 つのルーティング トポロジを処理するように PE ルーターを設定した場合、ループバック インターフェイス lo0 の下に 2 つの固有の非primary アドレスも設定します。
[edit interfaces] user@PE1# set lo0 unit 93 family inet address 1.1.1.30/32 user@PE1# set lo0 unit 93 family inet address 2.2.2.30/32
各非プライベート ループバック IP アドレスをトポロジに関連付けて、関連付けられたトポロジ ルーティング テーブルに含めます。
OSPF インターフェイス ステートメントの下でループバック IP アドレスとトポロジを設定します。特に、OSPF に既知の他のすべてのトポロジを無効にする必要があります。理由は 2 つあります。まず、トポロジに固有のループバック アドレスは、1 つのトポロジ ルーティング テーブルにのみ存在する必要があります。2 つ目は、トポロジが OSPF に追加されると、そのトポロジはデフォルトで OSPF の下のすべての後続のインターフェイスで有効になります。
デバイス PE1 設定では、ループバック アドレス 1.1.1.30/32 を、このルーターの OSPF Router-LSA の下のスタブ ルートとして OSPF データベースに配置します。これは red トポロジとデフォルト トポロジに属しますが、blue トポロジには属しません。ループバック アドレス 1.1.1.30/32 は、リモート コア ルーターのトポロジー ルーティング テーブル inet.0 および :red.inet.0 にインストールされます(ただし、:blue.inet.0 にはインストールされません)。blue ループバック アドレス 2.2.2.30/32 にも同様の設定を使用します。
[edit protocols ospf] user@PE1# set topology red topology-id 126 user@PE1# set topology blue topology-id 52 [edit protocols ospf area 0.0.0.0] user@PE1# set interface 1.1.1.30 topology red user@PE1# set interface 1.1.1.30 topology blue disable user@PE1# set interface 2.2.2.30 topology blue user@PE1# set interface 2.2.2.30 topology red disable
インターフェイスで OSPF を有効にし、トポロジ上で特定の OSPF リンク メトリックを設定して、パスを識別し、異なるサーバーへのツリーを構築します。
リンクはすべてのルーティング トポロジをサポートし、プライマリ マルチキャスト パスに障害が発生した場合にバックアップを提供できます。
ソースに向けられた PIM ジョイン メッセージを介してマルチキャスト ツリーが構築されると、最も望ましいパスに従います。異なるマルチキャスト ソース(異なるルーティング トポロジ内)へのマルチキャスト ツリーは、別のパスに沿って別のツリーを作成できます。
[edit protocols ospf area 0.0.0.0] user@PE1# set interface ge-1/2/1.6 metric 10 user@PE1# set interface ge-1/2/1.6 topology blue metric 1 user@PE1# set interface ge-1/2/1.6 topology red user@PE1# set interface ge-1/2/2.9 metric 10 user@PE1# set interface ge-1/2/2.9 topology red metric 1 user@PE1# set interface ge-1/2/2.9 topology blue user@PE1# set interface lo0.93 passive
マルチキャスト ルーティング テーブル inet.2 を作成し、 inet.2 ルーティング テーブルを使用するように PIM を設定します。
マルチキャスト ルックアップ用に別のルーティング テーブルを設定します。 inet.2 からのルートが設定されます。 inet.2 ルーティング テーブルは、タイプマルチキャストのルートによって設定されます。
[edit routing-options] user@PE1# set rib-groups mcast-rib import-rib inet.2
inet.2 のルートを使用するように PIM を設定します。
[edit protocols pim] user@PE1# set rib-group inet mcast-rib
インターフェイスで PIM を有効にします。
[edit protocols pim] user@PE1# set interface ge-1/2/0.2 mode sparse user@PE1# set interface ge-1/2/1.6 mode sparse user@PE1# set interface ge-1/2/2.9 mode sparse
指定されたルーティング テーブルを使用してプロトコルのネクスト ホップでルート解決を実行するようにルーターを設定します。
プロトコルのネクスト ホップは、PIM ジョイン メッセージを転送する転送ネクスト ホップ インターフェイスを決定するために使用されます。この設定では、プロトコルのネクストホップ IP アドレス ルックアップにトポロジ ルーティング テーブル :red.inet.0 および :blue.inet.0 を使用するよう inet.2 ルート解決を指示します。
解決設定では、最大 2 つのルーティング テーブルを指定できます。このソリューションの重要な要素は、プロトコルのネクスト ホップ アドレスが 1 つのトポロジ ルーティング テーブルにのみ存在することです。つまり、プロトコルのネクスト ホップはリモート PE セカンダリ ループバック アドレスに属し、1 つのトポロジ ルーティング テーブルにのみインジェクトされます。ルート解決スキームは、まずルーティング テーブル :red.inet.0 をチェックして、プロトコルのネクスト ホップ アドレスを確認します。アドレスが見つかった場合は、このエントリを使用します。見つからない場合、解決スキームはルーティング テーブル :blue.inet.0 をチェックします。そのため、各プロトコルのネクストホップ アドレスにはトポロジ ルーティング テーブルが 1 つだけ使用されます。
[edit routing-options resolution rib inet.2] user@PE1# set resolution-ribs :red.inet.0 user@PE1# set resolution-ribs :blue.inet.0
自律システム(AS)番号を設定します。
[edit routing-options] user@PE1# set autonomous-system 100
BGP を設定します。
[edit protocols bgp group ibgp] user@PE1# set type internal user@PE1# set local-address 10.255.165.93 user@PE1# set family inet unicast user@PE1# set family inet multicast user@PE1# set neighbor 10.255.165.111 user@PE1# set neighbor 10.255.165.203 user@PE1# set neighbor 10.255.165.113 user@PE1# set neighbor 10.255.165.95 user@PE1# set neighbor 10.255.165.99 [edit protocols bgp group ebgp] user@PE1# set type external user@PE1# set local-address 10.0.0.2 user@PE1# set family inet unicast user@PE1# set family inet multicast user@PE1# set peer-as 101 user@PE1# set neighbor 10.0.0.1
EBGP ルートを IBGP にエクスポートする場合は、プロトコルのネクスト ホップを設定します。
ルートを IBGP にエクスポートする場合、イングレス デバイス PE1 ルーターを設定して、BGP ルートのプロトコルのネクスト ホップ アドレスを設定します。
BGP は、EBGP ルートを IBGP にインジェクトする際に、エクスポート ポリシーを使用してネクスト ホップを設定します。
この設定は、設定するネクスト ホップの可能性が 3 つあるエクスポート ポリシーです。ルート 1.1.1.30 は red トポロジに関連付けられています。ルート 2.2.2.30 は blue トポロジに関連付けられています。デフォルトのネクストホップ自己ポリシーでは、デバイス PE1 のプライマリ ループバック アドレス 10.255.165.93 が使用されます。
nhs_test ポリシーは、BGP アップデートのコミュニティに基づいてプロトコルのネクスト ホップを設定します。
[edit policy-options] user@PE1# set community blue members target:50:50 user@PE1# set community red members target:40:40 [edit policy-options policy-statement nhs_test term a] user@PE1# set from protocol bgp user@PE1# set from community red user@PE1# set then next-hop 1.1.1.30 user@PE1# set then next policy user@PE1# set then accept [edit policy-options policy-statement nhs_test term b] user@PE1# set from protocol bgp user@PE1# set from community blue user@PE1# set then next-hop 2.2.2.30 user@PE1# set then next policy user@PE1# set then accept user@PE1# set policy-options policy-statement nhs_test term c then next-hop self [edit policy-options policy-statement nhs_inet0_self term a] user@PE1# set from protocol bgp user@PE1# set from rib inet.0 user@PE1# set then next-hop self
ネクストホップ自己ポリシーを IBGP セッションに適用します。
[edit protocols bgp group ibgp] user@PE1# set export nhs_test user@PE1# set export nhs_inet0_self
OSPF および BGP でこれらのトポロジを使用できるようにする voice トポロジと video トポロジを設定します。
voice と video という名前はルーターに対してローカルです。この名前は、このルーターを越えて伝達されません。ただし、管理目的では、マルチトポロジー環境のルーター間で一貫した命名規則を使用すると便利です。
[edit routing-options topologies family inet] user@PE1# set topology red user@PE1# set topology blue
結果
設定モードから、 、 show protocols
および show routing-options
コマンドをshow interfaces
入力して設定をshow policy-options
確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@PE1# show interfaces ge-1/2/0 { unit 2 { description to-CE1; family inet { address 10.0.0.2/30; } } } ge-1/2/1 { unit 6 { description to-P1; family inet { address 10.0.0.6/30; } } } ge-1/2/2 { unit 9 { description to-P3; family inet { address 10.0.0.9/30; } } } lo0 { unit 93 { family inet { address 10.255.165.93/32 { primary; } address 1.1.1.30/32; address 2.2.2.30/32; } } }
user@PE1# show protocols bgp { group ibgp { type internal; local-address 10.255.165.93; family inet { unicast; multicast; } export [ nhs_test nhs_inet0_self ]; neighbor 10.255.165.111; neighbor 10.255.165.203; neighbor 10.255.165.113; neighbor 10.255.165.95; neighbor 10.255.165.99; } group ebgp { type external; local-address 10.0.0.2; family inet { unicast; multicast; } peer-as 101; neighbor 10.0.0.1; } } ospf { topology red topology-id 126; topology blue topology-id 52; area 0.0.0.0 { interface ge-1/2/1.6 { metric 10; topology blue metric 1; topology red; } interface ge-1/2/2.9 { metric 10; topology red metric 1; topology blue; } interface lo0.93 { passive; } interface 1.1.1.30 { topology red; topology blue disable; } interface 2.2.2.30 { topology blue; topology red disable; } } } pim { rib-group inet mcast-rib; interface ge-1/2/0.2 { mode sparse; } interface ge-1/2/1.6 { mode sparse; } interface ge-1/2/2.9 { mode sparse; } }
user@PE1# show policy-options policy-statement nhs_inet0_self { term a { from { protocol bgp; rib inet.0; } then { next-hop self; } } } policy-statement nhs_test { term a { from { protocol bgp; community red; } then { next-hop 1.1.1.30; next policy; accept; } } term b { from { protocol bgp; community blue; } then { next-hop 2.2.2.30; next policy; accept; } } term c { then { next-hop self; } } } community blue members target:50:50; community red members target:40:40;
user@PE1# show routing-options rib-groups { mcast-rib { import-rib inet.2; } } autonomous-system 100; resolution { rib inet.2 { resolution-ribs [ :red.inet.0 :blue.inet.0 ]; } } topologies { family inet { topology red; topology blue; } }
デバイスの設定が完了したら、設定モードから commit と入力します。
検証
設定が正しく機能していることを確認します。
- inet.2 で IBGP ルートを確認する
- ルートの検証
- BGP ネクスト ホップの解決の確認
- プロトコルのネクスト ホップの検証
- OSPF ネイバーの検証
- ルーター LSA の確認
- トラフィックがネットワークを通過する方法を確認する
inet.2 で IBGP ルートを確認する
目的
デバイス PE1 によって IBGP にインジェクトされるルートに、それらが属するトポロジに基づくネクスト ホップがあることを確認します。
アクション
動作モードから、コマンドを show route table extensive
入力します。
user@PE1> show route 11.19.130.0/24 table inet.2 extensive inet.2: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) 11.19.130.0/24 (1 entry, 1 announced) TSI: Page 0 idx 0 Type 1 val 93e9768 Flags: Nexthop Change Nexthop: 1.1.1.30 Localpref: 100 AS path: [100] 101 I Communities: target:40:40 Path 11.19.130.0 from 10.0.0.1 Vector len 4. Val: 0 *BGP Preference: 170/-101 Next hop type: Router, Next hop index: 1180 Address: 0x94003ec Next-hop reference count: 16 Source: 10.0.0.1 Next hop: 10.0.0.1 via lt-1/2/0.2, selected Session Id: 0x380004 State: <Active Ext> Local AS: 100 Peer AS: 101 Age: 22 Validation State: unverified Task: BGP_101.10.0.0.1+58346 Announcement bits (1): 0-BGP_RT_Background AS path: 101 I Communities: target:40:40 Accepted Localpref: 100 Router ID: 10.255.165.97
意味
この出力は、デバイス PE1 から見た inet.2 ルーティング テーブルの IBGP ルートを示しています。ルートは当初、デバイス PE1 によって IBGP にインジェクトされ、ネクスト ホップはルートが属するトポロジに基づいて設定されました。BGP コミュニティ値により、トポロジの関連付けが決定されました。
ルート 11.19.130/24 は、コミュニティ値 target:40:40 を持っているので、red トポロジに属します。プロトコルのネクスト ホップは 1.1.1.30 で、転送ネクスト ホップは ge-1/2/1.42 です。
ルートの検証
目的
ルートが予想されるルーティング テーブルにあり、予想されるコミュニティがルートにアタッチされていることを確認します。
アクション
動作モードから、デバイス PE1 でコマンドを show route detail
入力します。
user@PE1> show route 11.19.130.0/24 detail inet.0: 29 destinations, 30 routes (29 active, 0 holddown, 0 hidden) 11.19.130.0/24 (1 entry, 1 announced) *BGP Preference: 170/-101 Next hop type: Router, Next hop index: 812 Address: 0xb9f064c Next-hop reference count: 22 Source: 10.0.0.1 Next hop: 10.0.0.1 via fe-1/2/0.2, selected Session Id: 0x600004 State: <Active Ext> Local AS: 100 Peer AS: 101 Age: 3d 21:44:07 Task: BGP_101.10.0.0.1+51873 Announcement bits (3): 0-KRT 3-BGP_RT_Background 4-Resolve tree 3 AS path: 101 I Communities: target:40:40 Accepted Localpref: 100 Router ID: 10.255.165.97 Secondary Tables: :voice.inet.0 :voice.inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden) 11.19.130.0/24 (1 entry, 1 announced) *BGP Preference: 170/-101 Next hop type: Router, Next hop index: 812 Address: 0xb9f064c Next-hop reference count: 22 Source: 10.0.0.1 Next hop: 10.0.0.1 via fe-1/2/0.2, selected Session Id: 0x600004 State: <Secondary Active IndepResolution Ext> Local AS: 100 Peer AS: 101 Age: 3d 21:44:07 Task: BGP_101.10.0.0.1+51873 Announcement bits (2): 0-KRT 1-Resolve tree 1 AS path: 101 I Communities: target:40:40 Accepted Localpref: 100 Router ID: 10.255.165.97 Primary Routing Table inet.0
意味
この出力は、コミュニティ値 target:40:40 を持つ BGP ルート 11.19.130.0/24 を示しています。ルートは voice トポロジの基準に一致するため、デフォルトのルーティング テーブルと voice トポロジ ルーティング テーブル(inet.0 および :voice.inet.0)の両方にルートが追加されます。デバイス PE1 は、デバイス CE1 から EBGP を通じてルートを学習し、そのルートを IBGP にインジェクトします。
BGP ネクスト ホップの解決の確認
目的
プロトコルのネクスト ホップと転送ネクスト ホップを確認します。
アクション
動作モードから、デバイス PE2 でコマンドを show route detail
入力します。
user@PE2> show route 11.19.130.0/24 detail inet.0: 29 destinations, 30 routes (29 active, 0 holddown, 0 hidden) 11.19.130.0/24 (1 entry, 1 announced) *BGP Preference: 170/-101 Next hop type: Indirect Address: 0xb9f0e04 Next-hop reference count: 12 Source: 10.255.165.93 Next hop type: Router, Next hop index: 262153 Next hop: 10.0.0.37 via fe-1/2/0.38 Session Id: 0x700004 Next hop: 10.0.0.41 via fe-1/2/1.42, selected Session Id: 0x700005 Protocol next hop: 10.255.165.93 Indirect next hop: bb8c000 262154 INH Session ID: 0x700007 State: <Active Int Ext> Local AS: 100 Peer AS: 100 Age: 3d 4:27:40 Metric2: 30 Task: BGP_100.10.255.165.93+179 Announcement bits (3): 0-KRT 3-BGP_RT_Background 4-Resolve tree 3 AS path: 101 I Communities: target:40:40 Accepted Localpref: 100 Router ID: 10.255.165.93 Secondary Tables: :voice.inet.0 :voice.inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden) 11.19.130.0/24 (1 entry, 1 announced) *BGP Preference: 170/-101 Next hop type: Indirect Address: 0xb9f0f34 Next-hop reference count: 6 Source: 10.255.165.93 Next hop type: Router, Next hop index: 1188 Next hop: 10.0.0.37 via fe-1/2/0.38, selected Session Id: 0x700004 Protocol next hop: 10.255.165.93 Indirect next hop: bb8c1d8 262177 INH Session ID: 0x700007 State: <Secondary Active IndepResolution Int Ext> Local AS: 100 Peer AS: 100 Age: 3d 2:00:20 Metric2: 30 Task: BGP_100.10.255.165.93+179 Announcement bits (2): 0-KRT 1-Resolve tree 1 AS path: 101 I Communities: target:40:40 Accepted Localpref: 100 Router ID: 10.255.165.93 Primary Routing Table inet.0
意味
一般的な IBGP コアには、基盤となる IGP ルートを使用して解決するプロトコルのネクスト ホップを持つ BGP ルートがあります。トポロジ ルーティング テーブル内の IBGP ルートには、プロトコルのネクスト ホップ IP アドレスがあります。デフォルトでは、プロトコルのネクスト ホップ IP アドレスを検索して転送ネクスト ホップに解決するために、同じトポロジ ルーティング テーブルが使用されます。デバイス PE2 からのこの出力は、前の例と同じ BGP ルートを示しています。11.19.130.0/24。ルートは別の視点、つまりデバイス PE2 から IBGP ルートとして表示されています。同様に、この IBGP ルートは、デバイス PE2 の inet.0 と :voice.inet.0 の両方に追加されます。ただし、各ルートは同じプロトコルのネクスト ホップを持ちますが、各ルートは異なる転送ネクスト ホップ(ge-0/0/1/4.0 ではなく ge-0/0/3.0)を持ちます。この違いは、プロトコルのネクスト ホップ IP アドレス 10.255.165.93 を解決し、対応するルーティング テーブル(inet.0 または :voice.inet.0)を使用してプロトコルのネクスト ホップを検索する場合です。
プロトコルのネクスト ホップの検証
目的
プロトコルのネクスト ホップと転送ネクスト ホップを確認します。
アクション
動作モードから、デバイス PE2 でコマンドを show route
入力します。
user@PE2> show route 10.255.165.93 inet.0: 29 destinations, 30 routes (29 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.255.165.93/32 *[OSPF/10] 3d 04:37:26, metric 30 > to 10.0.0.37 via fe-1/2/0.38 to 10.0.0.41 via fe-1/2/1.42 :voice.inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.255.165.93/32 *[OSPF/10] 3d 02:10:04, metric 30 > to 10.0.0.37 via fe-1/2/0.38 :video.inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.255.165.93/32 *[OSPF/10] 3d 02:03:16, metric 30 > to 10.0.0.41 via fe-1/2/1.42
意味
デバイス PE2 からのこの出力は、IP アドレス 10.255.165.93 である 11.19.130.0/24 のプロトコルのネクスト ホップを示しています。したがって、IBGP ルート 11.19.130.0/24 がプロトコルのネクスト ホップを解決する方法をさらに示しています。前の例に示すように、10.255.165.93 の転送ネクスト ホップは、ルート 11.19.130/24 の IBGP 転送ネクスト ホップと一致します。IP アドレス 10.255.165.93 がルーティング テーブル :video.inet.0 にも含まれています。このアドレスはデバイス PE1 のループバック アドレスであるため、3 つのルーティング テーブルすべてに存在します。この例では、11.19.130.0/24 宛てにデバイス PE2 に入るトラフィックが、関連付けられたトポロジに応じて異なるインターフェイスを出る方法も示しています。実際のトラフィックは、ファイアウォール フィルタがトラフィックに特定のトポロジ ルーティング テーブルを使用するよう指示できるような方法でマークされます。
OSPF ネイバーの検証
目的
OSPF ネイバーで、予想されるトポロジが有効になっていることを確認します。
アクション
動作モードから、デバイス P2 でコマンドを show (ospf | ospf3) neighbor extensive
入力します。
user@P2> show ospf neighbor 10.0.0.21 extensive Address Interface State ID Pri Dead 10.0.0.21 fe-1/2/0.22 Full 10.255.165.111 128 39 Area 0.0.0.0, opt 0x52, DR 10.0.0.22, BDR 10.0.0.21 Up 3d 06:09:50, adjacent 3d 06:09:50 Topology default (ID 0) -> Bidirectional Topology video (ID 52) -> Bidirectional
意味
このデバイス P2 の出力は、OSPF ネイバー PE2(10.0.0.21)を示しています。ここでは、マルチトポロジー OSPF のデフォルトと video が参加者です。 Bidirectional フラグは、ネイバーが同じマルチトポロジー OSPF ID を使用して設定されていることを示しています。
ルーター LSA の確認
目的
動画と音声のトポロジが有効になっているリンクを確認します。
アクション
動作モードから、デバイス P2 でコマンドを show ospf database extensive
入力します。
user@P2> show ospf database lsa-id 10.255.165.203 extensive OSPF database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router 10.255.165.203 10.255.165.203 0x80000063 1552 0x22 0xdff3 80 bits 0x0, link count 3 id 10.255.165.203, data 255.255.255.255, Type Stub (3) Topology count: 2, Default metric: 0 Topology video (ID 52) -> Metric: 0 Topology voice (ID 126) -> Metric: 0 id 10.0.0.38, data 10.0.0.38, Type Transit (2) Topology count: 2, Default metric: 10 Topology video (ID 52) -> Metric: 200 Topology voice (ID 126) -> Metric: 10 id 10.0.0.42, data 10.0.0.42, Type Transit (2) Topology count: 1, Default metric: 10 Topology video (ID 52) -> Metric: 10 Topology default (ID 0) Type: Transit, Node ID: 10.0.0.42 Metric: 10, Bidirectional Type: Transit, Node ID: 10.0.0.38 Metric: 10, Bidirectional Topology video (ID 52) Type: Transit, Node ID: 10.0.0.42 Metric: 10, Bidirectional Type: Transit, Node ID: 10.0.0.38 Metric: 200, Bidirectional Topology voice (ID 126) Type: Transit, Node ID: 10.0.0.38 Metric: 10, Bidirectional Aging timer 00:34:08 Installed 00:25:49 ago, expires in 00:34:08, sent 00:25:47 ago Last changed 3d 01:45:51 ago, Change count: 10
意味
このデバイス P2 の出力は、デバイス PE2 によって発信された Router-LSA を示しています。LSA は、(デフォルト トポロジに加えて)video トポロジと voice トポロジが有効になっているリンクを示しています。
トラフィックがネットワークを通過する方法を確認する
目的
予想されるパスが使用されていることを確認します。
アクション
動作モードから、デバイス CE1 でコマンドを traceroute
入力します。
最初の出力例は、voice トポロジ上の traceroute が、DSCP が設定されているデバイス CE1 からデバイス CE2 に移行することを示しています。ルートは :voice.inet.0 で解決されます。この traceroute パスは、voice パス CE1-PE1-P1-P2-PE2-CE2 を通ります。
user@CE1> traceroute 11.19.140.1 source 11.19.130.1 tos 160 traceroute to 11.19.140.1 (11.19.140.1) from 11.19.130.1, 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 2.015 ms 1.924 ms 1.770 ms 2 10.0.0.5 (10.0.0.5) 1.890 ms 1.010 ms 0.974 ms 3 10.0.0.34 (10.0.0.34) 0.986 ms 1.031 ms 0.973 ms 4 10.0.0.38 (10.0.0.38) 1.213 ms 1.065 ms 1.154 ms 5 11.19.140.1 (11.19.140.1) 1.696 ms 4.286 ms 1.332 ms
この出力は、DSCP が設定されていない voice のデバイス CE1 からデバイス CE2 への traceroute を示しています。ルートは inet.0 で解決され、結果のパスは DSCP が設定された前のケースとは異なります。この traceroute パスは、デフォルト のパス CE1-PE1-P4-PE2-CE2 に従います。
user@CE1> traceroute 11.19.140.1 source 11.19.130.1 traceroute to 11.19.140.1 (11.19.140.1) from 11.19.130.1, 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 1.654 ms 1.710 ms 1.703 ms 2 10.0.0.5 (10.0.0.5) 1.790 ms 1.045 ms 0.975 ms 3 10.0.0.18 (10.0.0.18) 0.989 ms 1.041 ms 0.983 ms 4 10.0.0.42 (10.0.0.42) 0.994 ms 1.036 ms 1.002 ms 5 11.19.140.1 (11.19.140.1) 1.329 ms 2.248 ms 2.225 ms
この出力は、ファイアウォール フィルタが宛先アドレスに基づいている video トラフィックのデバイス CE1 からデバイス CE2 への traceroute を示しています。ルートは :video.inet.0 経由で解決されます。この traceroute は、video パス CE1-PE1-P3-P4-PE2-CE2 に従います。
user@CE1> traceroute 11.19.142.1 source 11.19.132.1 traceroute to 11.19.142.1 (11.19.142.1) from 11.19.132.1, 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 1.126 ms 1.300 ms 0.995 ms 2 10.0.0.10 (10.0.0.10) 0.981 ms 1.018 ms 0.991 ms 3 10.0.0.30 (10.0.0.30) 0.997 ms 1.886 ms 1.952 ms 4 10.0.0.42 (10.0.0.42) 1.800 ms 1.038 ms 0.980 ms 5 11.19.142.1 (11.19.142.1) 1.367 ms 1.352 ms 1.328 ms
この出力は、DSCP が設定されている video のデバイス CE1 からデバイス CE2 への traceroute を示しています。DSCP ビットは、トポロジ テーブル :voice.inet.0 を使用するようデバイス PE1 に指示します。ビデオ ルートの音声ルーティング テーブルにエントリがないため、トラフィックはドロップされます。
user@CE1> traceroute 11.19.142.1 source 11.19.132.1 tos 160 traceroute to 11.19.142.1 (11.19.142.1) from 11.19.132.1, 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 1.135 ms !N 1.007 ms !N 0.954 ms !N