Express Segment LSP Configuration
エクスプレスセグメントを使用したエンドツーエンドのセグメントルーティングパスの確立
マルチドメインネットワークでエンドツーエンドのセグメントルーティングパスを確立するためにエクスプレスセグメントがどのように機能するかの利点、ユースケース、および概要について説明します。
- エクスプレスセグメントの利点
- 使用事例
- エクスプレスセグメントはどのように機能しますか?
- エクスプレスセグメントはどのように宣伝されますか?
- エクスプレスセグメントはパスコンピューティング要素によってどのように使用されますか?
エクスプレスセグメントの利点
-
エクスプレスセグメントは、アンダーレイパスのセグメントルーティング(SR)抽象化です。Express セグメントは、あらゆるアンダーレイ技術を使用して、エンドツーエンドの SR パスの確立を容易にします。 現在サポートされているアンダーレイ技術は、RSVP-TE と SR-TE です。RSVP-TEアンダーレイを介したエクスプレスセグメントについては、以下で説明します。
では 、ドメイン 2 はトラフィック制御管理に RSVP-TE アンダーレイ LSP を活用し、これらのアンダーレイ RSVP-TE LSP を隣接するドメイン(ドメイン 1 とドメイン 3)へのエクスプレス セグメントとして提示することで、エンドツーエンドの SR-TE パス確立を可能にします。図 1
図 1: マルチドメインエンドツーエンド SR-TE (RSVP アンダーレイ付き) -
Express セグメントは、SR セグメント リスト(セグメント リスト)を、ドメインごとに少なくとも 1 つのセグメント ID(SID)/ラベルに圧縮することで、暗黙的に SR セグメント リストのサイズを削減します。これは、エンドツーエンドのトラフィック制御による制約により、セグメントリストがイングレスルーターのラベル面付け機能を超える場合に役立ちます。これは、1つ以上のドメインがすでにトラフィックエンジニアリングパス管理用のSR-TEを実装している場合にも有益になります。
では 、ドメイン 2 が SR-TE を使用していることと、エクスプレス セグメントを使用することで、PE1 デバイスがマルチドメイン ネットワークを 5 つではなく 3 つのラベルを使用して通過できるようになったことを確認できます。図 2
図 2: ラベルスタックを削減したマルチドメインのエンドツーエンドSR-TE -
エクスプレスセグメントを使用すると、オペレーターはネットワークの抽象化を隣接するドメインや上位レイヤーシステムに提示できます。
一連の相互接続されたドメインまたはマルチドメインネットワークを介してトラフィックエンジニアリングパスを確立するには、各ネットワークドメインに関する一定量のトラフィックエンジニアリング情報が必要です。トポロジーの抽象化により、ポリシーを使用してドメイン間で接続できます。トポロジの抽象化は、必ずしもすべての可能な接続オプションを提供するわけではありませんが、ドメイン リソースの使用方法を決定するポリシーに従って、潜在的な接続のビューを提供します。ドメインは、ボーダーノード間の境界ノードエクスプレスセグメントのメッシュとして構築できます。
を使用すると 、 に示すように、PE2のエンドツーエンドのトラフィックエンジニアリングシステムのビューが、ローカルトラフィックエンジニアリングデータベース に表示されます。図 2図 3
図 3: 抽象化されたトラフィックエンジニアリングドメイン
使用事例
このセクションでは、エンドツーエンドの SR-TE 接続を確立するためのいくつかのユース ケースについて説明します。RFC7926 では、ドメイン間のトラフィック制御、リンク、ノード情報の交換を促進するアーキテクチャとともに、包括的な用語とユースケースを紹介しています。継続的な成長によりサービスプロバイダのネットワークが拡大するにつれて、マルチドメインネットワークが普及してきています。このようなマルチドメインネットワークでは、送信元から送信先への1つ以上のドメイン間にエンドツーエンドのトラフィック制御パスを確立する必要があります
Express セグメントを使用したドメイン内およびドメイン間の SR-TE 接続
Express セグメントには、ドメイン間でルーティング情報の交換が行われるときに、トラフィック制御情報を抽象化する機能があります。パス選択の基準として使用されるトラフィック制御情報は、トラフィック制御されたノードとリンクに関するデータです。トラフィックエンジニアリング情報には、IGP、トラフィックエンジニアリング、レイテンシーなどのリンクメトリック、またはアフィニティなどの管理リンク属性があります。エクスプレスセグメントは、アンダーレイLSPの抽象化を促進する仮想トラフィックエンジニアリングリンクとして最もよく説明されます。
拡張オンデマンドネクストホップ
拡張オンデマンドネクストホップ(EODN)(BGP トリガー SR ポリシーとも呼ばれます)は、サービス ルートの到着時に、制約付きでエンドツーエンドの SR-TE ポリシーの動的なプロビジョニングを容易にします。数百台のPEデバイスを抱える大規模なネットワークでは、すべてのエグレスPEに対して、任意のイングレスPEでトラフィックエンジニアリングポリシーを作成および維持することは困難です。色、特定のサービス(VPNごと、またはプレフィックスのグループごと)を考慮すると、物事はさらに複雑になり、保守とトラブルシューティングが困難になります。BGPによってトリガーされたSR-TEは、事前設定されたテンプレートに基づいて動的なSRトンネルを自動的に作成することで、タスクに対処します。すべてのエグレス PE の設定でイングレス PE をプロビジョニングする必要はありません。
エクスプレスセグメントはどのように機能しますか?
エクスプレスセグメントを使用して、相互接続されたトラフィックエンジニアリングネットワーク間にエンドツーエンドのトラフィックエンジニアリングパスを確立できます。Express セグメント(仮想トラフィック制御リンクとも呼ばれます)は、アンダーレイ LSP に一致するポリシーを通じて動的に生成されます。エクスプレスセグメントとそれに対応する抽象化されたトポロジー( RFC7926で必要)は、ポリシーを使用して生成されます。
ポリシーを適用するには、[ ] 階層レベルに 設定ステートメントを含めます。policy policy-name
edit protocols express-segment traffic-engineering
は オプションです。policy-name
ポリシー名が定義されていない場合、ポリシーはすべてのエクスプレスセグメントをローカルトラフィック制御データベースに暗黙的にインポートします。エクスプレスセグメントテンプレートは、エクスプレスリンクの1対1のマッピングを自動的に作成します。
エクスプレスセグメントを設定するには、[]階層レベルの下に 設定ステートメントを含め ます。express-segment
edit protocols
C1 と C4 のボーダーノード間に表示される RSVP-TE LSP のペアと、アンダーレイ LSP を表すエクスプレス セグメントがどのように生成されるかを参照 して使用してみましょう。図 1では 、2つのRSVP-TE(金およびリキッドゴールド)LSPを単一のエクスプレスセグメントとして表すポリシーが作成されます。図 4
以下は、ポリシー名が正規表現とRSVP-TE LSP のエンドポイントによって照合されるポリシーの例です。
protocols { express-segment-set gold-exp-seg { policy gold; } } policy-options { policy-statement gold { from { route-filter 10/8 { install-next-hop lsp-regex *gold; } } then accept; } }
次のサンプル出力では、新しく作成されたエクスプレスセグメント()とトラフィック制御属性がアンダーレイRSVP-TEトンネルから継承されていることがわかります。Gold-Exp-Set-192.168.1.4
user@C1#show express-segments name gold-exp-seg-192.168.1.4 detail
Gold-Exp-Set-192.168.1.4
To: 192.168.1.4, Set: gold-exp-set
Status: Up (since 4d 11:09:05)
Label: 19 (Route installed in mpls.0, TED entry added)
LinkAttributes:
ID: 2147483655
TE-Metric: 10*, IGP-Metric: 30
AdminGroups: gold, liquid-gold
SRLGs: fiber-span-101
BW: 1000Mbps
UnderlayPaths:
RSVP-LSP C1_to_C4_gold
TE-Metric: 30, IGP-Metric: 30
AdminGroups: gold
SRLGs: fiber-span-101
BW: 500Mbps
RSVP-LSP C1_to_C4_liquid_gold
TE-Metric: 30, IGP-Metric: 30
AdminGroups: liquid-gold
SRLGs: None
BW: 500Mbps
出力では、次のことがわかります。
-
エクスプレスセグメント()の自動命名。
Gold-Exp-Set-192.168.1.4
-
アンダーレイ RSVP-LSP のトラフィック制御属性(帯域幅、メトリック、管理グループ、SRLG)は、Express セグメントに継承されます。
-
エクスプレスセグメントは番号なしのトラフィックエンジニアリングリンクであり、トラフィックエンジニアリングデータベースに追加されています。
-
ラベル19が割り当てられ、SR仮想トラフィック制御リンクの隣接SIDとして転送テーブルにインストール されています。
mpls.0
次に、SR-TE LSP 宛先が一致する例を示します。
protocols { express-segments { segment-set set1sr { membership-policy expresspolsr1; } traffic-engineering; } policy-options { policy-statement expresspolsr1 { from { protocol spring-te; route-filter 3.3.3.3/32 exact; } then accept;
次のサンプル出力では、色なしの SR-TE アンダーレイ トンネルから新しく作成されたエクスプレス セグメント()を確認できます。set1sr-3.3.3.3
user@C1show express-segments detail Name: set1sr-3.3.3.3 To: 3.3.3.3, Type: Dynamic (Set: set1sr) Label: 16 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 5d 20:37:08) LinkAttributes: LocalID: 2147483649 TE-Metric: 20, IGP-Metric: 20 BW: 0bps UnderlayPaths: 1 SRTE LSP: lsp1to3_sr TE-Metric: 0, IGP-Metric: 0 BW: 0bps
エクスプレスセグメントはどのように宣伝されますか?
Express セグメントは、BGP リンク ステートを使用して、ドメインの境界を越えて、または上位レベルのコントローラやパス コンピューティング要素(PCE)にアドバタイズされます。BGPリンクステートを介して情報を交換する場合、BGPリンクステートの拡張機能を使用して、トラフィックエンジニアリングリンクとしてエクスプレスセグメントをアドバタイズします。エクスプレスセグメントトラフィック制御リンクおよびその他の通常のトラフィック制御リンクは、ネットワーク内の任意のLSRのトラフィック制御リンク状態データベースに表示され、エンドツーエンドのトラフィック制御パスの計算に使用されます。Express セグメント トラフィック エンジニアリング データベースのエントリーは、次のトラフィック エンジニアリング データベースのインポートおよびエクスポート設定を使用して、BGP リンク ステートを介してテーブル fまたはアドバタイズメントからインポートおよびエクスポートされます。lsdist.0
protocols { mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy es_2_bgpls; } export { policy bgpls_2_ted; } } } } bgp { group te-peers { family traffic-engineering { unicast; } export abstract-topo; } } }
は、BGP-LSがアドバタイズに使用するローカルトラフィック制御データベースとRIBの間で、トラフィック制御リンクとノードがどのようにミラーリングされるかを 視覚的に表現します。図 5lsdist.0 図に示すように、いくつかのポリシーアタッチメントポイントがあります。
エクスプレスセグメントはパスコンピューティング要素によってどのように使用されますか?
BGPリンクステートのエクスポートポリシーは、トラフィックエンジニアリングされたピアにアドバタイズされる抽象的またはカスタマイズされたトポロジーを作成するのに効果的な場所です。例えば、トラフィック制御されたトポロジーが に示すように抽象化 されるように、エクスプレスセグメントとドメイン 3 の TE リンクとノードのみを PE2 にアドバタイズすることができます。図 6抽象化されたビューは、エンドツーエンドのパス計算のためにPE2によって使用されます。
以下は、C1でのBGPリンクステートエクスポートポリシーの設定例です。
policy-options { policy-statement abstract-topo { from { traffic-engineering { protocol express-segment; ipv4-prefix { as 3; } } } then accept; } }
次に、PE2からPE3へのエンドツーエンドのマルチドメインパスを確立するためのPE2ルーターでのSRポリシー設定の例を示します。
protocols { source-packet-routing { source-routing-path pe2-to-pe3 { to 192.168.70.1; color 10; primary { sl1 { compute { profile_any-path; } } } } } }
結果として得られるエンドツーエンドのパスは、 で 表されます。図 7エクスプレスセグメントの隣接SID(ラベル19)がSRセグメントリストで使用されているため、ドメイン2内のゴールドとリキッドゴールドの両方のRSVP-TEでトラフィックが負荷分散されていることがわかります。
例:RSVP-TE アンダーレイを介したエクスプレス セグメント を使用したドメイン間 SR-TE 接続
この例では、エクスプレス セグメントを使用してエンドツーエンドのドメイン間 SR-TE 接続を確立する方法について説明します。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
-
プロバイダーエッジ、ボーダーノード、中間ルーターとしてのMXシリーズルーター。
-
すべてのデバイスでJunos OS Release 20.4R1以降が動作していること。
概要
次のトポロジー()は、RSVP-TE(AS200)ドメインを介して相互接続された、EBGP-LSを実行している2つのSR-TEドメイン(AS100およびAS300)を示しています。図 8
トポロジー
このトポロジーでは、PE1 ルーターから PE2 ルーターへのエンドツーエンドの SR-TE パスが確立されます。EGRESSピアエンジニアリング(EPE)セグメントは、PE1ルーターとPE2ルーターで定義され、直接接続されたボーダーノードBN1/BN2とBN3/BN4にそれぞれトラフィックを誘導します。ボーダーノードで定義されたEPEセグメントは、BGPリンクステートを通じて内部的にアドバタイズされます。これら 2 つの SR-TE ドメインは、内部パス確立に RSVP-TE LSP を活用しているドメイン(AS200)を介して相互接続されています。
AS200ドメインのボーダーノードにより、ドメイン間のSR-TE情報の抽象化が容易になります。エクスプレス・セグメントは、ボーダー・ノード (BN1、BN2、BN3、および BN4) 上に作成されます。エクスプレスセグメントは、基盤となるRSVP-TE LSPと1対1の関係で作成され、すべてのエクスプレスセグメントは、後続のBGPリンクステートアドバタイズのためにボーダーノードのローカルTEデータベースに挿入されます。AS200 ドメインは、TE 管理用の RSVP-TE LSP アンダーレイを活用し、これらのアンダーレイ RSVP-TE LSP を AS100 および AS300 ドメインのエクスプレス セグメントとして提示することで、ドメインがエンドツーエンドの SR-TE LSP 接続を持つことを可能にします。
次の表では、トポロジ内のドメイン、ルーター、および接続について説明します。
ドメイン |
デバイス |
ルーターID/LO)アドレス |
接続の詳細 |
---|---|---|---|
AS65100 (EBGP-LS/ SR-TE LSP) |
R0(PE1ルーター) |
10.100.100.100 10.100.100.101 |
インターフェイスge-0/0/0を介してR1(BN1ルーター)に接続され、IPアドレス192.168.1.1/24が割り当てられました。 インターフェイスge-0/0/2を介してR4(BN2ルーター)に接続され、IPアドレス192.168.2.1/24が割り当てられました。 |
AS65200 (RSVP-TE LSP) |
R1(BN1ルーター) |
1 0.1.1.1 |
インターフェイスge-0/0/0を介してR0(PE1ルーター)に接続され、割り当てられたIPアドレス192.168.1.2/24。 インターフェイスge-0/0/3を介してR4(BN2ルーター)に接続され、IPアドレス192.168.4.1/24が割り当てられました。 インターフェイスge-0/0/2を介してR2(中間ルーター)に接続され、IPアドレス192.168.3.1/24が割り当てられました。 インターフェイスge-0/0/4を介してR5(中間ルーター)に接続され、IPアドレス192.168.5.1/24が割り当てられました。 |
R4(BN2ルータ) |
10.4.4.4 |
インターフェイスge-0/0/0を介してR0(PE1ルーター)に接続され、IPアドレス192.168.2.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR1(BN1ルーター)に接続され、IPアドレス192.168.4.2/24が割り当てられました。 インターフェイスge-0/0/3を介してR2(中間ルーター)に接続され、IPアドレス192.168.7.1/24が割り当てられました。 インターフェイスge-0/0/4を介してR5(中間ルーター)に接続され、IPアドレス192.168.13.1/24が割り当てられました。 |
|
R2(中間ルーター) |
10.2.2.2 |
インターフェイスge-0/0/0を介してR1(BN1ルーター)に接続され、IPアドレス192.168.3.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR4(BN2ルーター)に接続され、割り当てられたIPアドレス192.168.7.1/24。 インターフェイスge-0/0/3を介してR5(中間ルーター)に接続され、IPアドレス192.168.8.1/24が割り当てられました。 インターフェイスge-0/0/1を介してR3(BN3ルーター)に接続され、IPアドレス192.168.6.1/24が割り当てられました。 インターフェイスge-0/0/4を介してR6(BN4ルーター)に接続され、IPアドレス192.168.9.1/24が割り当てられました。 |
|
R5(中間ルータ) |
10.5.5.5 |
インターフェイスge-0/0/0を介してR1(BN1ルーター)に接続され、IPアドレス192.168.5.2/24が割り当てられました。 インターフェイスge-0/0/3を介してR4(BN2ルーター)に接続され、IPアドレス192.168.13.2/24が割り当てられました。 インターフェイスge-0/0/1を介してR2(中間ルーター)に接続され、IPアドレス192.168.8.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR3(BN3ルーター)に接続され、割り当てられたIPアドレス192.168.10.2/24。 インターフェイスge-0/0/4を介してR6(BN4ルーター)に接続され、IPアドレス192.168.14.1/24が割り当てられました。 |
|
R3(BN3ルーター) |
10.3.3.3 |
インターフェイスge-0/0/3を介してR7(PE2ルーター)に接続され、IPアドレス192.168.12.1/24が割り当てられました。 インターフェイスge-0/0/2を介してR6(BN4ルーター)に接続され、割り当てられたIPアドレス192.168.11.1/24。 インターフェイスge-0/0/0を介してR2(中間ルーター)に接続され、IPアドレス192.168.6.2/24が割り当てられました。 インターフェイスge-0/0/1を介してR5(中間ルーター)に接続され、IPアドレス192.168.10.1/24が割り当てられました。 |
|
R6(BN4ルーター) |
10.6.6.6 |
インターフェイスge-0/0/3を介してR7(PE2ルーター)に接続され、IPアドレス192.168.15.1/24が割り当てられました。 インターフェイスge-0/0/1を介してR3(BN3ルーター)に接続され、IPアドレス192.168.11.2/24が割り当てられました。 インターフェイスge-0/0/0を介してR2(中間ルーター)に接続され、IPアドレス192.168.9.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR5(中間ルーター)に接続され、IPアドレス192.168.14.2/24が割り当てられました。 |
|
AS65300(EBGP-LS/SR-TE LSP) |
R7:(PE2ルーター) |
10.7.7.7 |
インターフェイスge-0/0/0を介してR3(BN3ルーター)に接続され、割り当てられたIPアドレス192.168.12.2/24。 インターフェイスge-0/0/1を介してR6(BN4ルーター)に接続され、IPアドレス192.168.15.2/24が割り当てられました。 |
設定
マルチドメインネットワークを相互接続し、エクスプレスセグメントを使用してエンドツーエンドのSRパスを確立するには、以下のタスクを実行します。
- CLIクイック構成
- R0(PE1ルーター)の設定
- R1(BN1ルーター)を設定します。
- R4(BN2ルーター)を設定します。
- R2(中間ルーター)の設定
- R5(中間ルーター)の設定
- R3(BN3ルーター)の設定
- R6(BN4ルーター)の設定
- R7(PE2ルーター)の設定
CLIクイック構成
この例を迅速に設定するには、以下のコマンドをコピーして、テキストファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを [edit]
階層レベルでCLIにコピーアンドペーストして、設定モードから commit
を入力します。
デバイス R0(PE1 ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R1_1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4_1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.100.100.100/32 set interfaces lo0 unit 0 family inet address 10.100.100.101/32 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 set routing-options static route 10.7.7.71/32 resolve set routing-options router-id 10.100.100.100 set routing-options autonomous-system 65100 set routing-options forwarding-table ecmp-fast-reroute set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_epe set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group brown set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.2.2 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group brown set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface all set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing compute-profile ecompute1 admin-group include-any red set protocols source-packet-routing compute-profile ecompute1 admin-group include-any brown set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression set protocols source-packet-routing compute-profile ecompute2 admin-group include-any red set protocols source-packet-routing compute-profile ecompute2 admin-group include-any blue set protocols source-packet-routing compute-profile ecompute2 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1 set protocols source-packet-routing source-routing-path ecomputelsp2 to 10.7.7.7 set protocols source-packet-routing source-routing-path ecomputelsp2 color 7001 set protocols source-packet-routing source-routing-path ecomputelsp2 primary p1 compute ecompute2
デバイスR1(BN1ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R0_1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R2 set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description to-R4 set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description to-R5 set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.1.1.1/32 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp1to6_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp1to3_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.1.1.1 set routing-options autonomous-system 65200 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.1.1.1 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols express-segments segment-template template1 admin-group red set protocols express-segments segment-template template1 metric te 200 set protocols express-segments segment-template template1 metric igp 100 set protocols express-segments segment-set r1-exp-set1 membership-policy expresspol1 set protocols express-segments segment-set r1-exp-set1 template template1 set protocols express-segments segment-set r1-exp-set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp1to6_a to 10.6.6.6 set protocols mpls label-switched-path lsp1to6_a admin-group include-any brown set protocols mpls label-switched-path lsp1to6_a admin-group include-any red set protocols mpls label-switched-path lsp1to6_b to 10.6.6.6 set protocols mpls label-switched-path lsp1to6_b admin-group include-any brown set protocols mpls label-switched-path lsp1to6_b admin-group include-any blue set protocols mpls label-switched-path lsp1to6_c to 10.6.6.6 set protocols mpls label-switched-path lsp1to6_c admin-group include-any blue set protocols mpls label-switched-path lsp1to3_a to 10.3.3.3 set protocols mpls label-switched-path lsp1to3_a admin-group include-any brown set protocols mpls label-switched-path lsp1to3_a admin-group include-any red set protocols mpls label-switched-path lsp1to3_b to 10.3.3.3 set protocols mpls label-switched-path lsp1to3_b admin-group include-any blue set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group brown set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface all set protocols rsvp interface all link-protection
デバイスR4(BN2ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R0 set interfaces ge-0/0/0 unit 0 family inet address 192.168.2.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R2 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R5 set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp4to6_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp4to3_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.4.4.4 set routing-options autonomous-system 65200 set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.4.4.4 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown set protocols express-segments segment-set r4-exp-set1 membership-policy expresspol1 set protocols express-segments segment-set r4-exp-set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp4to6_a to 10.6.6.6 set protocols mpls label-switched-path lsp4to6_a admin-group include-any brown set protocols mpls label-switched-path lsp4to6_a admin-group include-any red set protocols mpls label-switched-path lsp4to6_b to 10.6.6.6 set protocols mpls label-switched-path lsp4to6_b admin-group include-any blue set protocols mpls label-switched-path lsp4to3_a to 10.3.3.3 set protocols mpls label-switched-path lsp4to3_a admin-group include-any brown set protocols mpls label-switched-path lsp4to3_a admin-group include-any red set protocols mpls label-switched-path lsp4to3_b to 10.3.3.3 set protocols mpls label-switched-path lsp4to3_b admin-group include-any brown set protocols mpls label-switched-path lsp4to3_c to 10.3.3.3 set protocols mpls label-switched-path lsp4to3_c admin-group include-any brown set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
デバイスR2(中間ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R3 set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4 set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R5 set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.2.2.2/32 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis set policy-options policy-statement nlri2bgp_igp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering set policy-options policy-statement ted2nlri_1 term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.2.2.2 set routing-options autonomous-system 65200 set protocols bgp group RR1 type internal set protocols bgp group RR1 local-address 10.2.2.2 set protocols bgp group RR1 family traffic-engineering unicast set protocols bgp group RR1 neighbor 10.1.1.1 set protocols bgp group RR1 neighbor 10.3.3.3 set protocols bgp group RR1 neighbor 10.6.6.6 set protocols bgp group RR1 neighbor 10.4.4.4 set protocols bgp cluster 10.2.2.2 set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
デバイスR5(中間ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R2 set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R3 set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R4 set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.5.5.5/32 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.5.5.5 set routing-options autonomous-system 65200 set protocols bgp group RR2 type internal set protocols bgp group RR2 family inet unicast set protocols bgp group RR2 family traffic-engineering unicast set protocols bgp group RR2 neighbor 10.1.1.1 set protocols bgp group RR2 neighbor 10.3.3.3 set protocols bgp group RR2 neighbor 10.6.6.6 set protocols bgp group RR2 neighbor 10.4.4.4 set protocols bgp cluster 10.5.5.5 set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 set protocols isis interface ge-0/0/4.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
デバイスR3(BN3ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R2 set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R5 set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R6 set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R7 set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.3.3.3/32 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.3.3.3 set routing-options autonomous-system 65200 set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.3.3.3 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown set protocols bgp group ebgp1 vpn-apply-export set protocols express-segments segment-set set1 membership-policy expresspol1 set protocols express-segments segment-set set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface ge-0/0/3.0 passive set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp3to1_a to 10.1.1.1 set protocols mpls label-switched-path lsp3to1_a admin-group include-any red set protocols mpls label-switched-path lsp3to1_a admin-group include-any brown set protocols mpls label-switched-path lsp3to4_a to 10.4.4.4 set protocols mpls label-switched-path lsp3to4_a admin-group include-any red set protocols mpls label-switched-path lsp3to4_a admin-group include-any brown set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
デバイスR6(BN4ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R2 set interfaces ge-0/0/0 unit 0 family inet address 192.168.9.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R3 set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R5 set interfaces ge-0/0/2 unit 0 family inet address 192.168.14.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R7 set interfaces ge-0/0/3 unit 0 family inet address 192.168.15.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.6.6.6/32 set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp6to1_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp6to4_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.6.6.6 set routing-options autonomous-system 65200 set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.6.6.6 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.15.2 peer-as 65300 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 label 7167 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.15.2 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown set protocols express-segments segment-set set1 membership-policy expresspol1 set protocols express-segments segment-set set2 membership-policy expresspol2 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface ge-0/0/2.0 set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-switched-path lsp6to1_a to 10.1.1.1 set protocols mpls label-switched-path lsp6to1_a admin-group include-any red set protocols mpls label-switched-path lsp6to1_a admin-group include-any brown set protocols mpls label-switched-path lsp6to4_a to 10.4.4.4 set protocols mpls label-switched-path lsp6to4_a admin-group include-any red set protocols mpls label-switched-path lsp6to4_a admin-group include-any brown set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface ge-0/0/0.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group brown set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface all set protocols rsvp interface all link-protection
デバイスR7(PE2ルーター)
set chassis network-services enhanced-ip set interfaces ge-0/0/0 description To_R3 set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R6 set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.7.7.7/32 set interfaces lo0 unit 0 family inet address 10.7.7.71/32 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options resolution-map map1 mode ip-color set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 set routing-options static route 10.100.100.101/32 resolve set routing-options router-id 10.7.7.7 set routing-options autonomous-system 65300 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_epe set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group brown set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group red set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group brown set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups brown 5 set protocols mpls label-range static-label-range 7000 70000 set protocols mpls interface all set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
R0(PE1ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR0を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R0#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
[edit] user@R0#set interfaces ge-0/0/0 description To_R1_1 user@R0#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 user@R0#set interfaces ge-0/0/0 unit 0 family iso user@R0#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R0#set interfaces ge-0/0/2 description To_R4_1 user@R0#set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 user@R0#set interfaces ge-0/0/2 unit 0 family iso user@R0#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.100/32 user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.101/32 user@R0#set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R0#set routing-options router-id 10.100.100.100 user@R0#set routing-options autonomous-system 65100 user@R0#set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 user@R0#set routing-options static route 10.7.7.71/32 resolve
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R0#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R0#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R0#set policy-options policy-statement pplb then load-balance per-packet user@R0#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement ted2nlri term 1 then accept
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズを有効にし、EPE リンクを定義します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R0#set protocols bgp group ebgp1 type external user@R0#set protocols bgp group ebgp1 family inet unicast user@R0#set protocols bgp group ebgp1 family traffic-engineering unicast user@R0#set protocols bgp group ebgp1 export nlri2bgp_epe user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group brown user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.2.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group brown
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R0#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R0#set protocols mpls traffic-engineering database import policy ted2nlri user@R0#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R0#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R0#set protocols mpls admin-groups red 0 user@R0#set protocols mpls admin-groups blue 1 user@R0#set protocols mpls admin-groups brown 5
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R0#set protocols mpls label-range static-label-range 7000 70000
-
インターフェイスに MPLS を設定します。
[edit] user@R0#set protocols mpls interface all
-
イングレス ルーターで SR-TE ポリシーを設定して、エンドツーエンドの SR-TE ポリシーを有効にします。
[edit] user@R0#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R0#set protocols source-packet-routing compute-profile ecompute1 admin-group include-any red user@R0#set protocols source-packet-routing compute-profile ecompute1 admin-group include-any brown user@R0#set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression user@R0#set protocols source-packet-routing compute-profile ecompute2 admin-group include-any red user@R0#set protocols source-packet-routing compute-profile ecompute2 admin-group include-any blue user@R0#set protocols source-packet-routing compute-profile ecompute2 no-label-stack-compression user@R0#set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 user@R0#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 color 7001 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 primary p1 compute ecompute2
結果
設定モードから、show chassis
、show interfaces
、show policy-options
show routing-options
、およびshow protocols
のコマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1_1; unit 0 { family inet { address 192.168.1.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4_1; unit 0 { family inet { address 192.168.2.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.100.100.100/32; } family iso { address 49.0001.000a.0a0a.0a00; } } } } policy-options { policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } } routing-options { static { route 10.7.7.71/32 { next-hop 10.7.7.7; resolve; } } router-id 10.100.100.100; autonomous-system 65100; forwarding-table { ecmp-fast-reroute; } } protocols { bgp { group ebgp1 { type external; family inet { unicast; } family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 192.168.1.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR1 { label 7101; next-hop 192.168.1.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.2.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR4 { label 7104; next-hop 192.168.2.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface all; } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } compute-profile ecompute1 { admin-group include-any [ red brown ]; no-label-stack-compression; } compute-profile ecompute2 { admin-group include-any [ red blue ]; no-label-stack-compression; } source-routing-path computelsp1 { to 10.7.7.7; install 10.7.7.71; primary { p1 { compute { compute1; } } } } source-routing-path ecomputelsp1 { to 10.7.7.7; color 7000; primary { p1 { compute { ecompute1; } } } } source-routing-path ecomputelsp2 { to 10.7.7.7; color 7001; primary { p1 { compute { ecompute2; } } } } } }
R1(BN1ルーター)を設定します。
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR1を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R1#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
[edit] user@R1#set interfaces ge-0/0/0 description To_R0_1 user@R1#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 user@R1#set interfaces ge-0/0/0 unit 0 family iso user@R1#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/2 description To_R2 user@R1#set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 user@R1#set interfaces ge-0/0/2 unit 0 family iso user@R1#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/3 description to-R4 user@R1#set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 user@R1#set interfaces ge-0/0/3 unit 0 family iso user@R1#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/4 description to-R5 user@R1#set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 user@R1#set interfaces ge-0/0/4 unit 0 family iso user@R1#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R1#set interfaces lo0 unit 0 family inet address 10.1.1.1/32 user@R1#set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R1#set routing-options router-id 10.1.1.1 user@R1#set routing-options autonomous-system 65200
-
インポートおよびエクスポートポリシーを定義します。例えば、EPE TE リンクをローカル TE データベースから lsdist.0 にエクスポートするポリシーや、lsdist.0 からローカル TE データベースにインポートするポリシーを設定します。ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R1#set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp1to6_a user@R1#set policy-options policy-statement expresspol1 then accept user@R1#set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp1to3_a user@R1#set policy-options policy-statement expresspol2 then accept user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R1#set policy-options policy-statement pplb then load-balance per-packet user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズを有効にし、EPE リンクを定義します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R1#set protocols bgp group ebgp1 type external user@R1#set protocols bgp group ebgp1 family inet-vpn unicast user@R1#set protocols bgp group ebgp1 family traffic-engineering unicast user@R1#set protocols bgp group ebgp1 export nlri2bgp_stat user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown user@R1#set protocols bgp group ibgp1 type internal user@R1#set protocols bgp group ibgp1 local-address 10.1.1.1 user@R1#set protocols bgp group ibgp1 family traffic-engineering unicast user@R1#set protocols bgp group ibgp1 export nlri2bgp_epe user@R1#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R1#set protocols bgp group ibgp1 neighbor 10.5.5.5
-
高速セグメントセットと高速セグメントテンプレートを設定します。エクスプレスセグメントテンプレートが行うことは、アンダーレイ属性が何であるかに関係なく、継承された属性をエクスプレスセグメントに手動で割り当てたり上書きしたりすることです。エクスプレス・セグメント名は 、自動命名のためにアンダーレイ・エンドポイントの先頭に付けられます。
r1-exp-set1
[edit] user@R1#set protocols express-segments segment-template template1 admin-group red user@R1#set protocols express-segments segment-template template1 metric te 200 user@R1#set protocols express-segments segment-template template1 metric igp 100 user@R1#set protocols express-segments segment-set r1-exp-set1 membership-policy expresspol1 user@R1#set protocols express-segments segment-set r1-exp-set1 template template1 user@R1#set protocols express-segments segment-set r1-exp-set2 membership-policy expresspol2 user@R1#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS プロトコルを設定し、それらのインターフェイスに MPLS 管理グループを適用します。
[edit] user@R1#set protocols isis interface ge-0/0/2.0 user@R1#set protocols isis interface ge-0/0/3.0 user@R1#set protocols isis interface ge-0/0/4.0 user@R1#set protocols isis interface lo0.0 passive user@R1#set protocols isis level 1 disable user@R1#set protocols isis level 2 wide-metrics-only user@R1#set protocols mpls interface ge-0/0/3.0 admin-group red user@R1#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R1#user@R1#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R1#set protocols mpls interface all
-
すべての RSVP インターフェイスでリンク保護を有効にします。リンク保護を使用すると、壊れたリンクの周りでトラフィックを迅速に再ルーティングするようにネットワークを構成できます。
[edit] user@R1#set protocols rsvp interface all link-protection
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R1#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R1#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R1#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R1#set protocols mpls admin-groups red 0 user@R1#set protocols mpls admin-groups blue 1 user@R1#set protocols mpls admin-groups brown 5
-
ラベルスイッチパス(LSP)でMPLSを設定し、管理グループを含めます。
[edit] user@R1#set protocols mpls label-switched-path lsp1to6_a to 10.6.6.6 user@R1#set protocols mpls label-switched-path lsp1to6_a admin-group include-any brown user@R1#set protocols mpls label-switched-path lsp1to6_a admin-group include-any red user@R1#set protocols mpls label-switched-path lsp1to6_b to 10.6.6.6 user@R1#set protocols mpls label-switched-path lsp1to6_b admin-group include-any brown user@R1#set protocols mpls label-switched-path lsp1to6_b admin-group include-any blue user@R1#set protocols mpls label-switched-path lsp1to6_c to 10.6.6.6 user@R1#set protocols mpls label-switched-path lsp1to6_c admin-group include-any blue user@R1#set protocols mpls label-switched-path lsp1to3_a to 10.3.3.3 user@R1#set protocols mpls label-switched-path lsp1to3_a admin-group include-any brown user@R1#set protocols mpls label-switched-path lsp1to3_a admin-group include-any red user@R1#set protocols mpls label-switched-path lsp1to3_b to 10.3.3.3 user@R1#set protocols mpls label-switched-path lsp1to3_b admin-group include-any blue user@R1#set protocols mpls label-range static-label-range 7000 70000
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0_1; unit 0 { family inet { address 192.168.1.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R2; unit 0 { family inet { address 192.168.3.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description to-R4; unit 0 { family inet { address 192.168.4.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description to-R5; unit 0 { family inet { address 192.168.5.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.1.1.1/32; } family iso { address 49.0001.0001.0101.0100; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.6.6.6/32 exact { install-nexthop lsp lsp1to6_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.3.3.3/32 exact { install-nexthop lsp lsp1to3_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.1.1.1; autonomous-system 65200; } protocols { bgp { group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.1.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8110; next-hop 192.168.1.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } group ibgp1 { type internal; local-address 10.1.1.1; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } } express-segments { segment-template template1 { admin-group red; metric { te 200; igp 100; } } segment-set r1-exp-set1 { membership-policy expresspol1; template { template1; } } segment-set r1-exp-set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp1to6_a { to 10.6.6.6; admin-group include-any [ brown red ]; } label-switched-path lsp1to6_b { to 10.6.6.6; admin-group include-any [ brown blue ]; } label-switched-path lsp1to3_a { to 10.3.3.3; admin-group include-any [ brown red ]; } label-switched-path lsp1to3_b { to 10.3.3.3; admin-group include-any [ blue ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/4.0 { admin-group blue; } interface all; } rsvp { interface all { link-protection; } } }
R4(BN2ルーター)を設定します。
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR4を設定します。
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R4#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R4#set interfaces ge-0/0/0 description To_R0 user@R4#set interfaces ge-0/0/0 unit 0 family inet address 192.168.2.2/24 user@R4#set interfaces ge-0/0/0 unit 0 family iso user@R4#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/2 description To_R1 user@R4#set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 user@R4#set interfaces ge-0/0/2 unit 0 family iso user@R4#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/3 description To_R2 user@R4#set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.2/24 user@R4#set interfaces ge-0/0/3 unit 0 family iso user@R4#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/4 description To_R5 user@R4#set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 user@R4#set interfaces ge-0/0/4 unit 0 family iso user@R4#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R4#set interfaces lo0 unit 0 family inet address 10.4.4.4/32 user@R4#set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R4#set routing-options router-id 10.4.4.4 user@R4#set routing-options autonomous-system 65200
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R4#set policy-options policy-statement expresspol1 from route-filter 10.6.6.6/32 exact install-nexthop lsp lsp4to6_a user@R4#set policy-options policy-statement expresspol1 then accept user@R4#set policy-options policy-statement expresspol2 from route-filter 10.3.3.3/32 exact install-nexthop lsp lsp4to3_a user@R4#set policy-options policy-statement expresspol2 then accept user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R4#set policy-options policy-statement pplb then load-balance per-packet user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
高速セグメントセットと高速セグメントテンプレートを設定します。エクスプレスセグメントテンプレートが行うことは、アンダーレイ属性が何であるかに関係なく、継承された属性をエクスプレスセグメントに手動で割り当てたり上書きしたりすることです。エクスプレス・セグメント名は 、自動命名のためにアンダーレイ・エンドポイントの先頭に付けられます。
r4-exp-set1
[edit] user@R4#set protocols express-segments segment-set r4-exp-set1 membership-policy expresspol1 user@R4#set protocols express-segments segment-set r4-exp-set2 membership-policy expresspol2 user@R4#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS と MPLS プロトコルを設定します。
[edit] user@R4#set protocols isis interface ge-0/0/0.0 user@R4#set protocols isis interface ge-0/0/2.0 user@R4#set protocols isis interface ge-0/0/3.0 user@R4#set protocols isis interface ge-0/0/4.0 user@R4#set protocols isis interface lo0.0 passive user@R4#set protocols isis level 1 disable user@R4#set protocols isis level 2 wide-metrics-only user@R4#set protocols mpls interface ge-0/0/2.0 admin-group red user@R4#set protocols mpls interface ge-0/0/4.0 admin-group brown user@R4#set protocols mpls interface all
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R4#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R4#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R4#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R4#set protocols mpls admin-groups red 0 user@R4#set protocols mpls admin-groups blue 1 user@R4#set protocols mpls admin-groups brown 5
-
ラベルスイッチパス(LSP)でMPLSを設定し、管理グループを含めます。
[edit] user@R4#set protocols mpls label-switched-path lsp4to6_a to 10.6.6.6 user@R4#set protocols mpls label-switched-path lsp4to6_a admin-group include-any brown user@R4#set protocols mpls label-switched-path lsp4to6_a admin-group include-any red user@R4#set protocols mpls label-switched-path lsp4to6_b to 10.6.6.6 user@R4#set protocols mpls label-switched-path lsp4to6_b admin-group include-any blue user@R4#set protocols mpls label-switched-path lsp4to3_a to 10.3.3.3 user@R4#set protocols mpls label-switched-path lsp4to3_a admin-group include-any brown user@R4#set protocols mpls label-switched-path lsp4to3_a admin-group include-any red user@R4#set protocols mpls label-switched-path lsp4to3_b to 10.3.3.3 user@R4#set protocols mpls label-switched-path lsp4to3_b admin-group include-any brown user@R4#set protocols mpls label-switched-path lsp4to3_c to 10.3.3.3 user@R4#set protocols mpls label-switched-path lsp4to3_c admin-group include-any brown
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R4#set protocols mpls label-range static-label-range 7000 70000
-
すべての RSVP インターフェイスでリンク保護を有効にします。リンク保護を使用すると、壊れたリンクの周りでトラフィックを迅速に再ルーティングするようにネットワークを構成できます。
[edit] user@R4#set protocols rsvp interface all link-protection
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0; unit 0 { family inet { address 192.168.2.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R1; unit 0 { family inet { address 192.168.4.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R2; unit 0 { family inet { address 192.168.7.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R5; unit 0 { family inet { address 192.168.13.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.4.4.4/32; } family iso { address 49.0001.0004.0404.0400; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.6.6.6/32 exact { install-nexthop lsp lsp4to6_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.3.3.3/32 exact { install-nexthop lsp lsp4to3_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.4.4.4; autonomous-system 65200; } protocols { bgp { group ibgp1 { type internal; local-address 10.4.4.4; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.2.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8140; next-hop 192.168.2.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set r4-exp-set1 { membership-policy expresspol1; } segment-set r4-exp-set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/0.0; interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp4to6_a { to 10.6.6.6; admin-group include-any [ brown red ]; } label-switched-path lsp4to6_b { to 10.6.6.6; admin-group include-any [ blue ]; } label-switched-path lsp4to3_a { to 10.3.3.3; admin-group include-any [ brown red ]; } label-switched-path lsp4to3_b { to 10.3.3.3; admin-group include-any [ brown ]; } label-switched-path lsp4to3_c { to 10.3.3.3; admin-group include-any [ brown ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/4.0 { admin-group brown; } interface all; } rsvp { interface all { link-protection; } } }
R2(中間ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR2を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R2#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R2#set interfaces ge-0/0/0 description To_R1 user@R2#set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 user@R2#set interfaces ge-0/0/0 unit 0 family iso user@R2#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/1 description To_R3 user@R2#set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 user@R2#set interfaces ge-0/0/1 unit 0 family iso user@R2#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/2 description To_R4 user@R2#set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 user@R2#set interfaces ge-0/0/2 unit 0 family iso user@R2#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/3 description To_R5 user@R2#set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 user@R2#set interfaces ge-0/0/3 unit 0 family iso user@R2#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/4 description To_R6 user@R2#set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 user@R2#set interfaces ge-0/0/4 unit 0 family iso user@R2#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R2#set interfaces lo0 unit 0 family inet address 10.2.2.2/32 user@R2#set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R2#set routing-options router-id 10.2.2.2 user@R2#set routing-options autonomous-system 65200
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R2#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R2#set policy-options policy-statement nlri2bgp term 1 then accept user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis user@R2#set policy-options policy-statement nlri2bgp_igp term 1 then accept user@R2#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R2#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R2#set policy-options policy-statement pplb then load-balance per-packet user@R2#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R2#set policy-options policy-statement ted2nlri term 1 then accept user@R2#set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering user@R2#set policy-options policy-statement ted2nlri_1 term 1 then accept user@R2#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R2#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズメントを有効にします。
[edit] user@R2#set protocols bgp group RR1 type internal user@R2#set protocols bgp group RR1 local-address 10.2.2.2 user@R2#set protocols bgp group RR1 family traffic-engineering unicast user@R2#set protocols bgp group RR1 neighbor 10.1.1.1 user@R2#set protocols bgp group RR1 neighbor 10.3.3.3 user@R2#set protocols bgp group RR1 neighbor 10.6.6.6 user@R2#set protocols bgp group RR1 neighbor 10.4.4.4 user@R2#set protocols bgp cluster 10.2.2.2
-
インターフェイスに IS-IS と MPLS プロトコルを設定します。
[edit] user@R2#set protocols isis interface ge-0/0/0.0 user@R2#set protocols isis interface ge-0/0/1.0 user@R2#set protocols isis interface ge-0/0/2.0 user@R2#set protocols isis interface ge-0/0/3.0 user@R2#set protocols isis interface ge-0/0/4.0 user@R2#set protocols isis interface lo0.0 passive user@R2#set protocols isis level 1 disable user@R2#set protocols isis level 2 wide-metrics-only user@R2#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R2#set protocols mpls interface ge-0/0/3.0 admin-group red user@R2#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R2#set protocols mpls interface ge-0/0/1.0 admin-group brown user@R2#set protocols mpls interface all
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R2#set protocols mpls admin-groups red 0 user@R2#set protocols mpls admin-groups blue 1 user@R2#set protocols mpls admin-groups brown 5
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R2#set protocols mpls label-range static-label-range 7000 70000
-
すべての RSVP インターフェイスでリンク保護を有効にします。リンク保護を使用すると、壊れたリンクの周りでトラフィックを迅速に再ルーティングするようにネットワークを構成できます。
[edit] user@R2#set protocols rsvp interface all link-protection
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; unit 0 { family inet { address 192.168.3.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; unit 0 { family inet { address 192.168.6.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4; unit 0 { family inet { address 192.168.7.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R5; unit 0 { family inet { address 192.168.8.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; unit 0 { family inet { address 192.168.9.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.2.2.2/32; } family iso { address 49.0001.0002.0202.0200; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_1 { term 1 { from { traffic-engineering; } then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.2.2.2; autonomous-system 65200; } protocols { bgp { group RR1 { type internal; local-address 10.2.2.2; family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.2.2.2; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/4.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group brown; } interface all; } rsvp { interface all { link-protection; } } }
R5(中間ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR5を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R5#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R5#set interfaces ge-0/0/0 description To_R1 user@R5#set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 user@R5#set interfaces ge-0/0/0 unit 0 family iso user@R5#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/1 description To_R2 user@R5#set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 user@R5#set interfaces ge-0/0/1 unit 0 family iso user@R5#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/2 description To_R3 user@R5#set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 user@R5#set interfaces ge-0/0/2 unit 0 family iso user@R5#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/3 description To_R4 user@R5#set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 user@R5#set interfaces ge-0/0/3 unit 0 family iso user@R5#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/4 description To_R6 user@R5#set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 user@R5#set interfaces ge-0/0/4 unit 0 family iso user@R5#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R5#set interfaces lo0 unit 0 family inet address 10.5.5.5/32 user@R5#set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R5#set routing-options router-id 10.5.5.5 user@R5#set routing-options autonomous-system 65200
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R5#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R5#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R5#set policy-options policy-statement nlri2bgp term 1 then accept user@R5#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R5#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R5#set policy-options policy-statement pplb then load-balance per-packet user@R5#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R5#set policy-options policy-statement ted2nlri term 1 then accept user@R5#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R5#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R5#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
インターフェイスに IS-IS と MPLS プロトコルを設定します。
[edit] user@R5#set protocols isis interface ge-0/0/0.0 user@R5#set protocols isis interface ge-0/0/1.0 user@R5#set protocols isis interface ge-0/0/2.0 user@R5#set protocols isis interface ge-0/0/3.0 user@R5#set protocols isis interface ge-0/0/4.0 user@R5#set protocols isis interface lo0.0 passive user@R5#set protocols isis level 1 disable user@R5#set protocols isis level 2 wide-metrics-only user@R5#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R5#set protocols mpls interface ge-0/0/1.0 admin-group red user@R5#set protocols mpls interface ge-0/0/3.0 admin-group brown user@R5#set protocols mpls interface ge-0/0/4.0 admin-group brown user@R5#set protocols mpls interface all
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズメントを有効にします。
[edit] user@R5#set protocols bgp group RR2 type internal user@R5#set protocols bgp group RR2 family inet unicast user@R5#set protocols bgp group RR2 family traffic-engineering unicast user@R5#set protocols bgp group RR2 neighbor 10.1.1.1 user@R5#set protocols bgp group RR2 neighbor 10.3.3.3 user@R5#set protocols bgp group RR2 neighbor 10.6.6.6 user@R5#set protocols bgp group RR2 neighbor 10.4.4.4 user@R5#set protocols bgp cluster 10.5.5.5
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R5#set protocols mpls admin-groups red 0 user@R5#set protocols mpls admin-groups blue 1 user@R5#set protocols mpls admin-groups brown 5
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R5#set protocols mpls label-range static-label-range 7000 70000
-
すべての RSVP インターフェイスでリンク保護を有効にします。リンク保護を使用すると、壊れたリンクの周りでトラフィックを迅速に再ルーティングするようにネットワークを構成できます。
[edit] user@R5#set protocols rsvp interface all link-protection
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; unit 0 { family inet { address 192.168.5.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R2; unit 0 { family inet { address 192.168.8.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R3; unit 0 { family inet { address 192.168.10.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R4; unit 0 { family inet { address 192.168.13.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; unit 0 { family inet { address 192.168.14.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.5.5.5/32; } family iso { address 49.0001.0005.0505.0500; } } } } policy-options { policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.5.5.5; autonomous-system 65200; } protocols { bgp { group RR2 { type internal; family inet { unicast; } family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.5.5.5; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0; interface ge-0/0/4.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/3.0 { admin-group brown; } interface ge-0/0/4.0 { admin-group brown; } interface all; } rsvp { interface all { link-protection; } } }
R3(BN3ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR3を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R3#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R3#set interfaces ge-0/0/0 description To_R2 user@R3#set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 user@R3#set interfaces ge-0/0/0 unit 0 family iso user@R3#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/1 description To_R5 user@R3#set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 user@R3#set interfaces ge-0/0/1 unit 0 family iso user@R3#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/2 description To_R6 user@R3#set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 user@R3#set interfaces ge-0/0/2 unit 0 family iso user@R3#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/3 description To_R7 user@R3#set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 user@R3#set interfaces ge-0/0/3 unit 0 family iso user@R3#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R3#set interfaces lo0 unit 0 family inet address 10.3.3.3/32 user@R3#set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R3#set routing-options router-id 10.3.3.3 user@R3#set routing-options autonomous-system 65200
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R3#set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a user@R3#set policy-options policy-statement expresspol1 then accept user@R3#set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a user@R3#set policy-options policy-statement expresspol2 then accept user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R3#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R3#set policy-options policy-statement pplb then load-balance per-packet user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
ピアのBGP-LSルートアドバタイズメントを有効にし、EPEリンクを定義するようにBGPを設定します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R3#set protocols bgp group ibgp1 type internal user@R3#set protocols bgp group ibgp1 local-address 10.3.3.3 user@R3#set protocols bgp group ibgp1 family traffic-engineering unicast user@R3#set protocols bgp group ibgp1 export nlri2bgp_epe user@R3#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R3#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R3#set protocols bgp group ebgp1 type external user@R3#set protocols bgp group ebgp1 family traffic-engineering unicast user@R3#set protocols bgp group ebgp1 export nlri2bgp_stat user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown user@R3#set protocols bgp group ebgp1 vpn-apply-export
-
エクスプレス セグメントを自動的に(動的に)作成して TE データベースに挿入し、BGP-LS でアドバタイズできるようにするメカニズムを定義します。この例では、すべてのアンダーレイ RSVP トンネルに対してエクスプレス セグメントが自動的に作成されます。これは、ポリシーを使用してテンプレートを構成することによって行われ、ポリシーに基づいてエクスプレスセグメントが自動的に作成されます。
[edit] user@R3#set protocols express-segments segment-set set1 membership-policy expresspol1 user@R3#set protocols express-segments segment-set set2 membership-policy expresspol2 user@R3#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS と MPLS プロトコルを設定します。
[edit] user@R3#set protocols isis interface ge-0/0/0.0 user@R3#set protocols isis interface ge-0/0/1.0 user@R3#set protocols isis interface ge-0/0/2.0 user@R3#set protocols isis interface ge-0/0/3.0 passive user@R3#set protocols isis interface lo0.0 passive user@R3#set protocols isis level 1 disable user@R3#set protocols isis level 2 wide-metrics-only user@R3#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R3#set protocols mpls interface ge-0/0/2.0 admin-group red user@R3#set protocols mpls interface ge-0/0/3.0 admin-group red user@R3#set protocols mpls interface ge-0/0/3.0 admin-group brown user@R3#set protocols mpls interface all
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R3#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R3#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R3#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R3#set protocols mpls admin-groups red 0 user@R3#set protocols mpls admin-groups blue 1 user@R3#set protocols mpls admin-groups brown 5
-
ラベルスイッチパス(LSP)でMPLSを設定し、管理グループを含めます。
[edit] user@R3#set protocols mpls label-switched-path lsp3to1_a to 10.1.1.1 user@R3#set protocols mpls label-switched-path lsp3to1_a admin-group include-any red user@R3#set protocols mpls label-switched-path lsp3to1_a admin-group include-any brown user@R3#set protocols mpls label-switched-path lsp3to4_a to 10.4.4.4 user@R3#set protocols mpls label-switched-path lsp3to4_a admin-group include-any red user@R3#set protocols mpls label-switched-path lsp3to4_a admin-group include-any brown
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R3#set protocols mpls label-range static-label-range 7000 70000
-
すべての RSVP インターフェイスでリンク保護を有効にします。リンク保護を使用すると、壊れたリンクの周りでトラフィックを迅速に再ルーティングするようにネットワークを構成できます。
[edit] user@R3#set protocols rsvp interface all link-protection
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; unit 0 { family inet { address 192.168.6.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R5; unit 0 { family inet { address 192.168.10.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R6; unit 0 { family inet { address 192.168.11.1/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; unit 0 { family inet { address 192.168.12.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.3.3.3/32; } family iso { address 49.0001.0003.0303.0300; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.1.1.1/32 exact { install-nexthop lsp lsp3to1_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.4.4.4/32 exact { install-nexthop lsp lsp3to4_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.3.3.3; autonomous-system 65200; } protocols { bgp { group ibgp1 { type internal; local-address 10.3.3.3; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.12.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7137; next-hop 192.168.12.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } vpn-apply-export; } } express-segments { segment-set set1 { membership-policy expresspol1; } segment-set set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface ge-0/0/3.0 { passive; } interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp3to1_a { to 10.1.1.1; admin-group include-any [ red brown ]; } label-switched-path lsp3to4_a { to 10.4.4.4; admin-group include-any [ red brown ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; } rsvp { interface all { link-protection; } } }
R6(BN4ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR6を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R6#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R6#set interfaces ge-0/0/0 description To_R2 user@R6#set interfaces ge-0/0/0 unit 0 family inet address 192.168.9.2/24 user@R6#set interfaces ge-0/0/0 unit 0 family iso user@R6#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/1 description To_R3 user@R6#set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.2/24 user@R6#set interfaces ge-0/0/1 unit 0 family iso user@R6#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/2 description To_R5 user@R6#set interfaces ge-0/0/2 unit 0 family inet address 192.168.14.2/24 user@R6#set interfaces ge-0/0/2 unit 0 family iso user@R6#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/3 description To_R7 user@R6#set interfaces ge-0/0/3 unit 0 family inet address 192.168.15.1/24 user@R6#set interfaces ge-0/0/3 unit 0 family iso user@R6#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R6#set interfaces lo0 unit 0 family inet address 10.6.6.6/32 user@R6#set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R6#set routing-options router-id 10.6.6.6 user@R6#set routing-options autonomous-system 65200
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R6#set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp6to1_a user@R6#set policy-options policy-statement expresspol1 then accept user@R6#set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp6to4_a user@R6#set policy-options policy-statement expresspol2 then accept user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R6#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R6#set policy-options policy-statement pplb then load-balance per-packet user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
ピアのBGP-LSルートアドバタイズメントを有効にし、EPEリンクを定義するようにBGPを設定します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R6#set protocols bgp group ibgp1 type internal user@R6#set protocols bgp group ibgp1 local-address 10.6.6.6 user@R6#set protocols bgp group ibgp1 family traffic-engineering unicast user@R6#set protocols bgp group ibgp1 export nlri2bgp_epe user@R6#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R6#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R6#set protocols bgp group ebgp1 type external user@R6#set protocols bgp group ebgp1 family traffic-engineering unicast user@R6#set protocols bgp group ebgp1 export nlri2bgp_stat user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 peer-as 300 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 label 7167 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.15.2 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown
-
エクスプレス セグメントを自動的に(動的に)作成して TE データベースに挿入し、BGP-LS でアドバタイズできるようにするメカニズムを定義します。この例では、すべてのアンダーレイ RSVP トンネルに対してエクスプレス セグメントが自動的に作成されます。これは、ポリシーを使用してテンプレートを構成することによって行われ、ポリシーに基づいてエクスプレスセグメントが自動的に作成されます。
[edit] user@R6#set protocols express-segments segment-set set1 membership-policy expresspol1 user@R6#set protocols express-segments segment-set set2 membership-policy expresspol2 user@R6#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS と MPLS プロトコルを設定します。
[edit] user@R6#set protocols isis interface ge-0/0/0.0 user@R6#set protocols isis interface ge-0/0/1.0 user@R6#set protocols isis interface ge-0/0/2.0 user@R6#set protocols isis interface lo0.0 passive user@R6#set protocols isis level 1 disable user@R6#set protocols isis level 2 wide-metrics-only user@R6#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R6#set protocols mpls interface ge-0/0/1.0 admin-group red user@R6#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R6#set protocols mpls interface ge-0/0/3.0 admin-group red user@R6#set protocols mpls interface ge-0/0/3.0 admin-group brown user@R6#set protocols mpls interface all
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R6#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R6#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R6#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R6#set protocols mpls admin-groups red 0 user@R6#set protocols mpls admin-groups blue 1 user@R6#set protocols mpls admin-groups brown 5
-
ラベルスイッチパス(LSP)でMPLSを設定し、管理グループを含めます。
[edit] user@R6#set protocols mpls label-switched-path lsp6to1_a to 10.1.1.1 user@R6#set protocols mpls label-switched-path lsp6to1_a admin-group include-any red user@R6#set protocols mpls label-switched-path lsp6to1_a admin-group include-any brown user@R6#set protocols mpls label-switched-path lsp6to4_a to 10.4.4.4 user@R6#set protocols mpls label-switched-path lsp6to4_a admin-group include-any red user@R6#set protocols mpls label-switched-path lsp6to4_a admin-group include-any brown
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R6#set protocols mpls label-range static-label-range 7000 70000
-
すべての RSVP インターフェイスでリンク保護を有効にします。リンク保護を使用すると、壊れたリンクの周りでトラフィックを迅速に再ルーティングするようにネットワークを構成できます。
[edit] user@R6#set protocols rsvp interface all link-protection
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; unit 0 { family inet { address 192.168.9.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; unit 0 { family inet { address 192.168.11.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R5; unit 0 { family inet { address 192.168.14.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; unit 0 { family inet { address 192.168.15.1/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.6.6.6/32; } family iso { address 49.0001.0006.0606.0600; } } } } policy-options { policy-statement expresspol1 { from { route-filter 10.1.1.1/32 exact { install-nexthop lsp lsp6to1_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.4.4.4/32 exact { install-nexthop lsp lsp6to4_a; } } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.6.6.6; autonomous-system 65200; forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.6.6.6; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.15.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7167; next-hop 192.168.15.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set set1 { membership-policy expresspol1; } segment-set set2 { membership-policy expresspol2; } traffic-engineering; } isis { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-switched-path lsp6to1_a { to 10.1.1.1; admin-group include-any [ red brown ]; } label-switched-path lsp6to4_a { to 10.4.4.4; admin-group include-any [ red brown ]; } label-range { static-label-range 7000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; } rsvp { interface all { link-protection; } } }
R7(PE2ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR7を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R7#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R7#set interfaces ge-0/0/0 description To_R3 user@R7#set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 user@R7#set interfaces ge-0/0/0 unit 0 family iso user@R7#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/1 description To_R6 user@R7#set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 user@R7#set interfaces ge-0/0/1 unit 0 family iso user@R7#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.7/32 user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.71/32
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R7#set routing-options router-id 10.7.7.7 user@R7#set routing-options autonomous-system 65300 user@R7#set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 user@R7#set routing-options static route 10.100.100.101/32 resolve
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R7#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R7#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R7#set policy-options policy-statement pplb then load-balance per-packet user@R7#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement ted2nlri term 1 then accept user@R7#set policy-options resolution-map map1 mode ip-color
-
ピアのBGP-LSルートアドバタイズメントを有効にし、EPEリンクを定義するようにBGPを設定します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R7#set protocols bgp group ebgp1 type external user@R7#set protocols bgp group ebgp1 family inet unicast user@R7#set protocols bgp group ebgp1 family traffic-engineering unicast user@R7#set protocols bgp group ebgp1 export nlri2bgp_epe user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group brown user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 65200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group brown
-
インターフェイスにMPLSプロトコルを設定します。
[edit] user@R7#set protocols mpls interface all
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R7#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R7#set protocols mpls traffic-engineering database import policy ted2nlri user@R7#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R7#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R7#set protocols mpls admin-groups red 0 user@R7#set protocols mpls admin-groups blue 1 user@R7#set protocols mpls admin-groups brown 5
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R7#set protocols mpls label-range static-label-range 7000 70000
-
イングレス ルーターで SR-TE ポリシーを設定して、エンドツーエンドの SR-TE ポリシーを有効にします。
[edit] user@R7#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R7#set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 user@R7#set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 user@R7#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R3; unit 0 { family inet { address 192.168.12.2/24; } family iso; family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R6; unit 0 { family inet { address 192.168.15.2/24; } family iso; family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.7.7.7/32; address 10.7.7.71/32; } family iso { address 49.0001.0007.0707.0700; } } } } policy-options { policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } resolution-map map1 { mode ip-color; } } routing-options { static { route 10.100.100.101/32 { next-hop 10.100.100.100; resolve; } } router-id 10.7.7.7; autonomous-system 65300; } protocols { bgp { group ebgp1 { type external; family inet { unicast; } family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 192.168.12.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR3 { label 8173; next-hop 192.168.12.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.15.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR6 { label 8176; next-hop 192.168.15.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; brown 5; } label-range { static-label-range 7000 70000; } interface all; } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } source-routing-path computelsp1 { to 10.100.100.100; install 10.100.100.101; primary { p1 { compute { compute1; } } } } } }
検証
設定が正しく行われていることを確認するために、以下の作業を行います。
エクスプレスセグメントの確認
目的
エクスプレス・セグメントが正しく作成されていることを確認します。
アクション
動作モードから、次のコマンドを実行します。
-
show express-segments detail
- エクスプレス セグメントが作成されているかどうかを確認します。 -
show ted database topology-type express-segments detail
- 新しく作成したエクスプレス セグメントが TE データベースに挿入されていることを確認します。 -
show route table mpls.0 protocol express-segments
- 転送エントリが作成されているかどうかを確認します。
user@R1>show express-segments detail Name: r1-exp-set1-10.6.6.6 To: 10.6.6.6, Type: Dynamic (Set: r1-exp-set1) Label: 25 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 09:32:00) LinkAttributes: LocalID: 2147483686 TE-Metric: 200*, IGP-Metric: 100* BW: 0bps AdminGroups: red* UnderlayPaths: 1 RSVP LSP: lsp1to6_a TE-Metric: 29, IGP-Metric: 20 BW: 0bps AdminGroups: brown red Name: r1-exp-set2-10.3.3.3 To: 10.3.3.3, Type: Dynamic (Set: r1-exp-set2) Label: 24 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 09:32:00) LinkAttributes: LocalID: 2147483685 TE-Metric: 19, IGP-Metric: 20 BW: 0bps AdminGroups: brown red UnderlayPaths: 1 RSVP LSP: lsp1to3_a TE-Metric: 19, IGP-Metric: 20 BW: 0bps AdminGroups: brown red
R1について
user@R1>show ted database topology-type express-segments detail TED database: 0 ISIS nodes 4 INET nodes 0 INET6 nodes NodeID: 10.1.1.1 Type: Rtr, Age: 119174 secs, LinkIn: 0, LinkOut: 3 Protocol: EXPRESS-SEG(0) To: 10.3.3.3, Local: 10.1.1.1, Remote: 10.3.3.3 Local interface index: 2147483685, Remote interface index: 0 Link name: r1-exp-set2-10.3.3.3 To: 10.6.6.6, Local: 10.1.1.1, Remote: 10.6.6.6 Local interface index: 2147483686, Remote interface index: 0 Link name: r1-exp-set1-10.6.6.6 NodeID: 10.3.3.3 Type: Rtr, Age: 34364 secs, LinkIn: 1, LinkOut: 0 Protocol: EXPRESS-SEG(0) NodeID: 10.6.6.6 Type: Rtr, Age: 34364 secs, LinkIn: 1, LinkOut: 0 Protocol: EXPRESS-SEG(0)
R1について
user@R1>show route table mpls.0 protocol express-segments mpls.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 24 *[EXPRESS-SEG/6] 09:33:24, metric 1 > to 192.168.3.2 via ge-0/0/2.0, Swap 33 25 *[EXPRESS-SEG/6] 09:33:24, metric 1 > to 192.168.3.2 via ge-0/0/2.0, Swap 34
意味
-
出力には、エクスプレスセグメントの名前()、エクスプレスセグメントラベル()、アンダーレイLSP()が表示されます。
show express-segments detail
r1-exp-set1-10.6.6.6, r1-exp-set2-10.3.3.325, 24lsp1to6_a, lsp1to3_a -
出力では 、高速セグメント エントリが TE データベースに挿入されていることがわかります。
show ted database topology-type express-segments detail
エクスプレス セグメント(仮想 TE リンク)は動的に作成されます。使用される プロトコルは です。EXPRESS-SEG(0) -
出力には、エクスプレスセグメントラベル()が表示されます。
show route table mpls.0 protocol express-segments
24,25 エクスプレス セグメントはアンダーレイ LSP に依存する構成であるため、エクスプレス セグメント ラベルはアンダーレイ LSP ラベル()に交換されます。これは RSVP-LSP。33,34
エクスプレスセグメントアドバタイズメントの検証
目的
送信元ノードが eBGP/iBGP LS ネイバーにエクスプレスセグメントをアドバタイズしていることを確認します。
アクション
動作モードから、次のコマンドを実行します。
-
show route table lsdist.0
- RIB BGP-LSのエクスプレスセグメントがアドバタイズされていることを確認します。 -
show route advertising-protocol bgp neighbor
- エクスプレスセグメントがeBGP/iBGP LSネイバーに送信されていることを確認します。
user@R1>show route table lsdist.0 lsdist.0: 25 destinations, 37 routes (25 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious NODE { AS:65200 IPv4:10.6.6.6 STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 09:34:17 Fictitious NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 [BGP/170] 1d 09:55:46, localpref 65100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 09:34:17 Fictitious NODE { AS:65300 IPv4:3.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 5.5.5.5 AS path: 300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 65100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483685 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483686 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[EXPRESS-SEG/6] 09:34:14 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 09:34:17 Fictitious LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:362 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:55:46, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 [BGP/170] 1d 09:55:46, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:361 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:334 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 100, from 10.2.2.2 AS path: 300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:36:26, localpref 65100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0 [BGP/170] 1d 04:36:26, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 10.49.127.254 via fxp0.0
R1について
user@R1>show route advertising-protocol bgp 10.2.2.2 lsdist.0: 25 destinations, 37 routes (25 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR1 Label: 7101, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR4 Label: 7104, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * Self 100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR0 Label: 8110, Flags: 0xd0, Weight: 0
意味
-
出力では、BGPはルーティングテーブルでルートをアドバタイズします。
show route table lsdist.0
ルーティング・テーブルは TE データベースから作成されます。エクスプレスセグメント()リンクとEPEリンク()が表示されます。EXPRESS-SEG/6BGP-LS-EPE:0 }/1216 -
出力では、R1が何をアドバタイズしているかを確認できます。
show route advertising-protocol bgp 10.2.2.2
エクスプレス・セグメントは TE データベースに挿入され、RIB にコピーされます。BGP-LS は RIB をピア ルーターにアドバタイズします。ピアでは、受信した RIB 情報がローカル データベースにコピーされます。この例のポリシーは、エクスプレスセグメントとEPEセグメントのみをアドバタイズします。
TE トポロジー情報の検証
目的
イングレス ノードが eBGP/iBGP LS を介して TE トポロジー情報を受信することを確認します。
アクション
動作モードから、次のコマンドを実行します。
-
show route receive-protocol bgp neighbor
- エクスプレスセグメントがeBGP/iBGP LSネイバーから受信されていることを確認します。 -
show route table lsdist.0
- エクスプレスセグメントがBGP-LS RIB内にあることを確認します。 -
show ted database topology-type l3-unicast detail
- エクスプレス セグメントがイングレス ルーターの TE データベースにインポートされていることを確認します。 -
show spring-traffic-engineering lsp
- エンドツーエンドのSRポリシーが正常に計算され、インストールされていることを確認します。
R0について
user@R0>show route receive-protocol bgp 192.168.1.2 … Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No ...
R0について
user@R0>show route table lsdist.0 lsdist.0: 28 destinations, 40 routes (28 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65200 IPv4:10.4.4.4 STATIC:0 }/1216 *[BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65200 IPv4:10.6.6.6 STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483685 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483686 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:37:43, localpref 100 AS path: 54200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:2147483684 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:2147483685 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 09:35:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 1d 04:37:15 Fictitious LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:362 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 09:59:16, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:361 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:334 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:359 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 1d 04:39:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.2.2 via ge-0/0/2.0
R0について
user@R0>show ted database topology-type l3-unicast detail TED database: 0 ISIS nodes 6 INET nodes 0 INET6 nodes NodeID: 10.1.1.1 Type: Rtr, Age: 122418 secs, LinkIn: 1, LinkOut: 3 Protocol: Exported BGP(6) To: 10.100.100.100, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(4) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483686, Remote interface index: 0 Link name: r1-exp-set1-10.6.6.6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483685, Remote interface index: 0 Link name: r1-exp-set2-10.3.3.3 Protocol: BGP-LS-EPE(0) NodeID: 10.3.3.3 Type: Rtr, Age: 122418 secs, LinkIn: 3, LinkOut: 1 Protocol: Exported BGP(6) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 362, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(8) Protocol: Exported STATIC(4) NodeID: 10.4.4.4 Type: Rtr, Age: 122418 secs, LinkIn: 1, LinkOut: 3 Protocol: Exported BGP(6) To: 10.100.100.100, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(4) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483685, Remote interface index: 0 Link name: r4-exp-set1-10.6.6.6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483684, Remote interface index: 0 Link name: r4-exp-set2-10.3.3.3 Protocol: BGP-LS-EPE(0) NodeID: 10.6.6.6 Type: Rtr, Age: 122418 secs, LinkIn: 3, LinkOut: 1 Protocol: Exported BGP(6) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 361, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(8) Protocol: Exported STATIC(4) NodeID: 10.7.7.7 Type: Rtr, Age: 103258 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(6) Protocol: Exported BGP(8) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 359, Remote interface index: 0 Link name: epe_adj1_toR6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 334, Remote interface index: 0 Link name: epe_adj1_toR3 NodeID: 10.100.100.100 Type: Rtr, Age: 103160 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(6) Protocol: BGP-LS-EPE(0) To: 10.1.1.1, Local: 192.168.1.1, Remote: 192.168.1.2 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR1 Local bgp peer as: 100, Remote bgp peer as: 200 To: 10.4.4.4, Local: 192.168.2.1, Remote: 192.168.2.2 Local interface index: 359, Remote interface index: 0 Link name: epe_adj1_toR4 Local bgp peer as: 65100, Remote bgp peer as: 65200
R0について
user@R0>show spring-traffic-engineering lsp To State LSPname 10.7.7.7 Up computelsp1 10.7.7.7-7000<c> Up ecomputelsp1 10.7.7.7-7001<c> Up ecomputelsp2 Total displayed LSPs: 3 (Up: 3, Down: 0)
R0について
user@R0>show spring-traffic-engineering lsp detail Name: computelsp1 Tunnel-source: Static configuration To: 10.7.7.7 State: Up Path: p1 Outgoing interface: NA Auto-translate status: Disabled Auto-translate result: N/A Compute Status:Enabled , Compute Result:success , Compute-Profile Name:compute1 Total number of computed paths: 2 Computed-path-index: 1 BFD status: N/A BFD name: N/A TE metric: 59, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7104 source router-id: 10.100.100.100, destination router-id: 10.4.4.4 source interface-address: 192.168.2.1, destination interface-address: 192.168.2.2 computed segment : 2 (computed-adjacency-segment): label: 21 source router-id: 10.4.4.4, destination router-id: 10.6.6.6 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7167 source router-id: 10.6.6.6, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Computed-path-index: 2 BFD status: N/A BFD name: N/A TE metric: 59, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7101 source router-id: 10.100.100.100, destination router-id: 10.1.1.1 source interface-address: 192.168.1.1, destination interface-address: 192.168.1.2 computed segment : 2 (computed-adjacency-segment): label: 24 source router-id: 10.1.1.1, destination router-id: 10.3.3.3 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7137 source router-id: 10.3.3.3, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0
意味
-
出力では 、イングレスルーター(R0)がBGPネイバーから受信したルートを示しており、これはエクスプレスセグメント(仮想TEリンク)を表しています。
show route receive-protocol bgp 10.1.1.1
-
出力には、イングレスルーター(R0)が受信したルートと、それらがRIBに挿入されたかどうかが表示されます。
show route table lsdist.0
lsdist.0 また、 RIB がローカル TE データベースにコピーされているかどうかも表示されます。lsdist.0 -
出力では、ルートがローカル TE データベースにコピーされます。
show ted database topology-type l3-unicast detail
は 、終点 が10.6.6.6のエクスプレスセグメントで、R1に正常に作成されます。r1-exp-set1-10.6.6.6 R1 はエクスプレス セグメントをアドバタイズし、R0 はそれをローカル TE データベースに挿入しました。EPEセグメント()も確認できます。epe_adj1_toR7 -
出力では、SR ポリシーが稼働していることがわかります。
show spring-traffic-engineering lsp
これは、マルチドメインのエンドツーエンド(R0からR7)SRポリシーを計算できるようになったことを示しています。 -
出力では、選択されたラベルを確認できます。
show spring-traffic-engineering lsp detail
LSP では、ラベルは EPE セグメントであり、エクスプレスセグメントであり、 EPE セグメントでもあります。computelsp17104217167 これは、マルチドメインのエンドツーエンド(R0からR7)SRポリシーを計算できるようになったことを示しています。
例:SR-TE アンダーレイを介したエクスプレス セグメントを使用したドメイン間 SR-TE 接続
この例では、SR-TE アンダーレイを介した高速セグメントを使用して、エンドツーエンドのドメイン間 SR-TE 接続を確立する方法を説明します。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
-
プロバイダーエッジ、ボーダーノード、中間ルーターとしてのMXシリーズルーター。
-
Junos OS リリース 21.2R1 以降のリリース。
概要
次のトポロジー()は、別のSR-TE(AS200)ドメインを介して相互接続された、EBGP-LSを実行している2つのSR-TEドメイン(図 9 AS100およびAS300)を示しています。
トポロジー
このトポロジーでは、PE1 ルーターから PE2 ルーターへのエンドツーエンドの SR-TE パスが確立されます。EGRESSピアエンジニアリング(EPE)セグメントは、PE1ルーターとPE2ルーターで定義され、直接接続されたボーダーノードBN1/BN2とBN3/BN4にそれぞれトラフィックを誘導します。ボーダーノードで定義されたEPEセグメントは、BGPリンクステートを通じて内部的にアドバタイズされます。これら 2 つの SR-TE ドメインは、内部パス確立に SR-TE LSP を活用しているドメイン(AS200)を介して相互接続されています。
AS200ドメインのボーダーノードにより、ドメイン間のSR-TE情報の抽象化が容易になります。エクスプレス・セグメントは、ボーダー・ノード (BN1、BN2、BN3、および BN4) 上に作成されます。エクスプレスセグメントは、基盤となる SR-TE LSP と 1 対 1 の関係で作成され、すべてのエクスプレスセグメントは、後続の BGP リンクステートアドバタイズのためにボーダーノードのローカル TE データベースに挿入されます。AS200 ドメインは、TE 管理用の SR-TE LSP アンダーレイを活用し、これらのアンダーレイ SR-TE LSP を AS100 および AS300 ドメインのエクスプレス セグメントとして提示することで、ドメインがエンドツーエンドの SR-TE LSP 接続を持つことを可能にします。
次の表では、トポロジ内のドメイン、ルーター、および接続について説明します。
ドメイン |
デバイス |
ルーターID/LO)アドレス |
接続の詳細 |
---|---|---|---|
AS65100 (EBGP-LS/ SR-TE LSP) |
R0(PE1ルーター) |
10.100.100.100 10.100.100.101 |
インターフェイスge-0/0/0を介してR1(BN1ルーター)に接続され、IPアドレス192.168.1.1/24が割り当てられました。 インターフェイスge-0/0/2を介してR4(BN2ルーター)に接続され、IPアドレス192.168.2.1/24が割り当てられました。 |
AS65200 (SR-TE LSP) |
R1(BN1ルーター) |
1 0.1.1.1 |
インターフェイスge-0/0/0を介してR0(PE1ルーター)に接続され、割り当てられたIPアドレス192.168.1.2/24。 インターフェイスge-0/0/3を介してR4(BN2ルーター)に接続され、IPアドレス192.168.4.1/24が割り当てられました。 インターフェイスge-0/0/2を介してR2(中間ルーター)に接続され、IPアドレス192.168.3.1/24が割り当てられました。 インターフェイスge-0/0/4を介してR5(中間ルーター)に接続され、IPアドレス192.168.5.1/24が割り当てられました。 |
R4(BN2ルータ) |
10.4.4.4 |
インターフェイスge-0/0/0を介してR0(PE1ルーター)に接続され、IPアドレス192.168.2.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR1(BN1ルーター)に接続され、IPアドレス192.168.4.2/24が割り当てられました。 インターフェイスge-0/0/3を介してR2(中間ルーター)に接続され、IPアドレス192.168.7.1/24が割り当てられました。 インターフェイスge-0/0/4を介してR5(中間ルーター)に接続され、IPアドレス192.168.13.1/24が割り当てられました。 |
|
R2(中間ルーター) |
10.2.2.2 |
インターフェイスge-0/0/0を介してR1(BN1ルーター)に接続され、IPアドレス192.168.3.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR4(BN2ルーター)に接続され、割り当てられたIPアドレス192.168.7.1/24。 インターフェイスge-0/0/3を介してR5(中間ルーター)に接続され、IPアドレス192.168.8.1/24が割り当てられました。 インターフェイスge-0/0/1を介してR3(BN3ルーター)に接続され、IPアドレス192.168.6.1/24が割り当てられました。 インターフェイスge-0/0/4を介してR6(BN4ルーター)に接続され、IPアドレス192.168.9.1/24が割り当てられました。 |
|
R5(中間ルータ) |
10.5.5.5 |
インターフェイスge-0/0/0を介してR1(BN1ルーター)に接続され、IPアドレス192.168.5.2/24が割り当てられました。 インターフェイスge-0/0/3を介してR4(BN2ルーター)に接続され、IPアドレス192.168.13.2/24が割り当てられました。 インターフェイスge-0/0/1を介してR2(中間ルーター)に接続され、IPアドレス192.168.8.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR3(BN3ルーター)に接続され、割り当てられたIPアドレス192.168.10.2/24。 インターフェイスge-0/0/4を介してR6(BN4ルーター)に接続され、IPアドレス192.168.14.1/24が割り当てられました。 |
|
R3(BN3ルーター) |
10.3.3.3 |
インターフェイスge-0/0/3を介してR7(PE2ルーター)に接続され、IPアドレス192.168.12.1/24が割り当てられました。 インターフェイスge-0/0/2を介してR6(BN4ルーター)に接続され、割り当てられたIPアドレス192.168.11.1/24。 インターフェイスge-0/0/0を介してR2(中間ルーター)に接続され、IPアドレス192.168.6.2/24が割り当てられました。 インターフェイスge-0/0/1を介してR5(中間ルーター)に接続され、IPアドレス192.168.10.1/24が割り当てられました。 |
|
R6(BN4ルーター) |
10.6.6.6 |
インターフェイスge-0/0/3を介してR7(PE2ルーター)に接続され、IPアドレス192.168.15.1/24が割り当てられました。 インターフェイスge-0/0/1を介してR3(BN3ルーター)に接続され、IPアドレス192.168.11.2/24が割り当てられました。 インターフェイスge-0/0/0を介してR2(中間ルーター)に接続され、IPアドレス192.168.9.2/24が割り当てられました。 インターフェイスge-0/0/2を介してR5(中間ルーター)に接続され、IPアドレス192.168.14.2/24が割り当てられました。 |
|
AS65300(EBGP-LS/SR-TE LSP) |
R7:(PE2ルーター) |
10.7.7.7 |
インターフェイスge-0/0/0を介してR3(BN3ルーター)に接続され、割り当てられたIPアドレス192.168.12.2/24。 インターフェイスge-0/0/1を介してR6(BN4ルーター)に接続され、IPアドレス192.168.15.2/24が割り当てられました。 |
設定
マルチドメインネットワークを相互接続し、エクスプレスセグメントを使用してエンドツーエンドのSRパスを確立するには、以下のタスクを実行します。
- CLIクイック構成
- R0(PE1ルーター)の設定
- R1(BN1ルーター)を設定します。
- R4(BN2ルーター)を設定します。
- R2(中間ルーター)の設定
- R5(中間ルーター)の設定
- R3(BN3ルーター)の設定
- R6(BN4ルーター)の設定
- R7(PE2ルーター)の設定
CLIクイック構成
この例を迅速に設定するには、以下のコマンドをコピーして、テキストファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを [edit]
階層レベルでCLIにコピーアンドペーストして、設定モードから commit
を入力します。
下記のクイック コンフィギュレーション コマンドを使用して、カラーリングされていない SR-TE アンダーレイ パスを介してエクスプレス セグメントを設定できます。
カラー付きSR-TEアンダーレイパスを設定するには、BN1(R1)、BN2(R4)、BN3(R3)、BN4(R6)ルーターで追加設定を行う必要があります。以下は、N1(R1)、BN2(R4)、BN3(R3)、およびBN4(R6)ルーターの色なし設定であり、追加の色付きの設定を見つけることができます。
R0(PE1ルーター)の設定デバイス R0(PE1 ルーター)
set interfaces ge-0/0/0 description To_R1_1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::100/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4_1 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:4000:10::100/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.100.100.100/32 set interfaces lo0 unit 0 family inet address 10.100.100.101/32 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::10:100:100:100/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement direct from protocol direct set policy-options policy-statement direct then accept set policy-options policy-statement mpath then multipath-resolve set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement vpn1_res_map1 from route-filter 10.109.1/16 orlonger set policy-options policy-statement vpn1_res_map1 then accept set policy-options policy-statement vpn1_res_map1 then resolution-map map1 set policy-options policy-statement vpn2_res_map1 from route-filter 10.110.0.1/16 orlonger set policy-options policy-statement vpn2_res_map1 then accept set policy-options policy-statement vpn2_res_map1 then resolution-map map1 set policy-options community color7000 members color:0:7000 set policy-options community color7001 members color:0:7001 set policy-options resolution-map map1 mode ip-color set routing-options router-id 10.100.100.100 set routing-options autonomous-system 100 set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 set routing-options static route 10.7.7.71/32 resolve set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 multihop ttl 100 set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_epe set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 65200 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.12.1192.168.2.2 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 10.7.7.71 local-address 00.100.100.101 set protocols bgp group ebgp1 neighbor 10.7.7.71 import [ vpn1_res_map1 vpn2_res_map1 ] set protocols bgp group ebgp1 neighbor 10.7.7.71 peer-as 65300 set protocols bgp group ebgp1 vpn-apply-export set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ] set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1
デバイスR1(BN1ルーター)
set interfaces ge-0/0/0 description To_R0_1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::1/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.20.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1000:20::1/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R2 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1200:10::1/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 unit 1 vlan-id 2 set interfaces ge-0/0/2 unit 1 family inet address 192.168.21.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:1200:20::1/64 set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/3 description to-R4 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:1400:10::1/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description to-R5 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:1500:10::1/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.22.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:1500:20::1/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.1.1.1/32 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::10:01:01:01/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.3.3.3/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.1.1/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.1.1.1 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ] set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.1.1.1 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols express-segments segment-set set1sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 passive set protocols isis interface ge-0/0/0.1 passive set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1211 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1201 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1212 set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1202 set protocols isis interface ge-0/0/2.1 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 1411 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 1401 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 1511 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 1501 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group brown set protocols mpls interface ge-0/0/2.1 admin-group yellow set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing segment-list R1-R2-R3 hop1 label 1211 set protocols source-packet-routing segment-list R1-R2-R3 hop2 label 801003 set protocols source-packet-routing source-routing-path lsp1to3_sr to 10.3.3.3 set protocols source-packet-routing source-routing-path lsp1to3_sr primary R1-R2-R3
デバイスR1(BN1ルーター)で、色付きSR-TEアンダーレイパス用に以下の追加コマンドを設定します。
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp1to3_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
デバイスR4(BN2ルーター)
set interfaces ge-0/0/0 description To_R0 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.2.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:4000:10::4/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.40.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:4000:20::4/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R1 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1400:10::4/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R2 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2400:10::4/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.24.1/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:2400:20::4/64 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R5 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:4500:10::4/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.45.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:4500:20::4/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set interfaces lo0 unit 0 family inet6 address abcd::04:04:04:04/128 set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.6.6.6/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.4.4.4/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.4.4.4 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.4.4.4 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ] set protocols express-segments segment-set set4sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/0.0 passive set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 4111 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 4101 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 4211 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 4201 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 4511 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 4501 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group green set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing segment-list R4-R5-R6 hop1 label 4511 set protocols source-packet-routing segment-list R4-R5-R6 hop2 label 5601 set protocols source-packet-routing source-routing-path lsp4to6_sr to 10.6.6.6 set protocols source-packet-routing source-routing-path lsp4to6_sr primary R4-R5-R6
デバイスR4(BN2ルーター)で、色付きSR-TEアンダーレイパス用に以下の追加コマンドを設定します。
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp4to6_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
デバイスR2(中間ルーター)
set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1200:10::2/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.21.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1200:20::2/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R3 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2300:10::2/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 1 vlan-id 2 set interfaces ge-0/0/1 unit 1 family inet address 192.168.23.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:2300:20::2/64 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R4 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:2400:10::2/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 unit 1 vlan-id 2 set interfaces ge-0/0/2 unit 1 family inet address 192.168.24.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:2400:20::2/64 set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R5 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2500:10::2/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:2600:10::2/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.26.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:2600:20::2/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.2.2.2/32 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::02:02:02:02/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis set policy-options policy-statement nlri2bgp_igp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.2.2.2/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering set policy-options policy-statement ted2nlri_1 term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.2.2.2 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group RR1 type internal set protocols bgp group RR1 local-address 10.2.2.2 set protocols bgp group RR1 family traffic-engineering unicast set protocols bgp group RR1 neighbor 10.1.1.1 set protocols bgp group RR1 neighbor 10.3.3.3 set protocols bgp group RR1 neighbor 10.6.6.6 set protocols bgp group RR1 neighbor 10.4.4.4 set protocols bgp cluster 10.2.2.2 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2111 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2101 set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2112 set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2102 set protocols isis interface ge-0/0/0.1 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 2311 set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 2301 set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 2411 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 2401 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 2511 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 2501 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 2611 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 2601 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/0.1 admin-group yellow set protocols mpls interface ge-0/0/2.0 admin-group green set protocols mpls interface ge-0/0/3.0 admin-group red set protocols mpls interface ge-0/0/4.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable
デバイスR5(中間ルーター)
set interfaces ge-0/0/0 description To_R1 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1500:10::5/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.22.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1500:20::5/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R2 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2500:10::5/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R3 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3500:10::5/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/2 unit 1 vlan-id 2 set interfaces ge-0/0/2 unit 1 family inet address 192.168.35.2/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:3500:20::5/64 set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R4 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:4500:10::5/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.45.2/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:4500:20::5/64 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R6 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:5600:10::5/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.56.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:5600:20::5/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.5.5.5/32 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::05:05:05:05/128 set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.5.5.5/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_igp term 1 from protocol isis set policy-options policy-statement ted2nlri_igp term 1 then accept set routing-options router-id 10.5.5.5 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group RR2 type internal set protocols bgp group RR2 family inet unicast set protocols bgp group RR2 family traffic-engineering unicast set protocols bgp group RR2 neighbor 10.1.1.1 set protocols bgp group RR2 neighbor 10.3.3.3 set protocols bgp group RR2 neighbor 10.6.6.6 set protocols bgp group RR2 neighbor 10.4.4.4 set protocols bgp cluster 10.5.5.5 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 5111 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 5101 set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 5211 set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 5201 set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 5311 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 5301 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 5411 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 5401 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 5611 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 5601 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/0.0 admin-group blue set protocols mpls interface ge-0/0/1.0 admin-group red set protocols mpls interface ge-0/0/2.0 admin-group green set protocols mpls interface ge-0/0/3.0 admin-group brown set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable
デバイスR3(BN3ルーター)
set interfaces ge-0/0/0 description To_R2 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:2300:10::3/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.23.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:2300:20::3/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 2 vlan-id 3 set interfaces ge-0/0/0 unit 2 family inet address 192.168.30.2/24 set interfaces ge-0/0/0 unit 2 family iso set interfaces ge-0/0/0 unit 2 family inet6 address 2001:db8:2300:30::3/64 set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R5 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:3500:10::3/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 1 vlan-id 2 set interfaces ge-0/0/1 unit 1 family inet address 192.168.35.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:3500:20::3/64 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R6 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3600:10::3/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R7 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:3700:10::3/6 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.37.1/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:3700:20::3/6 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.3.3.3/32 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::03:03:03:03/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a set policy-options policy-statement expresspol1 then accept set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a set policy-options policy-statement expresspol2 then accept set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.1.1.1/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then next-hop self set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis set policy-options policy-statement nlri2bgp_igp term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.3.3.3/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set policy-options policy-statement ted2nlri_igp from family traffic-engineering set policy-options policy-statement ted2nlri_igp from protocol isis set policy-options policy-statement ted2nlri_igp then accept set routing-options router-id 10.3.3.3 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.3.3.3 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 vpn-apply-export set protocols express-segments segment-set set3sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 3211 set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 3201 set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 3511 set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 3501 set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 3611 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 3601 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 passive set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/0.0 admin-group brown set protocols mpls interface ge-0/0/1.0 admin-group green set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group [ red brown ] set protocols mpls interface all set protocols mpls interface fxp0.0 disableset protocols source-packet-routing segment-list R3-R2-R1 inherit-label-nexthops set protocols source-packet-routing segment-list R3-R2-R1 auto-translate set protocols source-packet-routing segment-list R3-R2-R1 hop1 ip-address 192.168.6.1 set protocols source-packet-routing segment-list R3-R2-R1 hop2 ip-address 192.168.3.1 set protocols source-packet-routing source-routing-path lsp3to1_sr to 10.1.1.1 set protocols source-packet-routing source-routing-path lsp3to1_sr primary R3-R2-R1
デバイスR3(BN3ルーター)で、色付きSR-TEアンダーレイパス用に以下の追加コマンドを設定します。
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp3to1_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
デバイスR6(BN4ルーター)
set interfaces ge-0/0/0 description To_R0 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.1192.168.2.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:4000:10::4/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.40.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:4000:20::4/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/2 description To_R1 set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 0 vlan-id 1 set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1400:10::4/64 set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 description To_R2 set interfaces ge-0/0/3 vlan-tagging set interfaces ge-0/0/3 unit 0 vlan-id 1 set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2400:10::4/64 set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/3 unit 1 vlan-id 2 set interfaces ge-0/0/3 unit 1 family inet address 192.168.24.1/24 set interfaces ge-0/0/3 unit 1 family iso set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:2400:20::4/64 set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/4 description To_R5 set interfaces ge-0/0/4 vlan-tagging set interfaces ge-0/0/4 unit 0 vlan-id 1 set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 set interfaces ge-0/0/4 unit 0 family iso set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:4500:10::4/64 set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/4 unit 1 vlan-id 2 set interfaces ge-0/0/4 unit 1 family inet address 192.168.45.1/24 set interfaces ge-0/0/4 unit 1 family iso set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:4500:20::4/64 set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::04:04:04:04/128 set policy-options policy-statement expresspolsr1 from protocol spring-te set policy-options policy-statement expresspolsr1 from route-filter 10.6.6.6/32 exact set policy-options policy-statement expresspolsr1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments set policy-options policy-statement nlri2bgp_stat term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 10.4.4.4/32 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments set policy-options policy-statement ted2nlri_epe_stat term 1 then accept set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri_epe_stat term 2 then accept set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis set policy-options policy-statement ted2nlri_epe_stat term 3 then reject set routing-options router-id 10.4.4.4 set routing-options autonomous-system 65200 set routing-options forwarding-table export pplb set protocols bgp group ibgp1 type internal set protocols bgp group ibgp1 local-address 10.4.4.4 set protocols bgp group ibgp1 family traffic-engineering unicast set protocols bgp group ibgp1 export nlri2bgp_epe set protocols bgp group ibgp1 neighbor 10.2.2.2 set protocols bgp group ibgp1 neighbor 10.5.5.5 set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export nlri2bgp_stat set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ] set protocols express-segments segment-set set4sr membership-policy expresspolsr1 set protocols express-segments traffic-engineering set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/0.0 passive set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 4111 set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 4101 set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 4211 set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 4201 set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 4511 set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 4501 set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis backup-spf-options use-post-convergence-lfa set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols isis export prefix-sid set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/2.0 admin-group red set protocols mpls interface ge-0/0/3.0 admin-group green set protocols mpls interface ge-0/0/4.0 admin-group brown set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing segment-list R4-R5-R6 hop1 label 4511 set protocols source-packet-routing segment-list R4-R5-R6 hop2 label 5601 set protocols source-packet-routing source-routing-path lsp4to6_sr to 10.6.6.6 set protocols source-packet-routing source-routing-path lsp4to6_sr primary R4-R5-R6
デバイスR6(BN4ルーター)で、色付きSR-TEアンダーレイパス用に以下の追加コマンドを設定します。
set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ] set protocols source-packet-routing no-chained-composite-next-hop set protocols source-packet-routing source-routing-path lsp6to4_sr color 1000 set protocols source-packet-routing rib-group ipv4-color color-to-inet3
デバイスR7(PE2ルーター)
set interfaces ge-0/0/0 description To_R3 set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 0 vlan-id 1 set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:3700:10::7/64 set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/0 unit 1 vlan-id 2 set interfaces ge-0/0/0 unit 1 family inet address 192.168.37.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:3700:20::7/64 set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 set interfaces ge-0/0/1 description To_R6 set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 0 vlan-id 1 set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:6700:10::7/64 set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 set interfaces ge-0/0/1 unit 1 vlan-id 2 set interfaces ge-0/0/1 unit 1 family inet address 192.168.67.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:6700:20::7/64 set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 set interfaces lo0 unit 0 family inet address 10.7.7.7/32 set interfaces lo0 unit 0 family inet address 10.7.7.71/32 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::07:07:07:07/128 set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::7:7:7:71/128 set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept set policy-options policy-statement direct from protocol direct set policy-options policy-statement direct then accept set policy-options policy-statement mpath then multipath-resolve set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp term 1 then accept set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self set policy-options policy-statement nlri2bgp_epe term 1 then accept set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp set policy-options policy-statement nlri2ted_bgp term 1 then accept set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 set policy-options policy-statement nlri2ted_igp term 1 then accept set policy-options policy-statement payload_vpn_109 term 1 from route-filter 10.109.0.1/16 orlonger set policy-options policy-statement payload_vpn_109 term 1 then community add color7000 set policy-options policy-statement payload_vpn_109 term 1 then next-hop 10.7.7.7 set policy-options policy-statement payload_vpn_109 term 1 then accept set policy-options policy-statement payload_vpn_110 term 1 from route-filter 10.110.0.1/16 orlonger set policy-options policy-statement payload_vpn_110 term 1 then community add color7001 set policy-options policy-statement payload_vpn_110 term 1 then next-hop 10.7.7.7 set policy-options policy-statement payload_vpn_110 term 1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe set policy-options policy-statement ted2nlri term 1 then accept set policy-options community color7000 members color:0:7000 set policy-options community color7001 members color:0:7001 set policy-options resolution-map map1 mode ip-color set routing-options router-id 10.7.7.7 set routing-options autonomous-system 65300 set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 set routing-options static route 10.100.100.101/32 resolve set routing-options forwarding-table export pplb set protocols bgp group ebgp1 type external set protocols bgp group ebgp1 multihop ttl 100 set protocols bgp group ebgp1 family inet unicast set protocols bgp group ebgp1 family inet-vpn unicast set protocols bgp group ebgp1 family traffic-engineering unicast set protocols bgp group ebgp1 export [ nlri2bgp_epe payload_vpn_109 payload_vpn_110 ] set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 200 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group [ red brown ] set protocols bgp group ebgp1 neighbor 10.100.100.101 local-address 10.7.7.71 set protocols bgp group ebgp1 neighbor 10.100.100.101 peer-as 65100 set protocols bgp group ebgp1 vpn-apply-export set protocols bgp group to-CE1 type external set protocols bgp group to-CE1 local-address 192.168.50.1 set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet unicast set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet6 unicast set protocols bgp group to-CE1 neighbor 192.168.50.2 peer-as 700 set protocols bgp group to-CE1 neighbor 192.168.50.2 local-as 300 set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis traffic-engineering l3-unicast-topology set protocols isis traffic-engineering advertisement always set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state set protocols mpls traffic-engineering database import policy ted2nlri set protocols mpls traffic-engineering database export policy nlri2ted_bgp set protocols mpls traffic-engineering database export l3-unicast-topology set protocols mpls admin-groups red 0 set protocols mpls admin-groups blue 1 set protocols mpls admin-groups green 2 set protocols mpls admin-groups yellow 3 set protocols mpls admin-groups orange 4 set protocols mpls admin-groups brown 5 set protocols mpls admin-groups black 6 set protocols mpls admin-groups pink 7 set protocols mpls label-range static-label-range 1000 70000 set protocols mpls interface ge-0/0/1.0 admin-group [ red brown ] set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ] set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols source-packet-routing compute-profile compute1 no-label-stack-compression set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
R0(PE1ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR0を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R0#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
[edit] user@R0#set interfaces ge-0/0/0 description To_R1_1 user@R0#set interfaces ge-0/0/0 vlan-tagging user@R0#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R0#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.1/24 user@R0#set interfaces ge-0/0/0 unit 0 family iso user@R0#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::100/64 user@R0#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R0#set interfaces ge-0/0/2 description To_R4_1 user@R0#set interfaces ge-0/0/2 vlan-tagging user@R0#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R0#set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24 user@R0#set interfaces ge-0/0/2 unit 0 family iso user@R0#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:4000:10::100/64 user@R0#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.100/32 user@R0#set interfaces lo0 unit 0 family inet address 10.100.100.101/32 user@R0#set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 user@R0#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::10:100:100:100/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
ルート フィルターのルート ルートは、外部 AS からアドバタイズされます。
[edit] user@R0#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R0#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R0#set policy-options policy-statement direct from protocol direct user@R0#set policy-options policy-statement direct then accept user@R0#set policy-options policy-statement mpath then multipath-resolve user@R0#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R0#set policy-options policy-statement nlri2bgp term 1 then accept user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R0#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R0#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R0#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R0#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R0#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R0#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R0#set policy-options policy-statement pplb then load-balance per-packet user@R0#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R0#set policy-options policy-statement ted2nlri term 1 then accept user@R0#set policy-options policy-statement vpn1_res_map1 from route-filter 10.1090.1/16 orlonger user@R0#set policy-options policy-statement vpn1_res_map1 then accept user@R0#set policy-options policy-statement vpn1_res_map1 then resolution-map map1 user@R0#set policy-options policy-statement vpn2_res_map1 from route-filter 10.110.0.1/16 orlonger user@R0#set policy-options policy-statement vpn2_res_map1 then accept user@R0#set policy-options policy-statement vpn2_res_map1 then resolution-map map1
-
コミュニティのポリシーオプションを設定して、カラー属性を追加し、解像度マップを設定します。
[edit] user@R0#set policy-options community color7000 members color:0:7000 user@R0#set policy-options community color7001 members color:0:7001 user@R0#set policy-options resolution-map map1 mode ip-color
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R0#set routing-options router-id 100.100.100.100 user@R0#set routing-options autonomous-system 100 user@R0#set routing-options static route 10.7.7.71/32 next-hop 10.7.7.7 user@R0#set routing-options static route 10.7.7.71/32 resolve
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズを有効にし、EPE リンクを定義します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R0#set protocols bgp group ebgp1 type external user@R0#set protocols bgp group ebgp1 multihop ttl 100 user@R0#set protocols bgp group ebgp1 family inet unicast user@R0#set protocols bgp group ebgp1 family inet-vpn unicast user@R0#set protocols bgp group ebgp1 family traffic-engineering unicast user@R0#set protocols bgp group ebgp1 export nlri2bgp_epe user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 peer-as 65200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 label 7101 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 next-hop 192.168.1.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.1.2 egress-te-adj-segment epe_adj1_toR1 te-link-attribute admin-group brown user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 peer-as 65200 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 label 7104 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 next-hop 192.168.2.2 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute te-metric 20 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute igp-metric 10 user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group red user@R0#set protocols bgp group ebgp1 neighbor 192.168.2.2 egress-te-adj-segment epe_adj1_toR4 te-link-attribute admin-group brown user@R0#set protocols bgp group ebgp1 neighbor 10.7.7.71 local-address 10.100.100.101 user@R0#set protocols bgp group ebgp1 neighbor 10.7.7.71 import [ vpn1_res_map1 vpn2_res_map1 ] user@R0#set protocols bgp group ebgp1 neighbor 10.7.7.71 peer-as 65300 user@R0#set protocols bgp group ebgp1 vpn-apply-export
-
IS-ISプロトコルを設定します。
[edit] user@R0#set protocols isis interface lo0.0 passive user@R0#set protocols isis level 1 disable user@R0#set protocols isis level 2 wide-metrics-only user@R0#set protocols isis traffic-engineering l3-unicast-topology user@R0#set protocols isis traffic-engineering advertisement always
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R0#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R0#set protocols mpls traffic-engineering database import policy ted2nlri user@R0#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R0#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R0#set protocols mpls admin-groups red 0 user@R0#set protocols mpls admin-groups blue 1 user@R0#set protocols mpls admin-groups green 2 user@R0#set protocols mpls admin-groups yellow 3 user@R0#set protocols mpls admin-groups orange 4 user@R0#set protocols mpls admin-groups brown 5 user@R0#set protocols mpls admin-groups black 6 user@R0#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R0#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスに MPLS を設定します。
[edit] user@R0#set protocols mpls interface all user@R0#set protocols mpls interface fxp0.0 disable user@R0#set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ]
-
イングレス ルーターで SR-TE ポリシーを設定して、エンドツーエンドの SR-TE ポリシーを有効にします。
[edit] user@R0#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R0#set protocols source-packet-routing compute-profile ecompute1 no-label-stack-compression user@R0#set protocols source-packet-routing source-routing-path computelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path computelsp1 install 10.7.7.71 user@R0#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 to 10.7.7.7 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 color 7000 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp1 primary p1 compute ecompute1 user@R0#set protocols source-packet-routing source-routing-path ecomputelsp2 to 10.7.7.7
結果
設定モードから、show chassis
、show interfaces
、show policy-options
show routing-options
、およびshow protocols
のコマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1_1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.1.1/24; } family iso; family inet6 { address 2001:db8:1000:10::100/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4_1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.2.1/24; } family iso; family inet6 { address 2001:db8:4000:10::100/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.100.100.100/32; address 10.100.100.101/32; } family iso { address 49.0001.000a.0a0a.0a00; } family inet6 { address 2001:db8:abcd::10:100:100:100/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement direct { from protocol direct; then accept; } policy-statement mpath { then multipath-resolve; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then accept; } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement vpn1_res_map1 { from { route-filter 10.109.0.1/16 orlonger; } then { accept; resolution-map map1; } } policy-statement vpn2_res_map1 { from { route-filter 10.110.0.1/16 orlonger; } then { accept; resolution-map map1; } } community color7000 members color:0:7000; community color7001 members color:0:7001; resolution-map map1 { mode ip-color; } } routing-options { router-id 10.100.100.100; autonomous-system 65100; static { route 10.7.7.71/32 { next-hop 10.7.7.7; resolve; } } } protocols { bgp { group ebgp1 { type external; multihop { ttl 100; } family inet { unicast; } family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 192.168.1.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR1 { label 7101; next-hop 192.168.1.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.2.2 { peer-as 65200; egress-te-adj-segment epe_adj1_toR4 { label 7104; next-hop 192.168.12.1 foo te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 10.7.7.71 { local-address 10.100.100.101; import [ vpn1_res_map1 vpn2_res_map1 ]; peer-as 65300; } vpn-apply-export; } } isis { interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; traffic-engineering { l3-unicast-topology; advertisement always; } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface all; interface fxp0.0 { disable; } interface ge-0/0/0.0 { admin-group [ red brown ]; } } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } compute-profile ecompute1 { no-label-stack-compression; } source-routing-path computelsp1 { to 10.7.7.7; install 10.7.7.71; primary { p1 { compute { compute1; } } } } source-routing-path ecomputelsp1 { to 10.7.7.7; color 7000; primary { p1 { compute { ecompute1; } } } } } }
R1(BN1ルーター)を設定します。
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR1を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R1#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
[edit] user@R1#set interfaces ge-0/0/0 description To_R0_1 user@R1#set interfaces ge-0/0/0 vlan-tagging user@R1#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/24 user@R1#set interfaces ge-0/0/0 unit 0 family iso user@R1#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1000:10::1/64 user@R1#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R1#set interfaces ge-0/0/0 unit 1 family inet address 192.168.20.1/24 user@R1#set interfaces ge-0/0/0 unit 1 family iso user@R1#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1000:20::1/64 user@R1#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/2 description To_R2 user@R1#set interfaces ge-0/0/2 vlan-tagging user@R1#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/2 unit 0 family inet address 192.168.3.1/24 user@R1#set interfaces ge-0/0/2 unit 0 family iso user@R1#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1200:10::1/64 user@R1#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R1#set interfaces ge-0/0/2 unit 1 family inet address 192.168.21.1/24 user@R1#set interfaces ge-0/0/2 unit 1 family iso user@R1#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:1200:20::1/64 user@R1#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/3 description to-R4 user@R1#set interfaces ge-0/0/3 vlan-tagging user@R1#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/3 unit 0 family inet address 192.168.4.1/24 user@R1#set interfaces ge-0/0/3 unit 0 family iso user@R1#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:1400:10::1/64 user@R1#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/4 description to-R5 user@R1#set interfaces ge-0/0/4 vlan-tagging user@R1#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R1#set interfaces ge-0/0/4 unit 0 family inet address 192.168.5.1/24 user@R1#set interfaces ge-0/0/4 unit 0 family iso user@R1#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:1500:10::1/64 user@R1#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R1#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R1#set interfaces ge-0/0/4 unit 1 family inet address 192.168.22.1/24 user@R1#set interfaces ge-0/0/4 unit 1 family iso user@R1#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:1500:20::1/64 user@R1#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R1#set interfaces lo0 unit 0 family inet address 10.1.1.1/32 user@R1#set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 user@R1#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::01:01:01:01/128
-
インポートおよびエクスポートポリシーを定義します。例えば、EPE TE リンクをローカル TE データベースから lsdist.0 にエクスポートするポリシーや、lsdist.0 からローカル TE データベースにインポートするポリシーを設定します。ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R1#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R1#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R1#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R1#set policy-options policy-statement expresspolsr1 from route-filter 10.3.3.3/32 exact user@R1#set policy-options policy-statement expresspolsr1 then accept user@R1#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R1#set policy-options policy-statement nlri2bgp term 1 then accept user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R1#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R1#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R1#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R1#set policy-options policy-statement pplb then load-balance per-packet user@R1#set policy-options policy-statement prefix-sid term 1 from route-filter 10.1.1.1/32 exact user@R1#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 user@R1#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R1#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R1#set policy-options policy-statement ted2nlri term 1 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R1#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R1#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R1#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject user@R1#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R1#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R1#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R1#set routing-options router-id 10.1.1.1 user@R1#set routing-options autonomous-system 65200
-
inetcolor.0 を inet.3 ルーティング テーブルにコピーする RIB グループを定義します。
[edit] user@R1#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズを有効にし、EPE リンクを定義します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R1#set protocols bgp group ebgp1 type external user@R1#set protocols bgp group ebgp1 family inet-vpn unicast user@R1#set protocols bgp group ebgp1 family traffic-engineering unicast user@R1#set protocols bgp group ebgp1 export nlri2bgp_stat user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 peer-as 65100 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 label 8110 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.1.1 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group red user@R1#set protocols bgp group ebgp1 neighbor 192.168.1.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group brown user@R1#set protocols bgp group ibgp1 type internal user@R1#set protocols bgp group ibgp1 local-address 10.1.1.1 user@R1#set protocols bgp group ibgp1 family traffic-engineering unicast user@R1#set protocols bgp group ibgp1 export nlri2bgp_epe user@R1#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R1#set protocols bgp group ibgp1 neighbor 10.5.5.5
-
エクスプレスセグメントセットと トラフィックエンジニアリングを設定します。
[edit] user@R1#set protocols express-segments segment-set membership-policy expresspol1 user@R1#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS プロトコルを設定します。
[edit] user@R1#set protocols isis interface ge-0/0/0.0 passive user@R1#set protocols isis interface ge-0/0/1.0 passive user@R1#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1211 user@R1#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1201 user@R1#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 1212 user@R1#set protocols isis interface ge-0/0/2.1 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 1202 user@R1#set protocols isis interface ge-0/0/2.1 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 1411 user@R1#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 1401 user@R1#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 1511 user@R1#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 1501 user@R1#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R1#set protocols isis interface fxp0.0 disable user@R1#set protocols isis interface lo0.0 passive user@R1#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R1#set protocols isis level 1 disable user@R1#set protocols isis level 2 wide-metrics-only user@R1#set protocols isis backup-spf-options use-post-convergence-lfa user@R1#set protocols isis backup-spf-options use-source-packet-routing user@R1#set protocols isis traffic-engineering l3-unicast-topology user@R1#set protocols isis traffic-engineering advertisement always user@R1#set protocols isis export prefix-sid
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R1#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R1#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R1#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R1#set protocols mpls admin-groups red 0 user@R1#set protocols mpls admin-groups blue 1 user@R1#set protocols mpls admin-groups green 2 user@R1#set protocols mpls admin-groups yellow 3 user@R1#set protocols mpls admin-groups orange 4 user@R1#set protocols mpls admin-groups brown 5 user@R1#set protocols mpls admin-groups black 6 user@R1#set protocols mpls admin-groups pink 7
-
インターフェイスで MPLS を設定し、管理グループを含めます。
[edit] user@R1#set protocols mpls label-range static-label-range 1000 70000 user@R1#set protocols mpls interface ge-0/0/3.0 admin-group red user@R1#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R1#set protocols mpls interface ge-0/0/2.1 admin-group yellow user@R1#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R1#set protocols mpls interface all user@R1#set protocols mpls interface fxp0.0 disable
-
R1 デバイスから R3 デバイスに ST-TE LSP を設定します。
[edit] user@R1#set protocols source-packet-routing no-chained-composite-next-hop user@R1#set protocols source-packet-routing segment-list R1-R2-R3 hop1 label 1211 user@R1#set protocols source-packet-routing segment-list R1-R2-R3 hop2 label 801003 user@R1#set protocols source-packet-routing source-routing-path lsp1to3_sr to 10.3.3.3 user@R1#set protocols source-packet-routing source-routing-path lsp1to3_sr color 1000 user@R1#set protocols source-packet-routing source-routing-path lsp1to3_sr primary R1-R2-R3 user@R1#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
以下の結果には、色付きの SR-TE アンダーレイ パス構成も含まれています。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0_1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.1.2/24; } family iso; family inet6 { address 2001:db8:1000:10::1/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.20.1/24; } family iso; family inet6 { address 2001:db8:1000:20::1/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.3.1/24; } family iso; family inet6 { address 2001:db8:1200:10::1/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.21.1/24; } family iso; family inet6 { address 2001:db8:1200:20::1/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description to-R4; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.4.1/24; } family iso; family inet6 { address 2001:db8:1400:10::1/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description to-R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.5.1/24; } family iso; family inet6 { address 2001:db8:1500:10::1/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.22.1/24; } family iso; family inet6 { address 2001:db8:1500:20::1/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.1.1.1/32; } family iso { address 49.0001.0001.0101.0100; } family inet6 { address 2001:db8:abcd::01:01:01:01/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.3.3.3/32 exact; } then accept; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.1.1.1/32 exact; } then { prefix-segment { index 1001; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.1.1.1; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.1.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8110; next-hop 192.168.1.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } group ibgp1 { type internal; local-address 10.1.1.1; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } } express-segments { segment-set set1sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { passive; } interface ge-0/0/0.1 { passive; } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 1211; unprotected label 1201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.1 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 1212; unprotected label 1202; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0404.0404 { ipv4-adjacency-segment { protected label 1411; unprotected label 1401; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 1511; unprotected label 1501; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/2.1 { admin-group yellow; } interface ge-0/0/4.0 { admin-group blue; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R1-R2-R3 { hop1 label 1211; hop2 label 801003; } source-routing-path lsp1to3_sr { to 10.3.3.3; color 1000; primary { R1-R2-R3; } } rib-group { ipv4-color { color-to-inet3; } } } }
R4(BN2ルーター)を設定します。
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR4を設定します。
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R4#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
[edit] user@R4#set interfaces ge-0/0/0 description To_R0 user@R4#set interfaces ge-0/0/0 vlan-tagging user@R4#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.1192.168.2.2/24 user@R4#set interfaces ge-0/0/0 unit 0 family iso user@R4#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:4000:10::4/64 user@R4#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R4#set interfaces ge-0/0/0 unit 1 family inet address 192.168.40.2/24 user@R4#set interfaces ge-0/0/0 unit 1 family iso user@R4#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:4000:20::4/64 user@R4#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/2 description To_R1 user@R4#set interfaces ge-0/0/2 vlan-tagging user@R4#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.2/24 user@R4#set interfaces ge-0/0/2 unit 0 family iso user@R4#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:1400:10::4/64 user@R4#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/3 description To_R2 user@R4#set interfaces ge-0/0/3 vlan-tagging user@R4#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/3 unit 0 family inet address 192.168.7.1/24 user@R4#set interfaces ge-0/0/3 unit 0 family iso user@R4#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2400:10::4/64 user@R4#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R4#set interfaces ge-0/0/3 unit 1 family inet address 192.168.24.1/24 user@R4#set interfaces ge-0/0/3 unit 1 family iso user@R4#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:2400:20::4/64 user@R4#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/4 description To_R5 user@R4#set interfaces ge-0/0/4 vlan-tagging user@R4#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R4#set interfaces ge-0/0/4 unit 0 family inet address 192.168.13.1/24 user@R4#set interfaces ge-0/0/4 unit 0 family iso user@R4#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:4500:10::4/64 user@R4#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R4#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R4#set interfaces ge-0/0/4 unit 1 family inet address 192.168.45.1/24 user@R4#set interfaces ge-0/0/4 unit 1 family iso user@R4#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:4500:20::4/64 user@R4#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R4#set interfaces lo0 unit 0 family inet address 10.4.4.4/32 user@R4#set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 user@R4#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::04:04:04:04/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R4#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R4#set policy-options policy-statement expresspolsr1 from route-filter 10.6.6.6/32 exact user@R4#set policy-options policy-statement expresspolsr1 then accept user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R4#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R4#set policy-options policy-statement pplb then load-balance per-packet user@R4#set policy-options policy-statement prefix-sid term 1 from route-filter 10.4.4.4/32 exact user@R4#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 user@R4#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol express-segments user@R4#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R4#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R4#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R4#set routing-options router-id 10.4.4.4 user@R4#set routing-options autonomous-system 65200
-
inetcolor.0 を inet.3 ルーティング テーブルにコピーする RIB グループを定義します。
[edit] user@R4#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズを有効にし、EPE リンクを定義します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R4#set protocols bgp group ibgp1 type internal user@R4set protocols bgp group ibgp1 local-address 10.4.4.4 user@R4set protocols bgp group ibgp1 family traffic-engineering unicast user@R4set protocols bgp group ibgp1 export nlri2bgp_epe user@R4set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R4set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R4set protocols bgp group ebgp1 type external user@R4set protocols bgp group ebgp1 family inet-vpn unicast user@R4set protocols bgp group ebgp1 family traffic-engineering unicast user@R4set protocols bgp group ebgp1 export nlri2bgp_stat user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 peer-as 65100 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 label 8140 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 next-hop 192.168.2.1 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute te-metric 20 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute igp-metric 10 user@R4set protocols bgp group ebgp1 neighbor 192.168.2.1 egress-te-adj-segment epe_adj1_toR0 te-link-attribute admin-group [ red brown ]
-
エクスプレスセグメントセットと トラフィックエンジニアリングを設定します。
[edit] user@R4#set protocols express-segments segment-set set4sr membership-policy expresspolsr1 user@R4#set protocols express-segments traffic-engineering
-
IS-ISプロトコルを設定します。
[edit] user@R4#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface ge-0/0/0.0 passive user@R4#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 4111 user@R4#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 4101 user@R4#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 4211 user@R4#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 4201 user@R4#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 4511 user@R4#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 4501 user@R4#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R4#set protocols isis interface fxp0.0 disable user@R4#set protocols isis interface lo0.0 passive user@R4#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R4#set protocols isis level 1 disable user@R4#set protocols isis level 2 wide-metrics-only user@R4#set protocols isis backup-spf-options use-post-convergence-lfa user@R4#set protocols isis backup-spf-options use-source-packet-routing user@R4#set protocols isis traffic-engineering l3-unicast-topology user@R4#set protocols isis traffic-engineering advertisement always user@R4#set protocols isis export prefix-sid
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R4#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R4#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R4#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R4#set protocols mpls admin-groups red 0 user@R4#set protocols mpls admin-groups blue 1 user@R4#set protocols mpls admin-groups green 2 user@R4#set protocols mpls admin-groups yellow 3 user@R4#set protocols mpls admin-groups orange 4 user@R4#set protocols mpls admin-groups brown 5 user@R4#set protocols mpls admin-groups black 6 user@R4#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R4#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスで MPLS を設定し、管理グループを含めます。
[edit] user@R4#set protocols mpls interface ge-0/0/2.0 admin-group red user@R4#set protocols mpls interface ge-0/0/3.0 admin-group green user@R4#set protocols mpls interface ge-0/0/4.0 admin-group brown user@R4#set protocols mpls interface all user@R4#set protocols mpls interface fxp0.0 disable
-
R4 デバイスから R6 デバイスに ST-TE LSP を設定します。
[edit] user@R4#set protocols source-packet-routing no-chained-composite-next-hop user@R4#set protocols source-packet-routing segment-list R4-R5-R6 hop1 label 4511 user@R4#set protocols source-packet-routing segment-list R4-R5-R6 hop2 label 5601 user@R4#set protocols source-packet-routing source-routing-path lsp4to6_sr to 10.6.6.6 user@R4#set protocols source-packet-routing source-routing-path lsp4to6_sr color 1000 user@R4#set protocols source-packet-routing source-routing-path lsp4to6_sr primary R4-R5-R6 user@R4#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
以下の結果には、色付きの SR-TE アンダーレイ パス構成も含まれています。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R0; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.2.2/24; } family iso; family inet6 { address 2001:db8:4000:10::4/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.40.2/24; } family iso; family inet6 { address 2001:db8:4000:20::4/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.4.2/24; } family iso; family inet6 { address 2001:db8:1400:10::4/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.7.1/24; } family iso; family inet6 { address 2001:db8:2400:10::4/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.24.1/24; } family iso; family inet6 { address 2001:db8:2400:20::4/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.13.1/24; } family iso; family inet6 { address 2001:db8:4500:10::4/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.45.1/24; } family iso; family inet6 { address 2001:db8:4500:20::4/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.4.4.4/32; } family iso { address 49.0001.0004.0404.0400; } family inet6 { address 2001:db8:abcd::04:04:04:04/128; } } } } policy-options { policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.6.6.6/32 exact; } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.4.4.4/32 exact; } then { prefix-segment { index 1004; node-segment; } } } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.4.4.4; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.4.4.4; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family inet-vpn { unicast; } family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.2.1 { peer-as 65100; egress-te-adj-segment epe_adj1_toR0 { label 8140; next-hop 192.168.2.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set set4sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { level 2 { post-convergence-lfa { node-protection; } } passive; } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 4111; unprotected label 4101; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 4211; unprotected label 4201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 4511; unprotected label 4501; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/3.0 { admin-group green; } interface ge-0/0/4.0 { admin-group brown; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R4-R5-R6 { hop1 label 4511; hop2 label 5601; } source-routing-path lsp4to6_sr { to 10.6.6.6; color 1000; primary { R4-R5-R6; } } rib-group { ipv4-color { color-to-inet3; } } } }
R2(中間ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR2を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R2#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R2#set interfaces ge-0/0/0 description To_R1 user@R2#set interfaces ge-0/0/0 vlan-tagging user@R2#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/0 unit 0 family inet address 192.168.3.2/24 user@R2#set interfaces ge-0/0/0 unit 0 family iso user@R2#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1200:10::2/64 user@R2#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/0 vlan-tagging user@R2#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/0 unit 1 family inet address 192.168.21.2/24 user@R2#set interfaces ge-0/0/0 unit 1 family iso user@R2#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1200:20::2/64 user@R2#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/1 description To_R3 user@R2#set interfaces ge-0/0/1 vlan-tagging user@R2#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/1 unit 0 family inet address 192.168.6.1/24 user@R2#set interfaces ge-0/0/1 unit 0 family iso user@R2#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2300:10::2/64 user@R2#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/1 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/1 unit 1 family inet address 192.168.23.1/24 user@R2#set interfaces ge-0/0/1 unit 1 family iso user@R2#set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:2300:20::2/64 user@R2#set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/2 description To_R4 user@R2#set interfaces ge-0/0/2 vlan-tagging user@R2#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/2 unit 0 family inet address 192.168.7.1/24 user@R2#set interfaces ge-0/0/2 unit 0 family iso user@R2#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:2400:10::2/64 user@R2#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/2 unit 1 family inet address 192.168.24.1/24 user@R2#set interfaces ge-0/0/2 unit 1 family iso user@R2#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:2400:20::2/64 user@R2#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/3 description To_R5 user@R2#set interfaces ge-0/0/3 vlan-tagging user@R2#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/3 unit 0 family inet address 192.168.8.1/24 user@R2#set interfaces ge-0/0/3 unit 0 family iso user@R2#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:2500:10::2/64 user@R2#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/4 description To_R6 user@R2#set interfaces ge-0/0/4 vlan-tagging user@R2#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R2#set interfaces ge-0/0/4 unit 0 family inet address 192.168.9.1/24 user@R2#set interfaces ge-0/0/4 unit 0 family iso user@R2#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:2600:10::2/64 user@R2#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R2#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R2#set interfaces ge-0/0/4 unit 1 family inet address 192.168.26.1/24 user@R2#set interfaces ge-0/0/4 unit 1 family iso user@R2#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:2600:20::2/64 user@R2#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R2#set interfaces lo0 unit 0 family inet address 10.2.2.2/32 user@R2#set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 user@R2#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::02:02:02:02/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R2#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R2#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R2#set policy-options policy-statement nlri2bgp term 1 then accept user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis user@R2#set policy-options policy-statement nlri2bgp_igp term 1 then accept user@R2#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R2#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R2#set policy-options policy-statement pplb then load-balance per-packet user@R2#set policy-options policy-statement prefix-sid term 1 from route-filter 10.2.2.2/32 exact user@R2#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 user@R2#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R2#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R2#set policy-options policy-statement ted2nlri term 1 then accept user@R2#set policy-options policy-statement ted2nlri_1 term 1 from traffic-engineering user@R2#set policy-options policy-statement ted2nlri_1 term 1 then accept user@R2#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R2#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R2#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R2#set routing-options router-id 10.2.2.2 user@R2#set routing-options autonomous-system 65200 user@R2#set routing-options forwarding-table export pplb
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズメントを有効にします。
[edit] user@R2#set protocols bgp group RR1 type internal user@R2#set protocols bgp group RR1 local-address 10.2.2.2 user@R2#set protocols bgp group RR1 family traffic-engineering unicast user@R2#set protocols bgp group RR1 neighbor 10.1.1.1 user@R2#set protocols bgp group RR1 neighbor 10.3.3.3 user@R2#set protocols bgp group RR1 neighbor 10.6.6.6 user@R2#set protocols bgp group RR1 neighbor 10.4.4.4 user@R2#set protocols bgp cluster 10.2.2.2
-
IS-IS プロトコルを設定します。
[edit] user@R2#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2111 user@R2#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2101 user@R2#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 2112 user@R2#set protocols isis interface ge-0/0/0.1 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 2102 user@R2#set protocols isis interface ge-0/0/0.1 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 2311 user@R2#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 2301 user@R2#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 2411 user@R2#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 2401 user@R2#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 2511 user@R2#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 2501 user@R2#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 2611 user@R2#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 2601 user@R2#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R2#set protocols isis interface fxp0.0 disable user@R2#set protocols isis interface lo0.0 passive user@R2#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R2#set protocols isis level 1 disable user@R2#set protocols isis level 2 wide-metrics-only user@R2#set protocols isis backup-spf-options use-post-convergence-lfa user@R2#set protocols isis backup-spf-options use-source-packet-routing user@R2#set protocols isis traffic-engineering l3-unicast-topology user@R2#set protocols isis traffic-engineering advertisement always user@R2#set protocols isis export prefix-sid
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R2#set protocols mpls admin-groups red 0 user@R2#set protocols mpls admin-groups blue 1 user@R2#set protocols mpls admin-groups green 2 user@R2#set protocols mpls admin-groups yellow 3 user@R2#set protocols mpls admin-groups orange 4 user@R2#set protocols mpls admin-groups brown 5 user@R2#set protocols mpls admin-groups black 6 user@R2#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R2#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスの MPLS 管理グループ ポリシーを設定します。
[edit] user@R2#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R2#set protocols mpls interface ge-0/0/0.1 admin-group yellow user@R2#set protocols mpls interface ge-0/0/2.0 admin-group green user@R2#set protocols mpls interface ge-0/0/3.0 admin-group red user@R2#set protocols mpls interface ge-0/0/4.0 admin-group blue user@R2#set protocols mpls interface ge-0/0/1.0 admin-group brown user@R2#set protocols mpls interface all user@R2#set protocols mpls interface fxp0.0 disable
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.3.2/24; } family iso; family inet6 { address 2001:db8:1200:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.21.2/24; } family iso; family inet6 { address 2001:db8:1200:20::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.6.1/24; } family iso; family inet6 { address 2001:db8:2300:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.23.1/24; } family iso; family inet6 { address 2001:db8:2300:20::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R4; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.7.1/24; } family iso; family inet6 { address 2001:db8:2400:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.24.1/24; } family iso; family inet6 { address 2001:db8:2400:20::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.8.1/24; } family iso; family inet6 { address 2001:db8:2500:10::2/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.9.1/24; } family iso; family inet6 { address 2001:db8:2600:10::2/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.26.1/24; } family iso; family inet6 { address 2001:db8:2600:20::2/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.2.2.2/32; } family iso { address 49.0001.0002.0202.0200; } family inet6 { address 2001:db8:abcd::02:02:02:02/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.2.2.2/32 exact; } then { prefix-segment { index 1002; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_1 { term 1 { from { traffic-engineering; } then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.2.2.2; autonomous-system 65200; forwarding-table { export pplb; } } protocols { bgp { group RR1 { type internal; local-address 10.2.2.2; family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.2.2.2; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 2111; unprotected label 2101; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/0.1 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 2112; unprotected label 2102; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0303.0303 { ipv4-adjacency-segment { protected label 2311; unprotected label 2301; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0404.0404 { ipv4-adjacency-segment { protected label 2411; unprotected label 2401; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 2511; unprotected label 2501; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0606.0606 { ipv4-adjacency-segment { protected label 2611; unprotected label 2601; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/0.1 { admin-group yellow; } interface ge-0/0/2.0 { admin-group green; } interface ge-0/0/3.0 { admin-group red; } interface ge-0/0/4.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group brown; } interface all; interface fxp0.0 { disable; } } }
R5(中間ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR5を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R5#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R5#set interfaces ge-0/0/0 description To_R1 user@R5#set interfaces ge-0/0/0 vlan-tagging user@R5#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/0 unit 0 family inet address 192.168.5.2/24 user@R5#set interfaces ge-0/0/0 unit 0 family iso user@R5#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:1500:10::5/64 user@R5#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/0 unit 1 family inet address 192.168.22.2/24 user@R5#set interfaces ge-0/0/0 unit 1 family iso user@R5#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:1500:20::5/64 user@R5#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/1 description To_R2 user@R5#set interfaces ge-0/0/1 vlan-tagging user@R5#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/1 unit 0 family inet address 192.168.8.2/24 user@R5#set interfaces ge-0/0/1 unit 0 family iso user@R5#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:2500:10::5/64 user@R5#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/2 description To_R3 user@R5#set interfaces ge-0/0/2 vlan-tagging user@R5#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/2 unit 0 family inet address 192.168.10.2/24 user@R5#set interfaces ge-0/0/2 unit 0 family iso suser@R5#et interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3500:10::5/64 user@R5#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/2 unit 1 family inet address 192.168.35.2/24 user@R5#set interfaces ge-0/0/2 unit 1 family iso user@R5#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:3500:20::5/64 user@R5#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/3 description To_R4 user@R5#set interfaces ge-0/0/3 vlan-tagging user@R5#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/3 unit 0 family inet address 192.168.13.2/24 user@R5#set interfaces ge-0/0/3 unit 0 family iso user@R5#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:4500:10::5/64 user@R5#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/3 unit 1 family inet address 192.168.45.2/24 user@R5#set interfaces ge-0/0/3 unit 1 family iso user@R5#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:4500:20::5/64 user@R5#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/4 description To_R6 user@R5#set interfaces ge-0/0/4 vlan-tagging user@R5#set interfaces ge-0/0/4 unit 0 vlan-id 1 user@R5#set interfaces ge-0/0/4 unit 0 family inet address 192.168.14.1/24 user@R5#set interfaces ge-0/0/4 unit 0 family iso user@R5#set interfaces ge-0/0/4 unit 0 family inet6 address 2001:db8:5600:10::5/64 user@R5#set interfaces ge-0/0/4 unit 0 family mpls maximum-labels 8 user@R5#set interfaces ge-0/0/4 unit 1 vlan-id 2 user@R5#set interfaces ge-0/0/4 unit 1 family inet address 192.168.56.1/24 user@R5#set interfaces ge-0/0/4 unit 1 family iso user@R5#set interfaces ge-0/0/4 unit 1 family inet6 address 2001:db8:5600:20::5/64 user@R5#set interfaces ge-0/0/4 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R5#set interfaces lo0 unit 0 family inet address 10.5.5.5/32 user@R5#set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 user@R5#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::05:05:05:05/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R5#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R5#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R5#set policy-options policy-statement nlri2bgp term 1 then accept user@R5#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R5#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R5#set policy-options policy-statement pplb then load-balance per-packet user@R5#set policy-options policy-statement prefix-sid term 1 from route-filter 10.5.5.5/32 exact user@R5#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 user@R5#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R5#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R5#set policy-options policy-statement ted2nlri term 1 then accept user@R5#set policy-options policy-statement ted2nlri_igp term 1 from family traffic-engineering user@R5#set policy-options policy-statement ted2nlri_igp term 1 from protocol isis user@R5#set policy-options policy-statement ted2nlri_igp term 1 then accept
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R5#set routing-options router-id 10.5.5.5 user@R5#set routing-options autonomous-system 65200
-
転送テーブルのエクスポートポリシーを定義します。
[edit] user@R5#set routing-options forwarding-table export pplb
-
BGP を設定して、接続されたピアへの BGP-LS ルートアドバタイズメントを有効にします。
[edit] user@R5#set protocols bgp group RR2 type internal user@R5#set protocols bgp group RR2 family inet unicast user@R5#set protocols bgp group RR2 family traffic-engineering unicast user@R5#set protocols bgp group RR2 neighbor 10.1.1.1 user@R5#set protocols bgp group RR2 neighbor 10.3.3.3 user@R5#set protocols bgp group RR2 neighbor 10.6.6.6 user@R5#set protocols bgp group RR2 neighbor 10.4.4.4 user@R5#set protocols bgp cluster 10.5.5.5
インターフェイスに IS-IS プロトコルを設定します。
[edit] user@R5#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment protected label 5111 user@R5#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0101.0101 ipv4-adjacency-segment unprotected label 5101 user@R5#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 5211 user@R5#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 5201 user@R5#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 5311 user@R5#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 5301 user@R5#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment protected label 5411 user@R5#set protocols isis interface ge-0/0/3.0 level 2 lan-neighbor 0100.0404.0404 ipv4-adjacency-segment unprotected label 5401 user@R5#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 5611 user@R5#set protocols isis interface ge-0/0/4.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 5601 user@R5#set protocols isis interface ge-0/0/4.0 level 2 post-convergence-lfa node-protection user@R5#set protocols isis interface fxp0.0 disable user@R5#set protocols isis interface lo0.0 passive user@R5#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R5#set protocols isis level 1 disable user@R5#set protocols isis backup-spf-options use-post-convergence-lfa user@R5#set protocols isis backup-spf-options use-source-packet-routing user@R5#set protocols isis traffic-engineering l3-unicast-topology user@R5#set protocols isis traffic-engineering advertisement always user@R5#set protocols isis export prefix-sid
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R5#set protocols mpls admin-groups red 0 user@R5#set protocols mpls admin-groups blue 1 user@R5#set protocols mpls admin-groups green 2 user@R5#set protocols mpls admin-groups yellow 3 user@R5#set protocols mpls admin-groups orange 4 user@R5#set protocols mpls admin-groups brown 5 user@R5#set protocols mpls admin-groups black 6 user@R5#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R5#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスで MPLS を設定し、管理グループを含める
[edit] user@R5#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R5#set protocols mpls interface ge-0/0/1.0 admin-group red user@R5#set protocols mpls interface ge-0/0/2.0 admin-group green user@R5#set protocols mpls interface ge-0/0/3.0 admin-group brown
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R1; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.5.2/24; } family iso; family inet6 { address 2001:db8:1500:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.22.2/24; } family iso; family inet6 { address 2001:db8:1500:20::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.8.2/24; } family iso; family inet6 { address 2001:db8:2500:10::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.10.2/24; } family iso; family inet6 { address 2001:db8:3500:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.35.2/24; } family iso; family inet6 { address 2001:db8:3500:20::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R4; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.13.2/24; } family iso; family inet6 { address 2001:db8:4500:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.45.2/24; } family iso; family inet6 { address 2001:db8:4500:20::5/64; } family mpls { maximum-labels 8; } } } ge-0/0/4 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.14.1/24; } family iso; family inet6 { address 2001:db8:5600:10::5/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.56.1/24; } family iso; family inet6 { address 2001:db8:5600:20::5/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.5.5.5/32; } family iso { address 49.0001.0005.0505.0500; } family inet6 { address 2001:db8:abcd::05:05:05:05/128; } } } } policy-options { policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.5.5.5/32 exact; } then { prefix-segment { index 1005; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } } routing-options { router-id 10.5.5.5; autonomous-system 65200; forwarding-table { export pplb; } } protocols { bgp { group RR2 { type internal; family inet { unicast; } family traffic-engineering { unicast; } neighbor 10.1.1.1; neighbor 10.3.3.3; neighbor 10.6.6.6; neighbor 10.4.4.4; } cluster 10.5.5.5; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0101.0101 { ipv4-adjacency-segment { protected label 5111; unprotected label 5101; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 5211; unprotected label 5201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0303.0303 { ipv4-adjacency-segment { protected label 5311; unprotected label 5301; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { lan-neighbor 0100.0404.0404 { ipv4-adjacency-segment { protected label 5411; unprotected label 5401; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/4.0 { level 2 { lan-neighbor 0100.0606.0606 { ipv4-adjacency-segment { protected label 5611; unprotected label 5601; } } post-convergence-lfa { node-protection; } } } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/2.0 { admin-group green; } interface ge-0/0/3.0 { admin-group brown; } interface ge-0/0/4.0 { admin-group brown; } interface all; interface fxp0.0 { disable; } } }
R3(BN3ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR3を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R3#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R3#set interfaces ge-0/0/0 description To_R2 user@R3#set interfaces ge-0/0/0 vlan-tagging user@R3#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/0 unit 0 family inet address 192.168.6.2/24 user@R3#set interfaces ge-0/0/0 unit 0 family iso user@R3#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:2300:10::3/64 user@R3#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R3#set interfaces ge-0/0/0 unit 1 family inet address 192.168.23.2/24 user@R3#set interfaces ge-0/0/0 unit 1 family iso user@R3#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:2300:20::3/64 user@R3#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/0 unit 2 vlan-id 3 user@R3#set interfaces ge-0/0/0 unit 2 family inet address 192.168.30.2/24 user@R3#set interfaces ge-0/0/0 unit 2 family iso user@R3#set interfaces ge-0/0/0 unit 2 family inet6 address 2001:db8:2300:30::3/64 user@R3#set interfaces ge-0/0/0 unit 2 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/1 description To_R5 user@R3#set interfaces ge-0/0/1 vlan-tagging user@R3#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/1 unit 0 family inet address 192.168.10.1/24 user@R3#set interfaces ge-0/0/1 unit 0 family iso user@R3#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:3500:10::3/64 user@R3#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/1 unit 1 vlan-id 2 user@R3#set interfaces ge-0/0/1 unit 1 family inet address 192.168.35.1/24 user@R3#set interfaces ge-0/0/1 unit 1 family iso user@R3#set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:3500:20::3/64 user@R3#set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/2 description To_R6 user@R3#set interfaces ge-0/0/2 vlan-tagging user@R3#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/2 unit 0 family inet address 192.168.11.1/24 user@R3#set interfaces ge-0/0/2 unit 0 family iso user@R3#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:3600:10::3/64 user@R3#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/3 description To_R7 user@R3#set interfaces ge-0/0/3 vlan-tagging user@R3#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R3#set interfaces ge-0/0/3 unit 0 family inet address 192.168.12.1/24 user@R3#set interfaces ge-0/0/3 unit 0 family iso user@R3#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:3700:10::3/6 user@R3#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R3#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R3#set interfaces ge-0/0/3 unit 1 family inet address 192.168.37.1/24 user@R3#set interfaces ge-0/0/3 unit 1 family iso user@R3#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:3700:20::3/6 user@R3#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R3#set interfaces lo0 unit 0 family inet address 10.3.3.3/32 user@R3#set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 user@R3#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::03:03:03:03/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R3#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R3#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R3#set policy-options policy-statement expresspol1 from route-filter 10.1.1.1/32 exact install-nexthop lsp lsp3to1_a user@R3#set policy-options policy-statement expresspol1 then accept user@R3#set policy-options policy-statement expresspol2 from route-filter 10.4.4.4/32 exact install-nexthop lsp lsp3to4_a user@R3#set policy-options policy-statement expresspol2 then accept user@R3#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R3#set policy-options policy-statement expresspolsr1 from route-filter 10.1.1.1/32 exact user@R3#set policy-options policy-statement expresspolsr1 then accept user@R3#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp term 1 then next-hop self user@R3#set policy-options policy-statement nlri2bgp term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R3#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_igp term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_igp term 1 from protocol isis user@R3#set policy-options policy-statement nlri2bgp_igp term 1 then accept user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R3#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R3#set policy-options policy-statement pplb then load-balance per-packet user@R3#set policy-options policy-statement prefix-sid term 1 from route-filter 10.3.3.3/32 exact user@R3#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 user@R3#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R3#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R3#set policy-options policy-statement ted2nlri term 1 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R3#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R3#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R3#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject user@R3#set policy-options policy-statement ted2nlri_igp from family traffic-engineering user@R3#set policy-options policy-statement ted2nlri_igp from protocol isis user@R3#set policy-options policy-statement ted2nlri_igp then accept
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R3#set routing-options router-id 10.3.3.3 user@R3#set routing-options autonomous-system 65200
-
inetcolor.0 を inet.3 ルーティング テーブルにコピーする RIB グループを定義します。
[edit] user@R3#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
ピアのBGP-LSルートアドバタイズメントを有効にし、EPEリンクを定義するようにBGPを設定します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R3#set protocols bgp group ibgp1 type internal user@R3#set protocols bgp group ibgp1 local-address 10.3.3.3 user@R3#set protocols bgp group ibgp1 family traffic-engineering unicast user@R3#set protocols bgp group ibgp1 export nlri2bgp_epe user@R3#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R3#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R3#set protocols bgp group ebgp1 type external user@R3#set protocols bgp group ebgp1 family traffic-engineering unicast user@R3#set protocols bgp group ebgp1 export nlri2bgp_stat user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 peer-as 65300 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 label 7137 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.12.2 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R3#set protocols bgp group ebgp1 neighbor 192.168.12.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown user@R3#set protocols bgp group ebgp1 vpn-apply-export
-
エクスプレス セグメントを自動的に(動的に)作成して TE データベースに挿入し、BGP-LS でアドバタイズできるようにするメカニズムを定義します。この例では、すべてのアンダーレイ SR トンネルに対してエクスプレス セグメントが自動的に作成されます。これは、ポリシーを使用してテンプレートを構成することによって行われ、ポリシーに基づいてエクスプレスセグメントが自動的に作成されます。
[edit] user@R3#set protocols express-segments segment-set set3sr membership-policy expresspolsr1 user@R3#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS プロトコルを設定します。
[edit] user@R3#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 3211 user@R3#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 3201 user@R3#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R3#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 3511 user@R3#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 3501 user@R3#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R3#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment protected label 3611 user@R3#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0606.0606 ipv4-adjacency-segment unprotected label 3601 user@R3#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R3#set protocols isis interface ge-0/0/3.0 passive user@R3#set protocols isis interface fxp0.0 disable user@R3#set protocols isis interface lo0.0 passive user@R3#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R3#set protocols isis level 1 disable user@R3#set protocols isis level 2 wide-metrics-only user@R3#set protocols isis backup-spf-options use-post-convergence-lfa user@R3#set protocols isis backup-spf-options use-source-packet-routing user@R3#set protocols isis traffic-engineering l3-unicast-topology user@R3#set protocols isis traffic-engineering advertisement always user@R3#set protocols isis export prefix-sid
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R3#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R3#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R3#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R3#set protocols mpls admin-groups red 0 user@R3#set protocols mpls admin-groups blue 1 user@R3#set protocols mpls admin-groups green 2 user@R3#set protocols mpls admin-groups yellow 3 user@R3#set protocols mpls admin-groups orange 4 user@R3#set protocols mpls admin-groups brown 5 user@R3#set protocols mpls admin-groups black 6 user@R3#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R3#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスで MPLS を設定し、管理グループを含めます。
[edit] user@R3#set protocols mpls interface ge-0/0/0.0 admin-group brown user@R3#set protocols mpls interface ge-0/0/1.0 admin-group green user@R3#set protocols mpls interface ge-0/0/2.0 admin-group red user@R3#set protocols mpls interface ge-0/0/3.0 admin-group [ red brown ] user@R3#set protocols mpls interface all user@R3#set protocols mpls interface fxp0.0 disable
-
R3 デバイスから R1 デバイスに ST-TE LSP を設定します。
[edit] user@R3#set protocols source-packet-routing no-chained-composite-next-hop user@R3#set protocols source-packet-routing segment-list R3-R2-R1 inherit-label-nexthops user@R3#set protocols source-packet-routing segment-list R3-R2-R1 auto-translate user@R3#set protocols source-packet-routing segment-list R3-R2-R1 hop1 ip-address 192.168.6.1 user@R3#set protocols source-packet-routing segment-list R3-R2-R1 hop2 ip-address 192.168.3.1 user@R3#set protocols source-packet-routing source-routing-path lsp3to1_sr to 10.1.1.1 user@R3#set protocols source-packet-routing source-routing-path lsp3to1_sr color 1000 user@R3#set protocols source-packet-routing source-routing-path lsp3to1_sr primary R3-R2-R1 user@R3#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
以下の結果には、色付きの SR-TE アンダーレイ パス構成も含まれています。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.6.2/24; } family iso; family inet6 { address 2001:db8:2300:10::3/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.23.2/24; } family iso; family inet6 { address 2001:db8:2300:20::3/64; } family mpls { maximum-labels 8; } } unit 2 { vlan-id 3; family inet { address 192.168.30.2/24; } family iso; family inet6 { address 2001:db8:2300:30::3/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.10.1/24; } family iso; family inet6 { address 2001:db8:3500:10::3/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.35.1/24; } family iso; family inet6 { address 2001:db8:3500:20::3/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.11.1/24; } family iso; family inet6 { address 2001:db8:3600:10::3/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.12.1/24; } family iso; family inet6 { address 2001:db8:3700:10::3/6; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.37.1/24; } family iso; family inet6 { address 2001:db8:3700:20::3/6; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.3.3.3/32; } family iso { address 49.0001.0003.0303.0300; } family inet6 { address 2001:db8:abcd::03:03:03:03/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement expresspol1 { from { route-filter 10.1.1.1/32 exact { install-nexthop lsp lsp3to1_a; } } then accept; } policy-statement expresspol2 { from { route-filter 10.4.4.4/32 exact { install-nexthop lsp lsp3to4_a; } } then accept; } policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.1.1.1/32 exact; } then accept; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then { next-hop self; accept; } } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_igp { term 1 { from { family traffic-engineering; protocol isis; } then accept; } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.3.3.3/32 exact; } then { prefix-segment { index 1003; node-segment; } } } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } policy-statement ted2nlri_igp { from { family traffic-engineering; protocol isis; } then accept; } } routing-options { router-id 10.3.3.3; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.3.3.3; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.12.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7137; next-hop 192.168.12.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } vpn-apply-export; } } express-segments { segment-set set3sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 3211; unprotected label 3201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 3511; unprotected label 3501; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0606.0606 { ipv4-adjacency-segment { protected label 3611; unprotected label 3601; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { passive; } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group brown; } interface ge-0/0/1.0 { admin-group green; } interface ge-0/0/2.0 { admin-group red; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R3-R2-R1 { inherit-label-nexthops; auto-translate; hop1 ip-address 192.168.6.1; hop2 ip-address 192.168.3.1; } source-routing-path lsp3to1_sr { to 10.1.1.1; color 1000; primary { R3-R2-R1; } } rib-group { ipv4-color { color-to-inet3; } } } }
R6(BN4ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR6を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R6#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R6#set interfaces ge-0/0/0 description To_R2 user@R6#set interfaces ge-0/0/0 vlan-tagging user@R6#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/0 unit 0 family inet address 192.168.9.2/24 user@R6#set interfaces ge-0/0/0 unit 0 family iso user@R6#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:2600:10::6/64 user@R6#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R6#set interfaces ge-0/0/0 unit 1 family inet address 26.26.20.6/24 user@R6#set interfaces ge-0/0/0 unit 1 family iso user@R6#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:2600:20::6/64 user@R6#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/1 description To_R3 user@R6#set interfaces ge-0/0/1 vlan-tagging user@R6#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/1 unit 0 family inet address 192.168.11.2/24 user@R6#set interfaces ge-0/0/1 unit 0 family iso user@R6#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:3600:10::6/64 user@R6#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/2 description To_R5 user@R6#set interfaces ge-0/0/2 vlan-tagging user@R6#set interfaces ge-0/0/2 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/2 unit 0 family inet address 192.168.14.2/24 user@R6#set interfaces ge-0/0/2 unit 0 family iso user@R6#set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:5600:10::6/64 user@R6#set interfaces ge-0/0/2 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/2 unit 1 vlan-id 2 user@R6#set interfaces ge-0/0/2 unit 1 family inet address 56.56.20.6/24 user@R6#set interfaces ge-0/0/2 unit 1 family iso user@R6#set interfaces ge-0/0/2 unit 1 family inet6 address 2001:db8:5600:20::6/64 user@R6#set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/3 description To_R7 user@R6#set interfaces ge-0/0/3 vlan-tagging user@R6#set interfaces ge-0/0/3 unit 0 vlan-id 1 user@R6#set interfaces ge-0/0/3 unit 0 family inet address 192.168.15.1/24 user@R6#set interfaces ge-0/0/3 unit 0 family iso user@R6#set interfaces ge-0/0/3 unit 0 family inet6 address 2001:db8:6700:10::6/64 user@R6#set interfaces ge-0/0/3 unit 0 family mpls maximum-labels 8 user@R6#set interfaces ge-0/0/3 unit 1 vlan-id 2 user@R6#set interfaces ge-0/0/3 unit 1 family inet address 67.67.20.6/24 user@R6#set interfaces ge-0/0/3 unit 1 family iso user@R6#set interfaces ge-0/0/3 unit 1 family inet6 address 2001:db8:6700:20::6/64 user@R6#set interfaces ge-0/0/3 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R6#set interfaces lo0 unit 0 family inet address 10.6.6.6/32 user@R6#set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 user@R6#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::06:06:06:06/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
[edit] user@R6#set policy-options policy-statement expresspolsr1 from protocol spring-te user@R6#set policy-options policy-statement expresspolsr1 from route-filter 10.4.4.4/32 exact user@R6#set policy-options policy-statement expresspolsr1 then accept user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R6#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement nlri2bgp_stat term 1 from protocol express-segments user@R6#set policy-options policy-statement nlri2bgp_stat term 1 then accept user@R6#set policy-options policy-statement pplb then load-balance per-packet user@R6#set policy-options policy-statement prefix-sid term 1 from route-filter 10.6.6.6/32 exact user@R6#set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1006 user@R6#set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 from protocol static user@R6#set policy-options policy-statement ted2nlri_epe_stat term 1 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from family traffic-engineering user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 from protocol bgp-ls-epe user@R6#set policy-options policy-statement ted2nlri_epe_stat term 2 then accept user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 from protocol isis user@R6#set policy-options policy-statement ted2nlri_epe_stat term 3 then reject
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R6#set routing-options router-id 10.6.6.6 user@R6#set routing-options autonomous-system 65200
-
inetcolor.0 を inet.3 ルーティング テーブルにコピーする RIB グループを定義します。
[edit] user@R6#set routing-options rib-groups color-to-inet3 import-rib [ inetcolor.0 inet.3 ]
-
ピアのBGP-LSルートアドバタイズメントを有効にし、EPEリンクを定義するようにBGPを設定します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R6#set protocols bgp group ibgp1 type internal user@R6#set protocols bgp group ibgp1 local-address 10.6.6.6 user@R6#set protocols bgp group ibgp1 family traffic-engineering unicast user@R6#set protocols bgp group ibgp1 export nlri2bgp_epe user@R6#set protocols bgp group ibgp1 neighbor 10.2.2.2 user@R6#set protocols bgp group ibgp1 neighbor 10.5.5.5 user@R6#set protocols bgp group ebgp1 type external user@R6#set protocols bgp group ebgp1 family traffic-engineering unicast user@R6#set protocols bgp group ebgp1 export nlri2bgp_stat user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 peer-as 65300 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 label 7167 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 next-hop 192.168.15.2 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute te-metric 20 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute igp-metric 10 user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group red user@R6#set protocols bgp group ebgp1 neighbor 192.168.15.2 egress-te-adj-segment epe_adj1_toR7 te-link-attribute admin-group brown
-
エクスプレス セグメントを自動的に(動的に)作成して TE データベースに挿入し、BGP-LS でアドバタイズできるようにするメカニズムを定義します。この例では、すべてのアンダーレイ SR トンネルに対してエクスプレス セグメントが自動的に作成されます。これは、ポリシーを使用してテンプレートを構成することによって行われ、ポリシーに基づいてエクスプレスセグメントが自動的に作成されます。
[edit] user@R6#set protocols express-segments segment-set set6sr membership-policy expresspolsr1 user@R6#set protocols express-segments traffic-engineering
-
インターフェイスに IS-IS プロトコルを設定します。
[edit] user@R6#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment protected label 6211 user@R6#set protocols isis interface ge-0/0/0.0 level 2 lan-neighbor 0100.0202.0202 ipv4-adjacency-segment unprotected label 6201 user@R6#set protocols isis interface ge-0/0/0.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment protected label 6311 user@R6#set protocols isis interface ge-0/0/1.0 level 2 lan-neighbor 0100.0303.0303 ipv4-adjacency-segment unprotected label 6301 user@R6#set protocols isis interface ge-0/0/1.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment protected label 6511 user@R6#set protocols isis interface ge-0/0/2.0 level 2 lan-neighbor 0100.0505.0505 ipv4-adjacency-segment unprotected label 6501 user@R6#set protocols isis interface ge-0/0/2.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/3.0 level 2 post-convergence-lfa node-protection user@R6#set protocols isis interface ge-0/0/3.0 passive user@R6#set protocols isis interface fxp0.0 disable user@R6#set protocols isis interface lo0.0 passive user@R6#set protocols isis source-packet-routing srgb start-label 800000 index-range 50000 user@R6#set protocols isis level 1 disable user@R6#set protocols isis level 2 wide-metrics-only user@R6#set protocols isis backup-spf-options use-post-convergence-lfa user@R6#set protocols isis backup-spf-options use-source-packet-routing user@R6#set protocols isis traffic-engineering l3-unicast-topology user@R6#set protocols isis traffic-engineering advertisement always user@R6#set protocols isis export prefix-sid
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R6#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R6#set protocols mpls traffic-engineering database import policy ted2nlri_epe_stat user@R6#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R6#set protocols mpls admin-groups red 0 user@R6#set protocols mpls admin-groups blue 1 user@R6#set protocols mpls admin-groups green 2 user@R6#set protocols mpls admin-groups yellow 3 user@R6#set protocols mpls admin-groups orange 4 user@R6#set protocols mpls admin-groups brown 5 user@R6#set protocols mpls admin-groups black 6 user@R6#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R6#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスで MPLS を設定し、管理グループを含めます。
[edit] user@R6#set protocols mpls interface ge-0/0/0.0 admin-group blue user@R6#set protocols mpls interface ge-0/0/1.0 admin-group red user@R6#set protocols mpls interface ge-0/0/2.0 admin-group brown user@R6#set protocols mpls interface ge-0/0/3.0 admin-group [ red brown ] user@R6#set protocols mpls interface all user@R6#set protocols mpls interface fxp0.0 disable
-
R6 デバイスから R4 デバイスに ST-TE LSP を設定します。
[edit] user@R6#set protocols source-packet-routing no-chained-composite-next-hop user@R6#set protocols source-packet-routing segment-list R6-R5-R4 hop1 label 801005 user@R6#set protocols source-packet-routing segment-list R6-R5-R4 hop2 label 801004 user@R6#set protocols source-packet-routing source-routing-path lsp6to4_sr to 10.4.4.4 user@R6#set protocols source-packet-routing source-routing-path lsp6to4_sr color 1000 user@R6#set protocols source-packet-routing source-routing-path lsp6to4_sr primary R6-R5-R4 user@R6#set protocols source-packet-routing rib-group ipv4-color color-to-inet3
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
以下の結果には、色付きの SR-TE アンダーレイ パス構成も含まれています。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R2; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.9.2/24; } family iso; family inet6 { address 2001:db8:2600:10::6/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 26.26.20.6/24; } family iso; family inet6 { address 2001:db8:2600:20::6/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.11.2/24; } family iso; family inet6 { address 2001:db8:3600:10::6/64; } family mpls { maximum-labels 8; } } } ge-0/0/2 { description To_R5; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.14.2/24; } family iso; family inet6 { address 2001:db8:5600:10::6/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 56.56.20.6/24; } family iso; family inet6 { address 2001:db8:5600:20::6/64; } family mpls { maximum-labels 8; } } } ge-0/0/3 { description To_R7; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.15.1/24; } family iso; family inet6 { address 2001:db8:6700:10::6/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 67.67.20.6/24; } family iso; family inet6 { address 2001:db8:6700:20::6/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 6.6.6.6/32; } family iso { address 49.0001.0006.0606.0600; } family inet6 { address 2001:db8:abcd::06:06:06:06/128; } } } } policy-options { policy-statement expresspolsr1 { from { protocol spring-te; route-filter 10.4.4.4/32 exact; } then accept; } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2bgp_stat { term 1 { from { family traffic-engineering; protocol express-segments; } then accept; } } policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 10.6.6.6/32 exact; } then { prefix-segment { index 1006; node-segment; } } } } policy-statement ted2nlri_epe_stat { term 1 { from { family traffic-engineering; protocol static; } then accept; } term 2 { from { family traffic-engineering; protocol bgp-ls-epe; } then accept; } term 3 { from protocol isis; then reject; } } } routing-options { router-id 10.6.6.6; autonomous-system 65200; rib-groups { color-to-inet3 { import-rib [ inetcolor.0 inet.3 ]; } } forwarding-table { export pplb; } } protocols { bgp { group ibgp1 { type internal; local-address 10.6.6.6; family traffic-engineering { unicast; } export nlri2bgp_epe; neighbor 10.2.2.2; neighbor 10.5.5.5; } group ebgp1 { type external; family traffic-engineering { unicast; } export nlri2bgp_stat; neighbor 192.168.15.2 { peer-as 65300; egress-te-adj-segment epe_adj1_toR7 { label 7167; next-hop 192.168.15.2; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } } } express-segments { segment-set set6sr { membership-policy expresspolsr1; } traffic-engineering; } isis { interface ge-0/0/0.0 { level 2 { lan-neighbor 0100.0202.0202 { ipv4-adjacency-segment { protected label 6211; unprotected label 6201; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/1.0 { level 2 { lan-neighbor 0100.0303.0303 { ipv4-adjacency-segment { protected label 6311; unprotected label 6301; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/2.0 { level 2 { lan-neighbor 0100.0505.0505 { ipv4-adjacency-segment { protected label 6511; unprotected label 6501; } } post-convergence-lfa { node-protection; } } } interface ge-0/0/3.0 { level 2 { post-convergence-lfa { node-protection; } } passive; } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { srgb start-label 800000 index-range 50000; } level 1 disable; level 2 wide-metrics-only; backup-spf-options { use-post-convergence-lfa; use-source-packet-routing; } traffic-engineering { l3-unicast-topology; advertisement always; } export prefix-sid; } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri_epe_stat; } export { l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/0.0 { admin-group blue; } interface ge-0/0/1.0 { admin-group red; } interface ge-0/0/2.0 { admin-group brown; } interface ge-0/0/3.0 { admin-group [ red brown ]; } interface all; interface fxp0.0 { disable; } } source-packet-routing { no-chained-composite-next-hop; segment-list R6-R5-R4 { hop1 label 801005; hop2 label 801004; } source-routing-path lsp6to4_sr { to 10.4.4.4; color 1000; primary { R6-R5-R4; } } rib-group { ipv4-color { color-to-inet3; } } } }
R7(PE2ルーター)の設定
ステップバイステップでの手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLI のナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイスR7を設定するには:
-
ネットワークサービスモードをEnhanced IPに設定します。拡張IPは、ルーターのネットワークサービスを拡張インターネットプロトコルに設定し、拡張モード機能を使用します。
[edit] user@R7#set chassis network-services enhanced-ip
enhanced-ip
ステートメントを構成し、構成をコミットした後、次の警告メッセージが表示され、ルータを再起動するよう促します。'chassis' WARNING: Chassis configuration for network services has been changed. A system reboot is mandatory. Please reboot the system NOW. Continuing without a reboot might result in unexpected system behavior. commit complete
再起動により、ルーターにFPCが立ち上がる。
-
インターフェイスを設定して、IP、MPLS、および ISO トランスポートを有効にします。
user@R7#set interfaces ge-0/0/0 description To_R3 user@R7#set interfaces ge-0/0/0 vlan-tagging user@R7#set interfaces ge-0/0/0 unit 0 vlan-id 1 user@R7#set interfaces ge-0/0/0 unit 0 family inet address 192.168.12.2/24 user@R7#set interfaces ge-0/0/0 unit 0 family iso user@R7#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:3700:10::7/64 user@R7#set interfaces ge-0/0/0 unit 0 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/0 unit 1 vlan-id 2 user@R7#set interfaces ge-0/0/0 unit 1 family inet address 192.168.37.2/24 user@R7#set interfaces ge-0/0/0 unit 1 family iso user@R7#set interfaces ge-0/0/0 unit 1 family inet6 address 2001:db8:3700:20::7/64 user@R7#set interfaces ge-0/0/0 unit 1 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/1 description To_R6 user@R7#set interfaces ge-0/0/1 vlan-tagging user@R7#set interfaces ge-0/0/1 unit 0 vlan-id 1 user@R7#set interfaces ge-0/0/1 unit 0 family inet address 192.168.15.2/24 user@R7#set interfaces ge-0/0/1 unit 0 family iso user@R7#set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:6700:10::7/64 user@R7#set interfaces ge-0/0/1 unit 0 family mpls maximum-labels 8 user@R7#set interfaces ge-0/0/1 unit 1 vlan-id 2 user@R7#set interfaces ge-0/0/1 unit 1 family inet address 192.168.67.2/24 user@R7#set interfaces ge-0/0/1 unit 1 family iso user@R7#set interfaces ge-0/0/1 unit 1 family inet6 address 2001:db8:6700:20::7/64 user@R7#set interfaces ge-0/0/1 unit 1 family mpls maximum-labels 8
-
ループバック インターフェイスを設定して、トンネル エンドポイントとサービス エンドポイントを有効にします。
[edit] user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.7/32 user@R7#set interfaces lo0 unit 0 family inet address 10.7.7.71/32 user@R7#set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 user@R7#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::07:07:07:07/128 user@R7#set interfaces lo0 unit 0 family inet6 address 2001:db8:abcd::7:7:7:71/128
-
インポートおよびエクスポートポリシーを定義します。例えば、ローカル TE データベースからローカル TE データベースに EPE TE リンクをエクスポートするポリシーや、ローカル TE データベースにインポートするポリシーを設定します。lsdist.0lsdist.0 ピアにBGPルートをアドバタイズするポリシーを設定できます。
ルート フィルターのルート ルートは、外部 AS からアドバタイズされます。
[edit] user@R7#set policy-options policy-statement bgplsepe_rt_2_ted term 1 from protocol bgp user@R7#set policy-options policy-statement bgplsepe_rt_2_ted term 1 then accept user@R7#set policy-options policy-statement direct from protocol direct user@R7#set policy-options policy-statement direct then accept user@R7#set policy-options policy-statement mpath then multipath-resolve user@R7#set policy-options policy-statement nlri2bgp term 1 from family traffic-engineering user@R7#set policy-options policy-statement nlri2bgp term 1 then accept user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from family traffic-engineering user@R7#set policy-options policy-statement nlri2bgp_epe term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then next-hop self user@R7#set policy-options policy-statement nlri2bgp_epe term 1 then accept user@R7#set policy-options policy-statement nlri2ted_bgp term 1 from protocol bgp user@R7#set policy-options policy-statement nlri2ted_bgp term 1 then accept user@R7#set policy-options policy-statement nlri2ted_igp term 1 from traffic-engineering protocol isis-level-2 user@R7#set policy-options policy-statement nlri2ted_igp term 1 then accept user@R7#set policy-options policy-statement payload_vpn_109 term 1 from route-filter 10.109.0.1/16 orlonger user@R7#set policy-options policy-statement payload_vpn_109 term 1 then community add color7000 user@R7#set policy-options policy-statement payload_vpn_109 term 1 then next-hop 10.7.7.7 user@R7#set policy-options policy-statement payload_vpn_109 term 1 then accept user@R7#set policy-options policy-statement payload_vpn_110 term 1 from route-filter 10.110.0.1/16 orlonger user@R7#set policy-options policy-statement payload_vpn_110 term 1 then community add color7001 user@R7#set policy-options policy-statement payload_vpn_110 term 1 then next-hop 10.7.7.7 user@R7#set policy-options policy-statement payload_vpn_110 term 1 then accept user@R7#set policy-options policy-statement pplb then load-balance per-packet user@R7#set policy-options policy-statement ted2nlri term 1 from protocol bgp-ls-epe user@R7#set policy-options policy-statement ted2nlri term 1 then accept user@R7#set policy-options community color7000 members color:0:7000 user@R7#set policy-options community color7001 members color:0:7001 user@R7#set policy-options resolution-map map1 mode ip-color
-
ドメイン内のルーターを特定するためのルーティングオプションを設定する。
[edit] user@R7#set routing-options router-id 10.7.7.7 user@R7#set routing-options autonomous-system 65300 user@R7#set routing-options static route 10.100.100.101/32 next-hop 10.100.100.100 user@R7#set routing-options static route 10.100.100.101/32 resolve user@R7#set routing-options forwarding-table export pplb
-
ピアのBGP-LSルートアドバタイズメントを有効にし、EPEリンクを定義するようにBGPを設定します。エクスプレス セグメントは内部 TE リンクであるため、この設定によって外部 TE リンクが作成されます。
[edit] user@R7#set protocols bgp group ebgp1 type external user@R7#set protocols bgp group ebgp1 multihop ttl 100 user@R7#set protocols bgp group ebgp1 family inet unicast user@R7#set protocols bgp group ebgp1 family inet-vpn unicast user@R7#set protocols bgp group ebgp1 family traffic-engineering unicast user@R7#set protocols bgp group ebgp1 export [ nlri2bgp_epe payload_vpn_109 payload_vpn_110 ] user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 peer-as 65200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 label 8173 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 next-hop 192.168.12.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.12.1 egress-te-adj-segment epe_adj1_toR3 te-link-attribute admin-group brown user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 peer-as 200 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 label 8176 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 next-hop 192.168.15.1 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute te-metric 20 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute igp-metric 10 user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group red user@R7#set protocols bgp group ebgp1 neighbor 192.168.15.1 egress-te-adj-segment epe_adj1_toR6 te-link-attribute admin-group brown user@R7#set protocols bgp group ebgp1 neighbor 10.100.100.101 local-address 10.7.7.71 user@R7#set protocols bgp group ebgp1 neighbor 10.100.100.101 peer-as 100 user@R7#set protocols bgp group ebgp1 vpn-apply-export user@R7#set protocols bgp group to-CE1 type external user@R7#set protocols bgp group to-CE1 local-address 192.168.50.1 user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet unicast user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 family inet6 unicast user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 peer-as 65007 user@R7#set protocols bgp group to-CE1 neighbor 192.168.50.2 local-as 65300
-
IS-ISプロトコルを設定します。
[edit]user@R7#set protocols isis interface fxp0.0 disable user@R7#set protocols isis interface lo0.0 passive user@R7#set protocols isis level 1 disable user@R7#set protocols isis level 2 wide-metrics-only user@R7#set protocols isis traffic-engineering l3-unicast-topology user@R7#set protocols isis traffic-engineering advertisement always
-
ポリシーを使用して、トラフィックエンジニアリングデータベースパラメータのインポートとエクスポートを有効にします。
[edit] user@R7#set protocols mpls traffic-engineering database import l3-unicast-topology bgp-link-state user@R7#set protocols mpls traffic-engineering database import policy ted2nlri user@R7#set protocols mpls traffic-engineering database export policy nlri2ted_bgp user@R7#set protocols mpls traffic-engineering database export l3-unicast-topology
-
LSP パス計算用の MPLS 管理グループ ポリシーを設定します。
[edit] user@R7#set protocols mpls admin-groups red 0 user@R7#set protocols mpls admin-groups blue 1 user@R7#set protocols mpls admin-groups green 2 user@R7#set protocols mpls admin-groups yellow 3 user@R7#set protocols mpls admin-groups orange 4 user@R7#set protocols mpls admin-groups brown 5 user@R7#set protocols mpls admin-groups black 6 user@R7#set protocols mpls admin-groups pink 7
-
EPEリンクに静的ラベルを割り当てるために、MPLSラベル範囲を設定します。
[edit] user@R7#set protocols mpls label-range static-label-range 1000 70000
-
インターフェイスで MPLS を設定し、管理グループを含めます。
[edit] user@R7#set protocols mpls interface ge-0/0/1.0 admin-group [ red brown ] user@R7#set protocols mpls interface ge-0/0/0.0 admin-group [ red brown ] user@R7#set protocols mpls interface all user@R7#set protocols mpls interface fxp0.0 disable
-
イングレス ルーターで SR-TE ポリシーを設定して、エンドツーエンドの SR-TE ポリシーを有効にします。
[edit] user@R7#set protocols source-packet-routing compute-profile compute1 no-label-stack-compression user@R7#set protocols source-packet-routing source-routing-path computelsp1 to 10.100.100.100 user@R7#set protocols source-packet-routing source-routing-path computelsp1 install 10.100.100.101 user@R7#set protocols source-packet-routing source-routing-path computelsp1 primary p1 compute compute1
結果
コンフィギュレーションモードから、 show routing-options
、show chassis
、show interfaces
およびshow policy-options
とshow protocols
コマンドを入力して、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
chassis { network-services enhanced-ip; } interfaces { ge-0/0/0 { description To_R3; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.12.2/24; } family iso; family inet6 { address 2001:db8:3700:10::7/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.37.2/24; } family iso; family inet6 { address 2001:db8:3700:20::7/64; } family mpls { maximum-labels 8; } } } ge-0/0/1 { description To_R6; vlan-tagging; unit 0 { vlan-id 1; family inet { address 192.168.15.2/24; } family iso; family inet6 { address 2001:db8:6700:10::7/64; } family mpls { maximum-labels 8; } } unit 1 { vlan-id 2; family inet { address 192.168.67.2/24; } family iso; family inet6 { address 2001:db8:6700:20::7/64; } family mpls { maximum-labels 8; } } } lo0 { unit 0 { family inet { address 10.7.7.7/32; address 10.7.7.71/32; } family iso { address 49.0001.0007.0707.0700; } family inet6 { address 2001:db8:abcd::07:07:07:07/128; address 2001:db8:abcd::7:7:7:71/128; } } } } policy-options { policy-statement bgplsepe_rt_2_ted { term 1 { from protocol bgp; then accept; } } policy-statement direct { from protocol direct; then accept; } policy-statement mpath { then multipath-resolve; } policy-statement nlri2bgp { term 1 { from family traffic-engineering; then accept; } } policy-statement nlri2bgp_epe { term 1 { from { family traffic-engineering; protocol bgp-ls-epe; } then { next-hop self; accept; } } } policy-statement nlri2ted_bgp { term 1 { from protocol bgp; then accept; } } policy-statement nlri2ted_igp { term 1 { from { traffic-engineering { protocol isis-level-2; } } then accept; } } policy-statement payload_vpn_109 { term 1 { from { route-filter 109.0.0.1/16 orlonger; } then { community add color7000; next-hop 10.7.7.7; accept; } } } policy-statement payload_vpn_110 { term 1 { from { route-filter 10.110.0.1/16 orlonger; } then { community add color7001; next-hop 10.7.7.7; accept; } } } policy-statement pplb { then { load-balance per-packet; } } policy-statement ted2nlri { term 1 { from protocol bgp-ls-epe; then accept; } } community color7000 members color:0:7000; community color7001 members color:0:7001; resolution-map map1 { mode ip-color; } } routing-options { router-id 10.7.7.7; autonomous-system 65300; static { route1 0.100.100.101/32 { next-hop 10.100.100.100; resolve; } } forwarding-table { export pplb; } } protocols { bgp { group ebgp1 { type external; multihop { ttl 100; } family inet { unicast; } family inet-vpn { unicast; } family traffic-engineering { unicast; } export [ nlri2bgp_epe payload_vpn_109 payload_vpn_110 ]; neighbor 192.168.12.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR3 { label 8173; next-hop 192.168.12.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 192.168.15.1 { peer-as 65200; egress-te-adj-segment epe_adj1_toR6 { label 8176; next-hop 192.168.15.1; te-link-attribute { te-metric 20; igp-metric 10; admin-group [ red brown ]; } } } neighbor 10.100.100.101 { local-address 10.7.7.71; peer-as 65100; } vpn-apply-export; } group to-CE1 { type external; local-address 192.168.50.1; neighbor 192.168.50.2 { family inet { unicast; } family inet6 { unicast; } peer-as 65007; local-as 65300; } } } isis { interface fxp0.0 { disable; } interface lo0.0 { passive; } level 1 disable; level 2 wide-metrics-only; traffic-engineering { l3-unicast-topology; advertisement always; } } mpls { traffic-engineering { database { import { l3-unicast-topology { bgp-link-state; } policy ted2nlri; } export { policy nlri2ted_bgp; l3-unicast-topology; } } } admin-groups { red 0; blue 1; green 2; yellow 3; orange 4; brown 5; black 6; pink 7; } label-range { static-label-range 1000 70000; } interface ge-0/0/1.0 { admin-group [ red brown ]; } interface ge-0/0/0.0 { admin-group [ red brown ]; } interface all; interface fxp0.0 { disable; } } source-packet-routing { compute-profile compute1 { no-label-stack-compression; } source-routing-path computelsp1 { to 10.100.100.100; install 10.100.100.101; primary { p1 { compute { compute1; } } } } } }
検証
設定が正しく行われていることを確認するために、以下の作業を行います。
エクスプレスセグメントの確認
目的
エクスプレス・セグメントが正しく作成されていることを確認します。
アクション
動作モードから、次のコマンドを実行します。
-
show express-segments detail
- エクスプレス セグメントが作成されているかどうかを確認します。 -
show ted database topology-type express-segments detail
- 新しく作成したエクスプレス セグメントが TE データベースに挿入されていることを確認します。 -
show route table mpls.0 protocol express-segments
- 転送エントリが作成されているかどうかを確認します。
user@R1>show express-segments detail Name: set1sr-10.3.3.3 To: 10.3.3.3, Type: Dynamic (Set: set1sr) Label: 16 (Route installed in mpls.0, TED entry added) Status: Up (ElapsedTime: 5d 20:37:08) LinkAttributes: LocalID: 2147483649 TE-Metric: 20, IGP-Metric: 20 BW: 0bps UnderlayPaths: 1 SRTE LSP: lsp1to3_sr TE-Metric: 0, IGP-Metric: 0 BW: 0bps
R1について
user@R1>show ted database topology-type express-segments detail TED database: 18 ISIS nodes 7 INET nodes 0 INET6 nodes NodeID: R1.00(10.1.1.1) Type: Rtr, Age: 774 secs, LinkIn: 4, LinkOut: 6 Protocol: EXPRESS-SEG(0) To: R3.00(10.3.3.3), Local: 10.1.1.1, Remote: 10.3.3.3 Local interface index: 2147483649, Remote interface index: 0 Link name: set1sr-10.3.3.3 NodeID: R3.00(10.3.3.3) Type: Rtr, Age: 580 secs, LinkIn: 4, LinkOut: 3 Protocol: EXPRESS-SEG(0)
R1について
user@R1>show route table mpls.0 protocol express-segments
mpls.0: 33 destinations, 33 routes (33 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
16 *[EXPRESS-SEG/6] 5d 14:13:37, metric 1
> to 192.168.3.2 via ge-0/0/2.0, Swap 801003
to 192.168.21.2 via ge-0/0/2.1, Swap 801003
意味
-
出力には、エクスプレスセグメントの名前()、エクスプレスセグメントラベル()、アンダーレイLSP()が表示されます。
show express-segments detail
set1sr-10.3.3.316lsp1to3_sr -
出力では 、高速セグメント エントリが TE データベースに挿入されていることがわかります。
show ted database topology-type express-segments detail
エクスプレス セグメント(仮想 TE リンク)は動的に作成されます。使用される プロトコルは です。EXPRESS-SEG(0) -
出力には、エクスプレスセグメントラベル()が表示されます。
show route table mpls.0 protocol express-segments
16 エクスプレス セグメントはアンダーレイ LSP に依存する構成であるため、エクスプレス セグメント ラベルはアンダーレイ SR-TE ラベル()にスワップされます。801003
エクスプレスセグメントアドバタイズメントの検証
目的
送信元ノードが eBGP/iBGP LS ネイバーにエクスプレスセグメントをアドバタイズしていることを確認します。
アクション
動作モードから、次のコマンドを実行します。
-
show route table lsdist.0
- RIB BGP-LSのエクスプレスセグメントがアドバタイズされていることを確認します。 -
show route advertising-protocol bgp neighbor
- エクスプレスセグメントがeBGP/iBGP LSネイバーに送信されていることを確認します。
user@R1>show route table lsdist.0 lsdist.0: 23 destinations, 40 routes (23 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[EXPRESS-SEG/6] 5d 14:50:56 Fictitious NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[EXPRESS-SEG/6] 5d 14:50:56 Fictitious NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:100 IPv10:4.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 14:51:38 Fictitious NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:50:53, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:50:53, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:7.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 14:51:38 Fictitious NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[EXPRESS-SEG/6] 5d 14:50:56 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4 4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:336 } Remote { AS:65200 IPv4 4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.10 0.10.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 14:51:38 Fictitious LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:342 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.10 0.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:50:53, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:50:53, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.4.2 via ge-0/0/3.0 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:341 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:333 } Remote { AS:200 IPv4:10.3.3. 3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.6.6. 6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 14:51:04, localpref 100, from 10.2.2.2 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:00, localpref 100, from 10.5.5.5 AS path: 65300 I, validation-state: unverified > to 192.168.3.2 via ge-0/0/2.0 to 192.168.21.2 via ge-0/0/2.1 to 192.168.5.2 via ge-0/0/4.0 [BGP/170] 5d 14:51:38, localpref 100 AS path: 65100 65300 I, validation-state: unverified > to 192.168.1.1 via ge-0/0/0.0
R1について
user@R1>show route advertising-protocol bgp 10.2.2.2 lsdist.0: 23 destinations, 40 routes (23 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 * Self 100 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR1 Label: 7101, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.1 100 65100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR4 Label: 7104, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * Self 100 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR0 Label: 8110, Flags: 0xd0, Weight: 0
意味
-
出力では、BGPはルーティングテーブルでルートをアドバタイズします。
show route table lsdist.0
ルーティング・テーブルは TE データベースから作成されます。エクスプレスセグメント()リンクとEPEリンク()が表示されます。EXPRESS-SEG/6BGP-LS-EPE:0 }/1216 -
出力では、R1が何をアドバタイズしているかを確認できます。
show route advertising-protocol bgp 10.2.2.2
エクスプレス・セグメントは TE データベースに挿入され、RIB にコピーされます。BGP-LS は RIB をピア ルーターにアドバタイズします。ピアでは、受信した RIB 情報がローカル データベースにコピーされます。この例のポリシーは、エクスプレスセグメントとEPEセグメントのみをアドバタイズします。
TE トポロジー情報の検証
目的
イングレス ノードが eBGP/iBGP LS を介して TE トポロジー情報を受信することを確認します。
アクション
動作モードから、次のコマンドを実行します。
-
show route receive-protocol bgp neighbor
- エクスプレスセグメントがeBGP/iBGP LSネイバーから受信されていることを確認します。 -
show route table lsdist.0
- エクスプレスセグメントがBGP-LS RIB内にあることを確認します。 -
show ted database topology-type l3-unicast detail
- エクスプレス セグメントがイングレス ルーターの TE データベースにインポートされていることを確認します。 -
show spring-traffic-engineering lsp
- エンドツーエンドのSRポリシーが正常に計算され、インストールされていることを確認します。
R0について
user@R0>show route receive-protocol bgp 10.9.148.59 … inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) iso.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) mpls.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) lsdist.0: 32 destinations, 61 routes (32 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 * 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Area border router: No External router: No Attached: No Overload: No Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483649 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 * 192.168.1.2 65200 I Metric: 20 TE Metric: 20 Link name: set1sr-10.3.3.3 Label: 16, Flags: 0x60, Weight: 1 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:342 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR7 Label: 7137, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 * 192.168.1.2 65200 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR0 Label: 8140, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:341 } Remote { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR7 Label: 7167, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR3 Label: 8173, Flags: 0xd0, Weight: 0 Prefix Nexthop MED Lclpref AS path LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 192.168.1.2 65200 65300 I Color: 33 Metric: 10 TE Metric: 20 Link name: epe_adj1_toR6 Label: 8176, Flags: 0xd0, Weight: 0 lsdist.1: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) inetcolor.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
R0について
user@R0>show route table lsdist.0 lsdist.0: 32 destinations, 61 routes (32 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both NODE { AS:65100 ISO:0100.0a0a.0a0a.00 ISIS-L2:0 }/1216 *[IS-IS/18] 5d 18:02:43 Fictitious NODE { AS:65200 IPv4:10.1.1.1 STATIC:0 }/1216 *[BGP/170] 5d 16:22:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:22:49, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.3.3.3 STATIC:0 }/1216 *[BGP/170] 5d 16:22:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:22:49, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv10:4.4.4.4 STATIC:0 }/1216 *[BGP/170] 5d 17:35:34, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.6.6.6 STATIC:0 }/1216 *[BGP/170] 5d 17:35:34, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:26:54, localpref 100, from 7.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65100 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 16:23:39 Fictitious NODE { AS:65100 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 17:39:46 Fictitious NODE { AS:65100 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 18:02:07 Fictitious NODE { AS:65200 IPv4:10.1.1.1 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.4.4.4 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65200 IPv4:10.100.100.100 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:03, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:02, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) NODE { AS:65300 IPv4:10.3.3.3 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.6.6.6 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 NODE { AS:65300 IPv4:10.7.7.7 BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :3.3.3.3 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:22:57, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :10.1.1.1 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:22:49, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv4:10.4.4.4 }.{ IfIndex:2147483649 } Remote { AS:65200 IPv4 :10.6.6.6 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:27:54, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:2147483649 } Remote { AS:200 IPv4 :10.4.4.4 }.{ IfIndex:0 } STATIC:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:333 } Remote { AS:65200 IPv 4:10.1.1.1 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 16:23:39 Fictitious LINK { Local { AS:65100 IPv4:10.100.100.100 }.{ IfIndex:336 } Remote { AS:65200 IPv 4:10.4.4.4 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP-LS-EPE/170] 5d 17:39:46 Fictitious LINK { Local { AS:65200 IPv4:10.1.1.1 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100 0.10.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv4:10.3.3.3 }.{ IfIndex:342 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1192.168.2.2 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv10:10.4.4.4 }.{ IfIndex:333 } Remote { AS:65100 IPv4:10.100 0.100.100 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65200 IPv4:10.6.6.6 }.{ IfIndex:341 } Remote { AS:65300 IPv4:10.7.7. 7 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 65200 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:333 } Remote { AS:65200 IPv4:10.3.3. 3 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:56, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 LINK { Local { AS:65300 IPv4:10.7.7.7 }.{ IfIndex:336 } Remote { AS:65200 IPv4:10.6.6. 6 }.{ IfIndex:0 } BGP-LS-EPE:0 }/1216 *[BGP/170] 5d 16:26:54, localpref 100, from 10.7.7.71 AS path: 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0, Push 7137, Push 16(top) to 192.168.12.1192.168.2.2 via ge-0/0/2.0, Push 7167, Push 17(top) [BGP/170] 5d 16:23:04, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.1.2 via ge-0/0/0.0 [BGP/170] 5d 16:26:58, localpref 100 AS path: 65200 65300 I, validation-state: unverified > to 192.168.12.1 via ge-0/0/2.0 PREFIX { Node { AS:65100 ISO:0100.0a0a.0a0a.00 } { IPv4:10.100.100.100/32 } ISIS- L2:0 }/1216 *[IS-IS/18] 5d 18:02:43 Fictitious PREFIX { Node { AS:65100 ISO:0100.0a0a.0a0a.00 } { IPv4:10.100.100.101/32 } ISIS- L2:0 }/1216 *[IS-IS/18] 5d 18:02:43 Fictitious P
R0について
user@R0>show ted database topology-type l3-unicast detail TED database: 1 ISIS nodes 6 INET nodes 0 INET6 nodes NodeID: R0.00(10.100.100.100) Type: Rtr, Age: 356 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) Protocol: BGP-LS-EPE(0) To: 10.4.4.4, Local: 192.168.2.1, Remote: 192.168.1.2 Local interface index: 336, Remote interface index: 0 Link name: epe_adj1_toR4 Local bgp peer as: 65100, Remote bgp peer as: 65200 To: 10.1.1.1, Local: 192.168.1.1, Remote: 192.168.1.2 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR1 Local bgp peer as: 65100, Remote bgp peer as: 65200 Protocol: IS-IS(2) 10.100.100.100, 10.100.100.101 NodeID: 10.1.1.1 Type: Rtr, Age: 491222 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: R0.00(10.100.100.100), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(2) To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set1sr-10.3.3.3 Protocol: BGP-LS-EPE(0) NodeID: 10.3.3.3 Type: Rtr, Age: 491420 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 342, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(6) Protocol: Exported STATIC(2) To: 10.1.1.1, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set3sr-10.1.1.1 NodeID: 10.4.4.4 Type: Rtr, Age: 495789 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: R0.00(10.100.100.100), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR0 Protocol: Exported STATIC(2) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set4sr-10.6.6.6 Protocol: BGP-LS-EPE(0) NodeID: 10.6.6.6 Type: Rtr, Age: 495537 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) To: 10.7.7.7, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 341, Remote interface index: 0 Link name: epe_adj1_toR7 Protocol: Exported BGP(6) Protocol: Exported STATIC(2) To: 10.4.4.4, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147483649, Remote interface index: 0 Link name: set6sr-10.4.4.4 NodeID: 10.7.7.7 Type: Rtr, Age: 491421 secs, LinkIn: 2, LinkOut: 2 Protocol: Exported BGP(4) Protocol: Exported BGP(6) To: 10.6.6.6, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 336, Remote interface index: 0 Link name: epe_adj1_toR6 To: 10.3.3.3, Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 333, Remote interface index: 0 Link name: epe_adj1_toR3
R0について
user@R0>show spring-traffic-engineering lsp To State LSPname 10.7.7.7 Up computelsp1 10.7.7.7-7000<c> Up ecomputelsp1 Total displayed LSPs: 2 (Up: 2, Down: 0)
R0について
user@R0>show spring-traffic-engineering lsp detail Name: computelsp1 Tunnel-source: Static configuration To: 10.7.7.7 State: Up Path: p1 Path Status: NA Outgoing interface: NA Auto-translate status: Disabled Auto-translate result: N/A Compute Status:Enabled , Compute Result:success , Compute-Profile Name:compute1 Total number of computed paths: 2 Computed-path-index: 1 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7101 source router-id: 10.100.100.100, destination router-id: 10.1.1.1 source interface-address: 192.168.1.1, destination interface-address: 192.168.1.2 computed segment : 2 (computed-adjacency-segment): label: 16 source router-id: 10.1.1.1, destination router-id: 10.3.3.3 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7137 source router-id: 10.3.3.3, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Computed-path-index: 2 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7104 source router-id: 10.100.100.100, destination router-id: 10.4.4.4 source interface-address: 192.168.2.1, destination interface-address: 192.168.12.1 computed segment : 2 (computed-adjacency-segment): label: 17 source router-id: 10.4.4.4, destination router-id: 10.6.6.6 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7167 source router-id: 10.6.6.6, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Name: ecomputelsp1 Tunnel-source: Static configuration To: 10.7.7.7-7000<c> State: Up Path: p1 Path Status: NA Outgoing interface: NA Auto-translate status: Disabled Auto-translate result: N/A Compute Status:Enabled , Compute Result:success , Compute-Profile Name:ecompute1 Total number of computed paths: 2 Computed-path-index: 1 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7101 source router-id: 10.100.100.100, destination router-id: 10.1.1.1 source interface-address: 192.168.1.1, destination interface-address: 192.168.1.2 computed segment : 2 (computed-adjacency-segment): label: 16 source router-id: 10.1.1.1, destination router-id: 10.3.3.3 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7137 source router-id: 10.3.3.3, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Computed-path-index: 2 BFD status: N/A BFD name: N/A TE metric: 60, IGP metric: 40; Metric optimized by type: TE computed segments count: 3 computed segment : 1 (computed-adjacency-segment): label: 7104 source router-id: 10.100.100.100, destination router-id: 10.4.4.4 source interface-address: 192.168.2.1, destination interface-address: 192.168.12.1 computed segment : 2 (computed-adjacency-segment): label: 17 source router-id: 10.4.4.4, destination router-id: 10.6.6.6 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 computed segment : 3 (computed-adjacency-segment): label: 7167 source router-id: 10.6.6.6, destination router-id: 10.7.7.7 source interface-address: 0.0.0.0, destination interface-address: 0.0.0.0 Total displayed LSPs: 2 (Up: 2, Down: 0)
意味
-
出力では 、イングレスルーター(R0)がBGPネイバーから受信したルートを示しており、これはエクスプレスセグメント(仮想TEリンク)を表しています。
show route receive-protocol bgp 192.168.1.2
-
出力には、イングレスルーター(R0)が受信したルートと、それらがRIBに挿入されたかどうかが表示されます。
show route table lsdist.0
lsdist.0 また、 RIB がローカル TE データベースにコピーされているかどうかも表示されます。lsdist.0 -
出力では、ルートがローカル TE データベースにコピーされます。
show ted database topology-type l3-unicast detail
は 、終点 が3.3.3.3 のエクスプレスセグメントで、R1で 正常に 作成されます。set1sr-10.3.3.3 R1 はエクスプレス セグメントをアドバタイズし、R0 はそれをローカル TE データベースに挿入しました。EPEセグメント()も確認できます。epe_adj1_toR7 -
出力では、SR ポリシーが稼働していることがわかります。
show spring-traffic-engineering lsp
これは、マルチドメインのエンドツーエンド(R0からR7)SRポリシーを計算できるようになったことを示しています。 -
出力では、選択されたラベルを確認できます。
show spring-traffic-engineering lsp detail
LSP では、ラベルは EPE セグメントであり、エクスプレスセグメントであり、 EPE セグメントでもあります。computelsp17101167137 これは、マルチドメインのエンドツーエンド(R0からR7)SRポリシーを計算できるようになったことを示しています。