例:音声、映像、データトラフィックのクラスベース転送のためのマルチポロジールーティングの設定
この例では、MTR(マルチポロジー ルーティング)を使用して、音声または動画のいずれかのアプリケーションに基づいてトポロジ パスを選択する方法を示します。
要件
この例では、プロバイダコアデバイスでJunos OSリリース9.0以降が実行されている必要があります。
概要
この例では、ネットワークはコアでOSPFと内部BGP(IBGP)を実行していますが、MPLSは実行していません。トラフィックエンジニアリングがなくても、音声トラフィックは1つのリンクセットを使用し、ビデオトラフィックは異なるリンクセットを使用します。このトラフィックは、同じIPアドレス宛てである場合とそうでない場合があります。場合によっては、両方のアプリケーションが同じリンクを通過します。このソリューションでは、MTR ベースの OSPF および BGP とファイアウォール フィルターを使用して、さまざまなトラフィック タイプを指定されたリンクに誘導します。ルーターは、かなり似た設定を使用しているため、複雑さが軽減され、ネットワーク管理が向上します。
OSPF トポロジーは、OSPF エリア上の各サービスをサポートするように定義されています。トポロジのリンクは連続していて、一般的な OSPF エリアと一貫している必要があります。各ルーティング トポロジの IBGP ルートは、プロトコルのネクストホップ ルート解決に関連する OSPF トポロジ ルーティング テーブルを自動的に使用します。特別なルート解決設定は必要ありません。このソリューションでは、同じリンク上に複数のトポロジを設定できます。ただし、各アプリケーション サービス クラスのトラフィックは、そのサービス用に指定されたトポロジに対して設定されていない限り、リンクをトラバースできません。 図 1 は、このケースの図を示しています。voice トポロジをルーティングするための連続パスは点線で示し、動画トポロジをルーティングするためのパスは破線で示しています。
トポロジー内のすべてのデバイスに対する完全な設定のセットについては、 CLI クイック構成を参照してください。残りの例では、デバイスCE1とデバイスPE1に焦点を当てています。
図 1 は、サンプル トポロジーを示しています。
構成
CLI クイックコンフィギュレーション
この例を迅速に設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に合わせて必要な詳細を変更し、コマンドを 階層レベルの CLI [edit]
にコピー アンド ペーストします。
デバイス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 fe-1/2/0 unit 1 description to-PE1 set interfaces fe-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 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 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 voice 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 video 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 video members target:50:50 set policy-options community voice members target:40:40 set routing-options autonomous-system 101
デバイスCE2
set interfaces fe-0/1/1 fastether-options loopback set interfaces fe-0/1/1 unit 0 family inet address 11.19.140.1/24 set interfaces fe-0/1/1 unit 0 family inet address 11.19.141.1/24 set interfaces fe-0/1/1 unit 0 family inet address 11.19.142.1/24 set interfaces fe-1/2/0 unit 46 description to-PE2 set interfaces fe-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 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.45 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/1.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.140.0/24 exact set policy-options policy-statement set_community term a from route-filter 11.19.141.0/24 exact set policy-options policy-statement set_community term a then community add voice 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.142.0/24 exact set policy-options policy-statement set_community term b from route-filter 11.19.143.0/24 exact set policy-options policy-statement set_community term b then community add video 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 video members target:50:50 set policy-options community voice members target:40:40 set routing-options autonomous-system 102
デバイスPE1
set interfaces fe-1/2/0 unit 2 description to-CE1 set interfaces fe-1/2/0 unit 2 family inet filter input ef_path set interfaces fe-1/2/0 unit 2 family inet address 10.0.0.2/30 set interfaces fe-1/2/1 unit 6 description to-P1 set interfaces fe-1/2/1 unit 6 family inet filter input ef_path set interfaces fe-1/2/1 unit 6 family inet address 10.0.0.6/30 set interfaces fe-1/2/2 unit 9 description to-P3 set interfaces fe-1/2/2 unit 9 family inet filter input ef_path set interfaces fe-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 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 topology voice community target:40:40 set protocols bgp group ibgp family inet unicast topology video community target:50:50 set protocols bgp group ibgp export nhs 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 topology voice community target:40:40 set protocols bgp group ebgp family inet unicast topology video community target:50:50 set protocols bgp group ebgp peer-as 101 set protocols bgp group ebgp neighbor 10.0.0.1 set protocols ospf topology voice topology-id 126 set protocols ospf topology video topology-id 52 set protocols ospf area 0.0.0.0 interface fe-1/2/1.6 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/1.6 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.6 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/2.9 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/2.9 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/2.9 topology video set protocols ospf area 0.0.0.0 interface lo0.93 passive set policy-options policy-statement nhs then next-hop self set routing-options autonomous-system 100 set routing-options topologies family inet topology voice set routing-options topologies family inet topology video set firewall family inet filter ef_path term ef from forwarding-class expedited-forwarding set firewall family inet filter ef_path term ef then topology voice set firewall family inet filter ef_path term video from source-address 11.19.132.0/24 set firewall family inet filter ef_path term video from source-address 11.19.133.0/24 set firewall family inet filter ef_path term video from source-address 11.19.142.0/24 set firewall family inet filter ef_path term video from source-address 11.19.144.0/24 set firewall family inet filter ef_path term video then topology video set firewall family inet filter ef_path term default then accept set class-of-service interfaces fe-1/2/0 unit 2 classifiers inet-precedence default set class-of-service interfaces fe-1/2/1 unit 6 classifiers inet-precedence default set class-of-service interfaces fe-1/2/2 unit 9 classifiers inet-precedence default
デバイスPE2
set interfaces fe-1/2/0 unit 38 description to-P2 set interfaces fe-1/2/0 unit 38 family inet filter input ef_path set interfaces fe-1/2/0 unit 38 family inet address 10.0.0.38/30 set interfaces fe-1/2/1 unit 42 description to-P4 set interfaces fe-1/2/1 unit 42 family inet filter input ef_path set interfaces fe-1/2/1 unit 42 family inet address 10.0.0.42/30 set interfaces fe-1/2/2 unit 45 description to-CE2 set interfaces fe-1/2/2 unit 45 family inet filter input ef_path set interfaces fe-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 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 topology voice community target:40:40 set protocols bgp group ibgp family inet unicast topology video community target:50:50 set protocols bgp group ibgp export nhs 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 topology voice community target:40:40 set protocols bgp group ebgp family inet unicast topology video community target:50:50 set protocols bgp group ebgp peer-as 102 set protocols bgp group ebgp neighbor 10.0.0.46 set protocols ospf topology voice topology-id 126 set protocols ospf topology video topology-id 52 set protocols ospf area 0.0.0.0 interface fe-1/2/0.38 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/0.38 topology video metric 200 set protocols ospf area 0.0.0.0 interface fe-1/2/0.38 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/1.42 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/1.42 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.42 topology video set protocols ospf area 0.0.0.0 interface lo0.203 passive set policy-options policy-statement nhs then next-hop self set routing-options autonomous-system 100 set routing-options topologies family inet topology voice set routing-options topologies family inet topology video set firewall family inet filter ef_path term ef from forwarding-class expedited-forwarding set firewall family inet filter ef_path term ef then topology voice set firewall family inet filter ef_path term video from source-address 11.19.132.0/24 set firewall family inet filter ef_path term video from source-address 11.19.133.0/24 set firewall family inet filter ef_path term video from source-address 11.19.142.0/24 set firewall family inet filter ef_path term video from source-address 11.19.144.0/24 set firewall family inet filter ef_path term video then topology video set firewall family inet filter ef_path term default then accept set class-of-service interfaces fe-1/2/0 unit 38 classifiers inet-precedence default set class-of-service interfaces fe-1/2/1 unit 42 classifiers inet-precedence default set class-of-service interfaces fe-1/2/2 unit 45 classifiers inet-precedence default
デバイスP1
set interfaces fe-1/2/0 unit 5 description to-PE1 set interfaces fe-1/2/0 unit 5 family inet filter input ef_path set interfaces fe-1/2/0 unit 5 family inet address 10.0.0.5/30 set interfaces fe-1/2/1 unit 13 description to-P3 set interfaces fe-1/2/1 unit 13 family inet filter input ef_path set interfaces fe-1/2/1 unit 13 family inet address 10.0.0.13/30 set interfaces fe-1/2/2 unit 17 description to-P4 set interfaces fe-1/2/2 unit 17 family inet filter input ef_path set interfaces fe-1/2/2 unit 17 family inet address 10.0.0.17/30 set interfaces fe-1/2/3 unit 33 description to-P2 set interfaces fe-1/2/3 unit 33 family inet filter input ef_path set interfaces fe-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 topology voice community target:40:40 set protocols bgp group ibgp family inet unicast topology video community target:50:50 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 voice topology-id 126 set protocols ospf topology video topology-id 52 set protocols ospf area 0.0.0.0 interface fe-1/2/3.33 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/3.33 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/3.33 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/2.17 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/2.17 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/2.17 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.13 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/1.13 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.13 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.5 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/0.5 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/0.5 topology video disable set protocols ospf area 0.0.0.0 interface lo0.99 passive set routing-options autonomous-system 100 set routing-options topologies family inet topology voice set routing-options topologies family inet topology video set firewall family inet filter ef_path term ef from forwarding-class expedited-forwarding set firewall family inet filter ef_path term ef then topology voice set firewall family inet filter ef_path term video from source-address 11.19.132.0/24 set firewall family inet filter ef_path term video from source-address 11.19.133.0/24 set firewall family inet filter ef_path term video from source-address 11.19.142.0/24 set firewall family inet filter ef_path term video from source-address 11.19.144.0/24 set firewall family inet filter ef_path term video then topology video set firewall family inet filter ef_path term default then accept set class-of-service interfaces fe-1/2/0 unit 5 classifiers inet-precedence default set class-of-service interfaces fe-1/2/1 unit 13 classifiers inet-precedence default set class-of-service interfaces fe-1/2/2 unit 17 classifiers inet-precedence default set class-of-service interfaces fe-1/2/3 unit 33 classifiers inet-precedence default
デバイスP2
set interfaces fe-1/2/0 unit 22 description to-P3 set interfaces fe-1/2/0 unit 22 family inet filter input ef_path set interfaces fe-1/2/0 unit 22 family inet address 10.0.0.22/30 set interfaces fe-1/2/1 unit 25 description to-P4 set interfaces fe-1/2/1 unit 25 family inet filter input ef_path set interfaces fe-1/2/1 unit 25 family inet address 10.0.0.25/30 set interfaces fe-1/2/2 unit 34 description to-P1 set interfaces fe-1/2/2 unit 34 family inet filter input ef_path set interfaces fe-1/2/2 unit 34 family inet address 10.0.0.34/30 set interfaces fe-1/2/3 unit 37 description to-PE2 set interfaces fe-1/2/3 unit 37 family inet filter input ef_path set interfaces fe-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 topology voice community target:40:40 set protocols bgp group ibgp family inet unicast topology video community target:50:50 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 voice topology-id 126 set protocols ospf topology video topology-id 52 set protocols ospf area 0.0.0.0 interface fe-1/2/2.34 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/2.34 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/2.34 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.22 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/0.22 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.22 topology video metric 20 set protocols ospf area 0.0.0.0 interface fe-1/2/1.25 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/1.25 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.25 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/3.37 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/3.37 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/3.37 topology video metric 200 set protocols ospf area 0.0.0.0 interface lo0.113 passive set routing-options autonomous-system 100 set routing-options topologies family inet topology voice set routing-options topologies family inet topology video set firewall family inet filter ef_path term ef from forwarding-class expedited-forwarding set firewall family inet filter ef_path term ef then topology voice set firewall family inet filter ef_path term video from source-address 11.19.132.0/24 set firewall family inet filter ef_path term video from source-address 11.19.133.0/24 set firewall family inet filter ef_path term video from source-address 11.19.142.0/24 set firewall family inet filter ef_path term video from source-address 11.19.144.0/24 set firewall family inet filter ef_path term video then topology video set firewall family inet filter ef_path term default then accept set class-of-service interfaces fe-1/2/0 unit 22 classifiers inet-precedence default set class-of-service interfaces fe-1/2/1 unit 25 classifiers inet-precedence default set class-of-service interfaces fe-1/2/2 unit 34 classifiers inet-precedence default set class-of-service interfaces fe-1/2/3 unit 37 classifiers inet-precedence default
デバイスP3
set interfaces fe-1/2/0 unit 10 description to-PE1 set interfaces fe-1/2/0 unit 10 family inet filter input ef_path set interfaces fe-1/2/0 unit 10 family inet address 10.0.0.10/30 set interfaces fe-1/2/1 unit 14 description to-P1 set interfaces fe-1/2/1 unit 14 family inet filter input ef_path set interfaces fe-1/2/1 unit 14 family inet address 10.0.0.14/30 set interfaces fe-1/2/2 unit 21 description to-P2 set interfaces fe-1/2/2 unit 21 family inet filter input ef_path set interfaces fe-1/2/2 unit 21 family inet address 10.0.0.21/30 set interfaces fe-1/2/3 unit 29 description to-P4 set interfaces fe-1/2/3 unit 29 family inet filter input ef_path set interfaces fe-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 topology voice community target:40:40 set protocols bgp group ibgp family inet unicast topology video community target:50:50 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 voice topology-id 126 set protocols ospf topology video topology-id 52 set protocols ospf area 0.0.0.0 interface fe-1/2/3.29 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/3.29 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/3.29 topology video set protocols ospf area 0.0.0.0 interface fe-1/2/2.21 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/2.21 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/2.21 topology video metric 20 set protocols ospf area 0.0.0.0 interface fe-1/2/1.14 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/1.14 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.14 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.10 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/0.10 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.10 topology video set protocols ospf area 0.0.0.0 interface lo0.111 passive set routing-options autonomous-system 100 set routing-options topologies family inet topology voice set routing-options topologies family inet topology video set firewall family inet filter ef_path term ef from forwarding-class expedited-forwarding set firewall family inet filter ef_path term ef then topology voice set firewall family inet filter ef_path term video from source-address 11.19.132.0/24 set firewall family inet filter ef_path term video from source-address 11.19.133.0/24 set firewall family inet filter ef_path term video from source-address 11.19.142.0/24 set firewall family inet filter ef_path term video from source-address 11.19.144.0/24 set firewall family inet filter ef_path term video then topology video set firewall family inet filter ef_path term default then accept set class-of-service interfaces fe-1/2/0 unit 10 classifiers inet-precedence default set class-of-service interfaces fe-1/2/1 unit 14 classifiers inet-precedence default set class-of-service interfaces fe-1/2/2 unit 21 classifiers inet-precedence default set class-of-service interfaces fe-1/2/3 unit 29 classifiers inet-precedence default
デバイスP4
set interfaces fe-1/2/0 unit 18 description to-P1 set interfaces fe-1/2/0 unit 18 family inet filter input ef_path set interfaces fe-1/2/0 unit 18 family inet address 10.0.0.18/30 set interfaces fe-1/2/1 unit 26 description to-P2 set interfaces fe-1/2/1 unit 26 family inet filter input ef_path set interfaces fe-1/2/1 unit 26 family inet address 10.0.0.26/30 set interfaces fe-1/2/2 unit 30 description to-P3 set interfaces fe-1/2/2 unit 30 family inet filter input ef_path set interfaces fe-1/2/2 unit 30 family inet address 10.0.0.30/30 set interfaces fe-1/2/3 unit 41 description to-PE2 set interfaces fe-1/2/3 unit 41 family inet filter input ef_path set interfaces fe-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 topology voice community target:40:40 set protocols bgp group ibgp family inet unicast topology video community target:50:50 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 voice topology-id 126 set protocols ospf topology video topology-id 52 set protocols ospf area 0.0.0.0 interface fe-1/2/2.30 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/2.30 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/2.30 topology video set protocols ospf area 0.0.0.0 interface fe-1/2/0.18 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/0.18 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.18 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/0.18 topology video metric 20 set protocols ospf area 0.0.0.0 interface fe-1/2/1.26 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/1.26 topology voice disable set protocols ospf area 0.0.0.0 interface fe-1/2/1.26 topology video disable set protocols ospf area 0.0.0.0 interface fe-1/2/3.41 metric 10 set protocols ospf area 0.0.0.0 interface fe-1/2/3.41 topology voice set protocols ospf area 0.0.0.0 interface fe-1/2/3.41 topology video set protocols ospf area 0.0.0.0 interface lo0.95 passive set routing-options autonomous-system 100 set routing-options topologies family inet topology voice set routing-options topologies family inet topology video set firewall family inet filter ef_path term ef from forwarding-class expedited-forwarding set firewall family inet filter ef_path term ef then topology voice set firewall family inet filter ef_path term video from source-address 11.19.132.0/24 set firewall family inet filter ef_path term video from source-address 11.19.133.0/24 set firewall family inet filter ef_path term video from source-address 11.19.142.0/24 set firewall family inet filter ef_path term video from source-address 11.19.144.0/24 set firewall family inet filter ef_path term video then topology video set firewall family inet filter ef_path term default then accept set class-of-service interfaces fe-1/2/0 unit 18 classifiers inet-precedence default set class-of-service interfaces fe-1/2/1 unit 26 classifiers inet-precedence default set class-of-service interfaces fe-1/2/2 unit 30 classifiers inet-precedence default set class-of-service interfaces fe-1/2/3 unit 41 classifiers inet-precedence default
デバイスCE1の設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 Junos OS CLIユーザーガイドの設定モードでのCLIエディターの使用を参照してください。
デバイスCE1を設定するには:
インターフェイスを設定します。
デモンストレーションの目的で、この例ではイーサネット インターフェイスをループバック モードにし、このループバック インターフェイスに複数のアドレスを設定します。その後、アドレスがネットワークにアナウンスされます。
[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 fe-1/2/0 unit 1 description to-PE1 user@CE1# set fe-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)接続を設定します。
[edit protocols bgp group ebgp] user@CE1# set type external user@CE1# set local-address 10.0.0.1 user@CE1# set peer-as 100 user@CE1# set neighbor 10.0.0.2
インターフェイス 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
voice ルートを video コミュニティ属性でタグ付けするルーティング ポリシーと、voice コミュニティ属性を持つ video ルートを設定します。
[edit policy-options policy-statement set_community] user@CE1# set term a from route-filter 11.19.130.0/24 exact user@CE1# set term a from route-filter 11.19.131.0/24 exact user@CE1# set term a then community add voice user@CE1# set term a then accept user@CE1# set term b from route-filter 11.19.132.0/24 exact user@CE1# set term b from route-filter 11.19.133.0/24 exact user@CE1# set term b then community add video user@CE1# set term b then accept user@CE1# set term default then accept [edit policy-options community] user@CE1# set video members target:50:50 user@CE1# set voice members target:40:40
set_communityエクスポートポリシーを適用して、直接ルートをルーティングテーブルからBGPにエクスポートします。
inject_directsエクスポートポリシーを適用して、インターフェイスfe-0/1/0に設定されたアドレスをアナウンスします。
[edit protocols bgp group ebgp] user@CE1# set export set_community user@CE1# set export inject_directs
自律システム(AS)番号を設定します。
[edit routing-options] user@CE1# set autonomous-system 101
結果
設定モードから、 、show policy-options
show protocols
および のコマンドを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; } } } fe-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; export [ set_community inject_directs ]; peer-as 100; neighbor 10.0.0.2; } }
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 voice; accept; } } term b { from { route-filter 11.19.132.0/24 exact; route-filter 11.19.133.0/24 exact; } then { community add video; accept; } } term default { then accept; } } community video members target:50:50; community voice members target:40:40;
user@CE1# show routing-options autonomous-system 101;
デバイスの設定が完了したら、設定モードから コミット を入力します。
デバイスPE1の設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 Junos OS CLIユーザーガイドの設定モードでのCLIエディターの使用を参照してください。
デバイスPE1を設定するには:
インターフェイスを設定します。
転送プレーンは、ファイアウォールフィルターを使用して、どのトポロジの転送テーブルトラフィックを使用すべきかを示します。この場合、ルーティング トポロジに関連するすべてのインターフェイスでファイアウォール フィルターを設定する必要があります。一般的に、トポロジーが設定されているコアのすべてのマルチポロジー OSPF インターフェイスには、入力ファイアウォール フィルタがあります。さらに、CEデバイスからのトラフィックがコアに向かってPEデバイスに入るイングレスインターフェイスには、ファイアウォールフィルターが設定されています。デバイスPE1のこの設定は、イングレスインターフェイス(CEデバイスに接続)と2つのコア対向インターフェイス(デバイスP1およびデバイスP3に接続)に適用されるファイアウォールフィルターを示しています。
[edit interfaces] user@PE1# set fe-1/2/0 unit 2 description to-CE1 user@PE1# set fe-1/2/0 unit 2 family inet filter input ef_path user@PE1# set fe-1/2/0 unit 2 family inet address 10.0.0.2/30 user@PE1# set fe-1/2/1 unit 6 description to-P1 user@PE1# set fe-1/2/1 unit 6 family inet filter input ef_path user@PE1# set fe-1/2/1 unit 6 family inet address 10.0.0.6/30 user@PE1# set fe-1/2/2 unit 9 description to-P3 user@PE1# set fe-1/2/2 unit 9 family inet filter input ef_path user@PE1# set fe-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
自律システム(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 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 peer-as 101 user@PE1# set neighbor 10.0.0.1
IBGPデバイスが、すべてのIBGPルートアドバタイズメントのネクストホップアドレスとしてデバイスPE1のループバックアドレスを使用するように、ネクストホップセルフルーティングポリシーを設定します。
このように、デバイス PE1 は EBGP ルートのゲートウェイ ルーターとして機能します。
[edit policy-options policy-statement nhs] user@PE1# set then next-hop self
IBGP セッションにネクストホップ自己ポリシーを適用します。
[edit protocols bgp group ibgp] user@PE1# set export nhs
OSPF と BGP でこれらのトポロジを使用できるように、voice トポロジと video トポロジを設定します。
voice と video という名前はルーターに対してローカルです。名前は、このルーターを超えて伝播されません。しかし、管理上の目的で、マルチポロジー環境のルーター全体で一貫した命名規則を設定するのは便利です。
[edit routing-options topologies family inet] user@PE1# set topology voice user@PE1# set topology video
コミュニティタグを適用して、ルーティングトポロジ名とBGPコミュニティ値を設定することで、音声とビデオのトポロジを識別します。
Junos OSでは、BGPのマルチポロジーサポートはBGPルートのコミュニティ値に基づいています。この構成では、トポロジと 1 つ以上のコミュニティ値の間の関連付けを決定し、トポロジ ルーティング テーブルに追加します。コミュニティ値が一致する BGP アップデートが到着すると、関連付けられたトポロジ ルーティング テーブルに複製されます。特定のトポロジーにどの BGP コミュニティ値を関連付けるかはユーザーが決定します。
この設定により、コミュニティ値 target:40:40 で受信した BGP 更新がトポロジ ルーティング テーブル :voice.inet.0 (およびデフォルト ルーティング テーブル inet.0)に追加されます。コミュニティ値 target:50:50 で受信した更新は、トポロジ ルーティング テーブル :video.inet.0 (およびデフォルト ルーティング テーブル inet.0)に追加されます。
[edit protocols bgp group ibgp family inet unicast] user@PE1# set topology voice community target:40:40 user@PE1# set topology video community target:50:50 [edit protocols bgp group ebgp family inet unicast] user@PE1# set topology voice community target:40:40 user@PE1# set topology video community target:50:50
特定のインターフェイスでマルチポロジー OSPF を有効または無効にします。
図 1 に示すように、マルチポロジー OSPF 指定は、目的のインターフェイスでのみ有効にします。デバイス P1 に面したインターフェイス fe-1/2/1.6 で、voice トポロジを有効にし、video トポロジを無効にします。デバイス P3 に面したインターフェイス fe-1/2/2.9 で、video トポロジを有効にし、voice トポロジを無効にします。
トポロジ ID が OSPF の下で設定されている場合、OSPF の下のすべてのインターフェイスでトポロジが自動的に有効になります。トポロジーを無効にする、またはメトリックを追加するには、明示的な設定を追加する必要があります。
読みやすくするために、トポロジ ID が設定されている場合にこのデフォルト動作が発生しても、各トポロジは必要な各 OSPF インターフェースの下で設定されます。リンクに高いメトリック値を設定して、利用可能な他のリンクよりもリンクの優先度を低くします。
[edit protocols ospf ] user@PE1# set topology voice topology-id 126 user@PE1# set topology video topology-id 52 [edit protocols ospf area 0.0.0.0] user@PE1# set interface fe-1/2/1.6 metric 10 user@PE1# set interface fe-1/2/1.6 topology video disable user@PE1# set interface fe-1/2/1.6 topology voice user@PE1# set interface fe-1/2/2.9 metric 10 user@PE1# set interface fe-1/2/2.9 topology voice disable user@PE1# set interface fe-1/2/2.9 topology video user@PE1# set interface lo0.93 passive
ファイアウォールフィルターを設定します。
ルーティング トポロジを設定した後、トラフィックはルーティング トポロジの転送テーブルを使用するためにファイアウォール フィルターを通過する必要があります。トラフィックが最初にコア ネットワークに入る基本的なルーティング トポロジでは、イングレス インターフェイスに入力ファイアウォール フィルターを適用します。さらに、マルチポロジー OSPF が設定されているインターフェイスにファイアウォール フィルターを追加します。すべてのルーターは、一貫した転送を保証し、ルーティングループやパケットロスを回避するために、パケットをトポロジに関連付けるために同じファイアウォールフィルターを使用する必要があります。
転送プレーンは、ルーターに入って特定のインターフェイスから出るトラフィックを処理します。トラフィックを検査し、指定されたトポロジの転送テーブルを使用してネクストホップ ルックアップを実行するには、ルーティング トポロジのサポートが必要な各インターフェイスで入力ファイアウォール フィルターを設定します。通常のファイアウォール フィルターを使用してパケットの特性を識別します。
一般に、アプリケーション レベルの差別化には、DiffServ コード ポイント(DSCP)を使用すると便利です。一致するファイアウォール フィルターがある場合、ファイアウォールはルート ルックアップに特定のトポロジの転送テーブルを使用するよう指示します。パケット属性は from 節で識別され、その後に then 節が続き、ネクストホップルックアップの転送に使用するトポロジ転送テーブルが示されます。この設定は、どのトラフィックがルーティング トポロジ転送テーブルを使用し、どのトラフィックがデフォルトの転送テーブルを使用するかをルーターに通知します。 default という名前の最後の条件は、デフォルト転送テーブルの使用を指定します。
これらのファイアウォール設定は、voice、video、およびデフォルト トラフィックのソートに使用される送信元アドレスと DSCP を表示します。DSCP は、CE デバイスで設定することも、CE デバイスの近くで設定することも、ネットワーク全体で情報が損なわれていないため、実用的です。たとえば、ここでは、サービス クラス(CoS)が優先トラフィック用に設定されています。DSCP は、異なるアプリケーションに同じ IP アドレスを使用する場合にも実用的です。
[edit firewall family inet filter ef_path] user@PE1# set term ef from forwarding-class expedited-forwarding user@PE1# set term ef then topology voice user@PE1# set term video from source-address 11.19.132.0/24 user@PE1# set term video from source-address 11.19.133.0/24 user@PE1# set term video from source-address 11.19.142.0/24 user@PE1# set term video from source-address 11.19.144.0/24 user@PE1# set term video then topology video user@PE1# set term default then accept
インターフェイスでCoSを有効にします。
[edit class-of-service interfaces] user@PE1# set fe-1/2/0 unit 2 classifiers inet-precedence default user@PE1# set fe-1/2/1 unit 6 classifiers inet-precedence default user@PE1# set fe-1/2/2 unit 9 classifiers inet-precedence default
結果
設定モードから、 、 、 、show protocols
show routing-options
show policy-options
show firewall
および のコマンドをshow interfaces
入力して、設定をshow class-of-service
確認します。出力結果に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@PE1# show interfaces fe-1/2/0 { unit 2 { description to-CE1; family inet { filter { input ef_path; } address 10.0.0.2/30; } } } fe-1/2/1 { unit 6 { description to-P1; family inet { filter { input ef_path; } address 10.0.0.6/30; } } } fe-1/2/2 { unit 9 { description to-P3; family inet { filter { input ef_path; } address 10.0.0.9/30; } } } lo0 { unit 93 { family inet { address 10.255.165.93/32 { primary; } } } }
user@PE1# show protocols bgp { group ibgp { type internal; local-address 10.255.165.93; family inet { unicast { topology voice { community target:40:40; } topology video { community target:50:50; } } } export nhs; 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 { topology voice { community target:40:40; } topology video { community target:50:50; } } } peer-as 101; neighbor 10.0.0.1; } } ospf { topology voice topology-id 126; topology video topology-id 52; area 0.0.0.0 { interface fe-1/2/1.6 { metric 10; topology video disable; topology voice; } interface fe-1/2/2.9 { metric 10; topology voice disable; topology video; } interface lo0.93 { passive; } } }
user@PE1# show policy-options policy-statement nhs { then { next-hop self; } }
user@PE1# show routing-options autonomous-system 100; topologies { family inet { topology voice; topology video; } }
user@PE1# show firewall family inet { filter ef_path { term ef { from { forwarding-class expedited-forwarding; } then topology voice; } term video { from { source-address { 11.19.132.0/24; 11.19.133.0/24; 11.19.142.0/24; 11.19.144.0/24; } } then topology video; } term default { then accept; } } }
user@PE1# show class-of-service interfaces { fe-1/2/0 { unit 2 { classifiers { inet-precedence default; } } unit 6 { classifiers { inet-precedence default; } } unit 9 { classifiers { inet-precedence default; } } } }
デバイスの設定が完了したら、設定モードから コミット を入力します。
検証
設定が正しく機能していることを確認します。
- OSPF インターフェイスの検証
- ルートの検証
- BGPネクストホップの解決の確認
- プロトコルのネクスト ホップの検証
- OSPF ネイバーの検証
- ルーター LSA の確認
- トラフィックがネットワークを通過する方法を確認する
OSPF インターフェイスの検証
目的
OSPF インターフェースが 1 つ以上のトポロジに属するように設定されていることを確認します。
アクション
動作モードから、 コマンドを show (ospf | ospf3) interface interface-name detail
入力します。
user@PE1> show ospf interface fe-1/2/1.6 detail Interface State Area DR ID BDR ID Nbrs fe-1/2/1.6 DR 0.0.0.0 10.255.165.93 10.255.165.99 1 Type: LAN, Address: 10.0.0.6, Mask: 255.255.255.252, MTU: 1500, Cost: 10 DR addr: 10.0.0.6, BDR addr: 10.0.0.5, Priority: 128 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: None Topology default (ID 0) -> Cost: 10 Topology video (ID 52) -> Disabled, Cost: 10 Topology voice (ID 126) -> Cost: 10
意味
この出力は、voice トポロジがデバイス PE1 上の fe-1/2/1.6 インターフェイスに追加されたことを示しています。トポロジ名は voice で、MT-ID は 126 です。このインターフェイスでは、videoトポロジは無効になっています。インターフェイスのコストは10です。
ルーターから発信され、ルーターによってフラッディングされた Router-LSA には、MT-ID やメトリックなどの特定のインターフェイスに関連するすべてのトポロジ情報が含まれます。MTR が OSPF インターフェースに設定されていない場合、Router-LSA にはそのインターフェースのトポロジ情報は含まれません。OSPF ネイバーは、マルチポロジー OSPF をサポートしている場合とそうでない場合があります。つまり、特定のリンクは、リンクの両端のルーターがそのリンクをトポロジの一部としてアナウンスしない限り、トポロジの OSPF ルートの計算には使用されません。マルチポロジー OSPF が隣接する OSPF ルーターでサポートされていない、またはそうするように設定されていない場合、ネイバーが受信した LSA のトポロジ情報は無視されます。
ルートの検証
目的
ルートが予想されるルーティングテーブルに含まれており、期待されるコミュニティがルートにアタッチされていることを確認します。
アクション
動作モードから、デバイス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 は、EBGP を介してデバイス CE1 からルートを学習し、そのルートを 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。ルートは、別の視点、つまり、IBGPルートとしてデバイスPE2から表示されています。同様に、この IBGP ルートは、デバイス PE2 の inet.0 と :voice.inet.0 の両方に追加されます。ただし、各ルートは同じプロトコルのネクスト ホップを持ちますが、各ルートには異なる転送ネクスト ホップ(ge-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からのこの出力は、11.19.130.0/24のプロトコルネクストホップ(IPアドレス10.255.165.93)を示し、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 つのルーティング テーブルすべてに存在します。この例では、デバイス PE2 に入る 11.19.130.0/24 宛てのトラフィックが、関連するトポロジに応じて異なるインターフェイスから出る方法も示しています。実際のトラフィックは、ファイアウォールフィルターがトラフィックに特定のトポロジルーティングテーブルを使用するよう指示できるような方法でマークされます。
OSPF ネイバーの検証
目的
予想されるトポロジが OSPF ネイバーで有効になっていることを確認します。
アクション
動作モードから、デバイスP2に show ospf neighbor 10.0.0.21 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 のデフォルトと動画はマルチポロジー OSPF 参加者です。 Bidirectional フラグは、ネイバーが同じマルチポロジー OSPF ID を使用して設定されていることを示しています。
ルーター LSA の確認
目的
動画と音声のトポロジーが有効になっているリンクを確認します。
アクション
動作モードから、デバイスP2に show ospf database lsa-id 10.255.165.203 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
コマンドを入力します。
最初の例の出力は、DSCP が設定されているデバイス CE1 からデバイス CE2 に向かう voice トポロジ上の traceroute を示しています。ルートは :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 ビットは、デバイス PE1 にトポロジ テーブル :voice.inet.0 を使用するよう指示します。voice ルーティング テーブルに video ルート用のエントリーがないため、トラフィックはドロップされます。
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