例:IS-ISトラフィック制御サポートの有効化
この例では、IS-IS を設定して、ラベルスイッチ パスをショートカットとして使用する方法を示します。
要件
この例を設定する前に、デバイス初期化以外の特別な設定は必要ありません。
概要
MPLSトラフィックエンジニアリングは、特定のデータフローを、内部ゲートウェイプロトコル(IGP)によって計算されたデータリンクではなく、確立されたラベルスイッチパス(LSP)にマッピングし、最適な(最短)パスの一部となります。この機能の基本は、LSP にマッピングするトラフィックの決定です。トラフィックは、特定の宛先プレフィックスのネクストホップルーターとしてエグレスLSRを指定することで、トンネルのイングレスラベルスイッチングルーター(LSR)のLSPにマッピングされます。
LSPが宛先へのルート全体を構成するわけではないことを理解することが重要です。むしろ、LSPはルートのネクストホップセグメントです。そのため、ルート解決プロセス中にエグレスLSRが実行可能なネクストホップ候補と見なされる場合にのみ、パケットをLSPにマッピングすることができます。
図 1 は、この例で使用したトポロジーを示しています。
![IS-IS Shortcuts Topology](/documentation/us/en/software/junos/is-is/images/g041306.gif)
この例では、デバイスCは自律システム(AS)2のデバイスGとの外部BGP(EBGP)ピアセッションを持っています。デバイスCは、AS 2の内部BGP(IBGP)ピアがサブネットにアクセスできるように、デバイスGに接続するインターフェイスでIS-ISをパッシブに実行します。IS-ISは外部サブネットに関する情報を持ち、inet.0ルーティングテーブル内のこれらのサブネットへのルートを入力します。BGPは、AS外部ルートのネクストホップアドレスを解決する際に、IGPルートを使用します。
インターフェイス上でIS-ISをパッシブに実行する代わりに、ネクストホップセルフポリシーを使用します。
デバイスAには、デバイスCへのLSPがあります。パスは、デバイスBを経由するのではなく、常にデバイスEを経由するように設定されています。
トラフィックエンジニアリングのショートカットとも呼ばれる内部ゲートウェイプロトコル(IGP)ショートカットは、AS内のリンク状態IGP(OSPFまたはIS-IS)が最短パスファースト(SPF)計算でLSPを検討できるツールを提供します。パッシブ外部インターフェイスを使用している場合、IGPはLSPをLSPエグレスデバイスを越えた宛先に向かう単一のデータリンクと見なします。
(デフォルトである)とIGPのショートカットを使用 traffic-engineering bgp
する場合、トラフィック制御ソリューションはBGP AS外部ルート解決にのみ使用されます。ただし、AS内部の宛先へのトラフィックは、LSPにマッピングすることもできます。これを実現するには、 traffic-engineering bgp-igp
が有効になっています。そのため、RSVP は inet.3 テーブルではなく inet.0 テーブルに MPLS プレフィックスをインストールします。その結果、MPLS LSP が転送テーブルにインストールされます。
このアプローチでは、サーバーファームなど、重いトラフィックがAS内の特定の宛先にルーティングされるたびに、実用的なアプリケーションを見つけることができます。
単独で使用する場合でも、トラフィックエンジニアリング BGP-IGP と組み合わせて使用する場合でも、IGP のショートカットに関する重要なポイントは、LSP 間で IGP の隣接関係が形成されることはありません。IGPはLSPを単一のデータリンクと見なしますが、エグレスルーターを潜在的なピアとして表示せず、LSPにhelloメッセージを転送しません。また、RSVPメッセージがLSP上で転送されることはないため、LSPが誤って別のLSP内に構築される可能性を防ぎます。
CLI クイック設定 は、 図 1 にすべてのデバイスの設定を示しています。セクション #configuration424__isisショートカット-順 を追って、デバイス A の手順について説明します。
構成
手順
CLI クイックコンフィギュレーション
この例を迅速に設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に合わせて必要な詳細を変更してから、 階層レベルの CLI にコマンドを [edit]
コピー アンド ペーストします。
デバイスA
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.1/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/0 unit 0 family mpls set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.5/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.1/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0001.00 set protocols rsvp interface lo0.0 set protocols rsvp interface fe-1/2/0.0 set protocols rsvp interface fe-1/2/1.0 set protocols mpls traffic-engineering bgp-igp set protocols mpls label-switched-path test_path to 192.168.0.3 set protocols mpls label-switched-path test_path no-cspf set protocols mpls label-switched-path test_path primary through_E set protocols mpls path through_E 192.168.0.5 strict set protocols mpls interface fe-1/2/0.0 set protocols mpls interface fe-1/2/1.0 set protocols bgp group int type internal set protocols bgp group int local-address 192.168.0.1 set protocols bgp group int neighbor 192.168.0.5 set protocols bgp group int neighbor 192.168.0.6 set protocols bgp group int neighbor 192.168.0.2 set protocols bgp group int neighbor 192.168.0.3 set protocols isis traffic-engineering family inet shortcuts set protocols isis interface fe-1/2/0.0 level 1 disable set protocols isis interface fe-1/2/1.0 level 1 disable set protocols isis interface lo0.0 set routing-options router-id 192.168.0.1 set routing-options autonomous-system 1
デバイスB
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.6/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/0 unit 0 family mpls set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.9/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.2/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0002.00 set protocols rsvp interface fe-1/2/0.0 set protocols rsvp interface fe-1/2/1.0 set protocols rsvp interface lo0.0 set protocols mpls interface fe-1/2/1.0 set protocols mpls interface fe-1/2/0.0 set protocols bgp group int type internal set protocols bgp group int local-address 192.168.0.2 set protocols bgp group int neighbor 192.168.0.6 set protocols bgp group int neighbor 192.168.0.5 set protocols bgp group int neighbor 192.168.0.1 set protocols bgp group int neighbor 192.168.0.3 set protocols isis interface fe-1/2/0.0 level 1 disable set protocols isis interface fe-1/2/1.0 level 1 disable set protocols isis interface lo0.0 set routing-options router-id 192.168.0.2 set routing-options autonomous-system 1
デバイスC
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.10/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/0 unit 0 family mpls set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.13/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/2 unit 0 family inet address 10.0.0.25/30 set interfaces fe-1/2/2 unit 0 family iso set interfaces fe-1/2/3 unit 0 family inet address 10.0.0.29/30 set interfaces fe-1/2/3 unit 0 family iso set interfaces fe-1/2/3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.3/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0003.00 set protocols rsvp interface fe-1/2/0.0 set protocols rsvp interface lo0.0 set protocols rsvp interface fe-1/2/3.0 set protocols mpls interface fe-1/2/0.0 set protocols mpls interface fe-1/2/3.0 set protocols bgp group int type internal set protocols bgp group int local-address 192.168.0.3 set protocols bgp group int neighbor 192.168.0.6 set protocols bgp group int neighbor 192.168.0.5 set protocols bgp group int neighbor 192.168.0.1 set protocols bgp group int neighbor 192.168.0.2 set protocols bgp group external-peers type external set protocols bgp group external-peers export send-some-isis set protocols bgp group external-peers peer-as 2 set protocols bgp group external-peers neighbor 10.0.0.26 set protocols isis interface fe-1/2/0.0 level 1 disable set protocols isis interface fe-1/2/1.0 level 1 disable set protocols isis interface fe-1/2/2.0 level 1 disable set protocols isis interface fe-1/2/2.0 level 2 passive set protocols isis interface fe-1/2/3.0 level 1 disable set protocols isis interface lo0.0 set policy-options policy-statement send-some-isis term 1 from protocol isis set policy-options policy-statement send-some-isis term 1 from route-filter 10.0.0.0/24 orlonger set policy-options policy-statement send-some-isis term 1 from route-filter 192.168.0.0/24 orlonger set policy-options policy-statement send-some-isis term 1 then accept set routing-options router-id 192.168.0.3 set routing-options autonomous-system 1
デバイスD
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.14/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.0.4/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0004.00 set protocols isis interface fe-1/2/0.0 level 1 disable set protocols isis interface fe-1/2/1.0 level 1 disable set protocols isis interface lo0.0 set routing-options router-id 192.168.0.4 set routing-options autonomous-system 1
デバイスE
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.2/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/0 unit 0 family mpls set interfaces fe-1/2/1 unit 0 family inet address 10.0.0.17/30 set interfaces fe-1/2/1 unit 0 family iso set interfaces fe-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.5/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0005.00 set protocols rsvp interface lo0.0 set protocols rsvp interface fe-1/2/0.0 set protocols rsvp interface fe-1/2/1.0 set protocols mpls interface fe-1/2/0.0 set protocols mpls interface fe-1/2/1.0 set protocols bgp group int type internal set protocols bgp group int local-address 192.168.0.5 set protocols bgp group int neighbor 192.168.0.1 set protocols bgp group int neighbor 192.168.0.6 set protocols bgp group int neighbor 192.168.0.2 set protocols bgp group int neighbor 192.168.0.3 set protocols isis interface fe-1/2/0.0 level 1 disable set protocols isis interface fe-1/2/1.0 level 1 disable set protocols isis interface lo0.0 set routing-options router-id 192.168.0.5 set routing-options autonomous-system 1
デバイスF
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.18/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces fe-1/2/0 unit 0 family mpls set interfaces fe-1/2/2 unit 0 family inet address 10.0.0.30/30 set interfaces fe-1/2/2 unit 0 family iso set interfaces fe-1/2/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.6/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0006.00 set protocols rsvp interface lo0.0 set protocols rsvp interface fe-1/2/0.0 set protocols rsvp interface fe-1/2/1.0 set protocols rsvp interface fe-1/2/2.0 set protocols mpls interface fe-1/2/0.0 set protocols mpls interface fe-1/2/1.0 set protocols mpls interface fe-1/2/2.0 set protocols bgp group int type internal set protocols bgp group int local-address 192.168.0.6 set protocols bgp group int neighbor 192.168.0.1 set protocols bgp group int neighbor 192.168.0.5 set protocols bgp group int neighbor 192.168.0.2 set protocols bgp group int neighbor 192.168.0.3 set protocols isis interface fe-1/2/0.0 level 1 disable set protocols isis interface fe-1/2/1.0 level 1 disable set protocols isis interface fe-1/2/2.0 level 1 disable set protocols isis interface lo0.0 set routing-options router-id 192.168.0.6 set routing-options autonomous-system 1
デバイス G
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.26/30 set interfaces lo0 unit 0 family inet address 192.168.0.7/32 primary set interfaces lo0 unit 0family inet address 10.2.1.1/32 set interfaces lo0 unit 0family inet address 10.3.1.1/32 set protocols bgp group external-peers type external set protocols bgp group external-peers export statics set protocols bgp group external-peers export send-directs set protocols bgp group external-peers peer-as 1 set protocols bgp group external-peers neighbor 10.0.0.25 set policy-options policy-statement statics from protocol static set policy-options policy-statement statics then accept set policy-options policy-statement send-directs term 1 from protocol direct set policy-options policy-statement send-directs term 1 then accept set routing-options static route 10.2.0.0/32 reject set routing-options static route 10.2.0.0/32 install set routing-options static route 10.3.0.0/32 reject set routing-options static route 10.3.0.0/32 install set routing-options router-id 192.168.0.7 set routing-options autonomous-system 2
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、 CLIユーザーガイドの設定モードでのCLIエディターの使用を参照してください。
IS-ISトラフィックエンジニアリングのショートカットを設定するには:
インターフェイスを設定します。
[edit interfaces] user@A# set fe-1/2/0 unit 0 family inet address 10.0.0.1/30 user@A# set fe-1/2/0 unit 0 family iso user@A# set fe-1/2/0 unit 0 family mpls user@A# set fe-1/2/1 unit 0 family inet address 10.0.0.5/30 user@A# set fe-1/2/1 unit 0 family iso user@A# set fe-1/2/1 unit 0 family mpls user@A# set lo0 unit 0 family inet address 192.168.0.1/32 user@A# set lo0 unit 0 family iso address 49.0002.0192.0168.0001.00
インターフェイスでシグナリング プロトコルを有効にします。
[edit protocols rsvp] user@A# set interface lo0.0 user@A# set interface fe-1/2/0.0 user@A# set interface fe-1/2/1.0
インターフェイスでMPLSを有効にします。
[edit protocols mpls] user@A# set interface fe-1/2/0.0 user@A# set interface fe-1/2/1.0
ラベルスイッチ パスを設定します。
test_pathという名前の単一のLSPが、デバイスAからデバイスCに設定されています。LSP の明示的ルート オブジェクト(ERO)は、デバイス E を通るストリクト ホップを使用するように指定されているため、LSP は A-B-C の OSPF 最短パスとは異なるパスを取得します。LSP は RSVP を使用してシグナリングされますが、CSPF は実行されていません。
[edit protocols mpls] user@A# set label-switched-path test_path to 192.168.0.3 user@A# set label-switched-path test_path no-cspf user@A# set label-switched-path test_path primary through_E user@A# set path through_E 192.168.0.5 strict
BGPとIGPの両方の宛先のトラフィック制御を設定します。
IGP ショートカットも有効になっている場合、IGP はその計算で LSP を使用できます。計算の結果をinet.0テーブルに入力します。
[edit protocols mpls] user@A# set traffic-engineering bgp-igp
デバイス間の内部BGP(IBGP)ピアリングを設定します。
[edit protocols bgp group int] user@A# set type internal user@A# set local-address 192.168.0.1 user@A# set neighbor 192.168.0.5 user@A# set neighbor 192.168.0.6 user@A# set neighbor 192.168.0.2 user@A# set neighbor 192.168.0.3
インターフェイスでIS-ISを有効にし、リンクメトリックを設定します。
[edit protocols isis] user@A# set interface fe-1/2/0.0 level 1 disable user@A# set interface fe-1/2/1.0 level 1 disable user@A# set interface lo0.0
IPv4アドレスファミリーのネクストホップとしてMPLS LSPを使用するようにIS-ISを設定します。
これは、ルーターが最短パスファースト(SPF)計算を実行しているため、イングレスルーターでIGPショートカットを有効にする必要があります。
IGPのショートカットがプロトコルとルーティングテーブルの関係にどのように影響するかを理解することが重要です。IGP は LSP エグレス ポイントのダウンストリームのサブネットに SPF 計算を実行しますが、これらの計算の結果は inet.3 テーブルにのみ入力されます。同時に、IGP は従来の SPF 計算を実行し、これらの計算の結果を inet.0 テーブルに入力します。その結果、IGP は inet.3 テーブルへのエントリーを作成していますが、ルート解決を目的として、そのテーブルを可視化する唯一のプロトコルは依然として BGP です。そのため、AS内部宛先への転送は依然としてinet.0 IGPルートを使用し、LSPはBGPネクストホップ解決にのみ使用されます。LSP を IGP ネクストホップ解決に使用する場合は、 を設定
traffic-engineering bgp-igp
する必要があります。[edit protocols isis] user@A# set traffic-engineering family inet shortcuts
ルーターIDと自律システム(AS)番号を設定します。
[edit routing-options] user@A# set router-id 192.168.0.1 user@A# set autonomous-system 1
結果
設定モードから、 、 、 show protocols
コマンドを入力して設定をshow interfaces
show routing-options
確認します。出力結果に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@A# show interfaces
fe-1/2/0 {
unit 0{
family inet {
address 10.0.0.1/30;
}
family iso;
family mpls;
}
}
fe-1/2/1{
unit 0
family inet {
address 10.0.0.5/30;
}
family iso;
family mpls;
}
}
lo0 {
unit 0{
family inet {
address 192.168.0.1/32;
}
family iso {
address 49.0002.0192.0168.0001.00;
}
}
}
user@A# show protocols
rsvp {
interface lo0.0;
interface fe-1/2/0.0;
interface fe-1/2/1.0;
}
mpls {
traffic-engineering bgp-igp;
label-switched-path test_path {
to 192.168.0.3;
no-cspf;
primary through_E;
}
path through_E {
192.168.0.5 strict;
}
interface fe-1/2/0.0;
interface fe-1/2/1.0;
}
bgp {
group int {
type internal;
local-address 192.168.0.1;
neighbor 192.168.0.5;
neighbor 192.168.0.6;
neighbor 192.168.0.2;
neighbor 192.168.0.3;
}
}
isis {
traffic-engineering {
family inet {
shortcuts;
}
}
interface fe-1/2/0.0 {
level 1 disable;
}
interface fe-1/2/1.0 {
level 1 disable;
}
interface lo0.0;
}
user@A# show routing-options
router-id 192.168.0.1;
autonomous-system 1;
デバイスの設定が完了したら、設定モードから コミット を入力します。
検証
設定が正しく機能していることを確認します。
ネクストホップの検証
目的
MPLS LSPが予想されるルートのネクストホップとして使用されていることを確認します。
アクション
動作モードから、 コマンドを show route
入力します。
user@A> show route inet.0: 21 destinations, 21 routes (21 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.0.0.0/30 *[Direct/0] 4d 09:07:26 > via fe-1/2/0.0 10.0.0.1/32 *[Local/0] 4d 09:07:26 Local via fe-1/2/0.0 10.0.0.4/30 *[Direct/0] 4d 09:07:28 > via fe-1/2/1.0 10.0.0.5/32 *[Local/0] 4d 09:07:28 Local via fe-1/2/1.0 10.0.0.8/30 *[IS-IS/18] 01:42:24, metric 20 > to 10.0.0.6 via fe-1/2/1.0 10.0.0.12/30 *[IS-IS/18] 01:42:24, metric 30 > to 10.0.0.6 via fe-1/2/1.0 10.0.0.16/30 *[IS-IS/18] 01:42:24, metric 20 > to 10.0.0.2 via fe-1/2/0.0 10.0.0.20/30 *[IS-IS/18] 01:42:24, metric 30 > to 10.0.0.2 via fe-1/2/0.0 10.0.0.24/30 *[IS-IS/18] 01:42:24, metric 30 > to 10.0.0.6 via fe-1/2/1.0 10.0.0.28/30 *[IS-IS/18] 01:42:24, metric 30 to 10.0.0.6 via fe-1/2/1.0 > to 10.0.0.2 via fe-1/2/0.0 10.2.0.0/32 *[BGP/170] 02:22:30, localpref 100, from 192.168.0.3 AS path: 2 I, validation-state: unverified > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 10.2.1.1/32 *[BGP/170] 02:20:23, localpref 100, from 192.168.0.3 AS path: 2 I, validation-state: unverified > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 10.3.0.0/32 *[BGP/170] 02:22:30, localpref 100, from 192.168.0.3 AS path: 2 I, validation-state: unverified > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 10.3.1.1/32 *[BGP/170] 02:20:23, localpref 100, from 192.168.0.3 AS path: 2 I, validation-state: unverified > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 192.168.0.1/32 *[Direct/0] 4d 09:08:47 > via lo0.0 192.168.0.2/32 *[IS-IS/18] 01:42:24, metric 10 > to 10.0.0.6 via fe-1/2/1.0 192.168.0.3/32 *[IS-IS/18] 01:42:24, metric 20 > to 10.0.0.6 via fe-1/2/1.0 192.168.0.4/32 *[IS-IS/18] 01:42:24, metric 30 > to 10.0.0.6 via fe-1/2/1.0 to 10.0.0.2 via fe-1/2/0.0 192.168.0.5/32 *[IS-IS/18] 01:42:24, metric 10 > to 10.0.0.2 via fe-1/2/0.0 192.168.0.6/32 *[IS-IS/18] 01:42:24, metric 20 > to 10.0.0.2 via fe-1/2/0.0 192.168.0.7/32 *[BGP/170] 02:20:23, localpref 100, from 192.168.0.3 AS path: 2 I, validation-state: unverified > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path inet.3: 5 destinations, 6 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.0.0.12/30 *[IS-IS/18] 01:41:21, metric 30 > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 10.0.0.24/30 *[IS-IS/18] 01:41:21, metric 30 > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 10.0.0.28/30 *[IS-IS/18] 01:41:21, metric 30 > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 192.168.0.3/32 *[RSVP/7/1] 01:41:21, metric 20 > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path [IS-IS/18] 01:41:21, metric 20 > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path 192.168.0.4/32 *[IS-IS/18] 01:41:21, metric 30 > to 10.0.0.2 via fe-1/2/0.0, label-switched-path test_path iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 49.0002.0192.0168.0001/72 *[Direct/0] 4d 09:08:47 > via lo0.0 mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 0 *[MPLS/0] 4d 09:10:00, metric 1 Receive 1 *[MPLS/0] 4d 09:10:00, metric 1 Receive 2 *[MPLS/0] 4d 09:10:00, metric 1 Receive 13 *[MPLS/0] 4d 09:10:00, metric 1 Receive
意味
IS-IS は、LSP エグレス デバイスの宛先ダウンストリームへの最短パスとして LSP を選択します。さらに、IGP は LSP を使用して外部サブネット 10.0.0.24/30 に到達するため、BGP は 10.2.0.0 および 10.3.0.0 へのルートで LSP を使用します。
デバイス C でネクストホップ self が使用された場合、BGP は IGP パス上で LSP を選択します。
RSVP セッションの確認
目的
RSVP セッションに関する情報の表示
アクション
動作モードから、 コマンドを show rsvp session brief
入力します。
user@A> show rsvp session brief Ingress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 192.168.0.3 192.168.0.1 Up 0 1 FF - 299776 test_path Total 1 displayed, Up 1, Down 0 Egress RSVP: 0 sessions Total 0 displayed, Up 0, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
user@E> show rsvp session brief Ingress RSVP: 0 sessions Total 0 displayed, Up 0, Down 0 Egress RSVP: 0 sessions Total 0 displayed, Up 0, Down 0 Transit RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 192.168.0.3 192.168.0.1 Up 0 1 FF 299776 299808 test_path Total 1 displayed, Up 1, Down 0
user@F> show rsvp session brief Ingress RSVP: 0 sessions Total 0 displayed, Up 0, Down 0 Egress RSVP: 0 sessions Total 0 displayed, Up 0, Down 0 Transit RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 192.168.0.3 192.168.0.1 Up 0 1 FF 299808 3 test_path Total 1 displayed, Up 1, Down 0
user@C> show rsvp session brief Ingress RSVP: 0 sessions Total 0 displayed, Up 0, Down 0 Egress RSVP: 1 sessions To From State Rt Style Labelin Labelout LSPname 192.168.0.3 192.168.0.1 Up 0 1 FF 3 - test_path Total 1 displayed, Up 1, Down 0 Transit RSVP: 0 sessions Total 0 displayed, Up 0, Down 0
意味
4つのルーティングデバイスすべてで、LSPのイングレスおよびエグレスIPアドレスが表示されます。パスはデバイスAのイングレスパスとして表示され、LSPで転送されたパケットには299776のラベルが割り当てられます。デバイスEでは、LSPはトランジットであり、299776のラベルで到着したパケットには、299808の発信ラベルが与えられます。ラベルには、隣接する LSR(ラベルスイッチ ルーター)間でのみ意味があります。デバイスFは、受信ラベル299808を発信ラベル3に交換します。デバイスC(エグレス)は、ラベル3をポップし、標準的なIP最長一致ルートルックアップによって受信したパケットをルーティングします。
異なるトラフィック制御設定でパスを確認する
目的
いつ使用され、いつ traffic-engineering bgp-igp
(デフォルト)が使用されているか、IGPおよび traffic-engineering bgp
BGPルートに使用されるパスを確認します。
アクション
を設定します
traffic-engineering bgp
。これにより、各ルーティング インスタンスで MPLS トラフィック制御設定を 1 つだけ設定できるため、設定が削除
traffic-engineering bgp-igp
されます。[edit protocols mpls] user@A# set traffic-engineering bgp user@A# commit
コマンドを
show route forwarding-table
使用して、(デフォルト)が設定されている場合traffic-engineering bgp
にパスを確認します。user@A> show route forwarding-table destination 10.2.1.1 Routing table: default.inet Internet: Destination Type RtRef Next hop Type Index NhRef Netif 10.2.1.1/32 user 0 indr 262145 6 10.0.0.2 Push 299776 1013 2 fe-1/2/0.0
user@A> show route forwarding-table destination 192.168.0.3 Routing table: default.inet Internet: Destination Type RtRef Next hop Type Index NhRef Netif 192.168.0.3/32 user 1 10.0.0.6 ucst 938 11 fe-1/2/1.0
コマンドを
traceroute
使用して、(デフォルト)が設定されている場合traffic-engineering bgp
にパスを確認します。user@A> traceroute 10.2.1.1 traceroute to 10.2.1.1 (10.2.1.1), 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 11.086 ms 1.587 ms 1.603 ms MPLS Label=299776 CoS=0 TTL=1 S=1 2 10.0.0.18 (10.0.0.18) 1.455 ms 1.477 ms 1.442 ms MPLS Label=299808 CoS=0 TTL=1 S=1 3 10.0.0.29 (10.0.0.29) 2.240 ms 1.045 ms 1.243 ms 4 10.2.1.1 (10.2.1.1) 1.363 ms 1.389 ms 1.374 ms
user@A> traceroute 192.168.0.3 traceroute to 192.168.0.3 (192.168.0.3), 30 hops max, 40 byte packets 1 10.0.0.6 (10.0.0.6) 1.759 ms 1.872 ms 2.281 ms 2 bb03-cclab-lo0.spglab.juniper.net (192.168.0.3) 2.119 ms 2.157 ms 1.598 ms
を設定します
traffic-engineering bgp-igp
。これにより、各ルーティング インスタンスで MPLS トラフィック制御設定を 1 つだけ設定できるため、設定が削除
traffic-engineering bgp
されます。[edit protocols mpls] user@A# set traffic-engineering bgp-igp user@A# commit
コマンドを
show route forwarding-table
使用して、設定時にパスをtraffic-engineering bgp-igp
確認します。user@A> show route forwarding-table destination 10.2.1.1 Routing table: default.inet Internet: Destination Type RtRef Next hop Type Index NhRef Netif 10.2.1.1/32 user 0 indr 262145 6 10.0.0.2 Push 299776 1013 2 fe-1/2/0.0
user@A> show route forwarding-table destination 192.168.0.3 Routing table: default.inet Internet: Destination Type RtRef Next hop Type Index NhRef Netif 192.168.0.3/32 user 1 10.0.0.2 Push 299776 1013 8 fe-1/2/0.0
コマンドを
traceroute
使用して、設定時にパスをtraffic-engineering bgp-igp
確認します。user@A> traceroute 10.2.1.1 traceroute to 10.2.1.1 (10.2.1.1), 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 2.348 ms 1.475 ms 1.434 ms MPLS Label=299776 CoS=0 TTL=1 S=1 2 10.0.0.18 (10.0.0.18) 1.507 ms 2.307 ms 1.911 ms MPLS Label=299808 CoS=0 TTL=1 S=1 3 10.0.0.29 (10.0.0.29) 1.743 ms 1.645 ms 1.940 ms 4 10.2.1.1 (10.2.1.1) 2.041 ms 1.977 ms 2.233 ms
user@A> traceroute 192.168.0.3 traceroute to 192.168.0.3 (192.168.0.3), 30 hops max, 40 byte packets 1 10.0.0.2 (10.0.0.2) 1.721 ms 2.558 ms 2.229 ms MPLS Label=299776 CoS=0 TTL=1 S=1 2 10.0.0.18 (10.0.0.18) 2.505 ms 1.462 ms 1.408 ms MPLS Label=299808 CoS=0 TTL=1 S=1 3 bb03-cclab-lo0.spglab.juniper.net (192.168.0.3) 1.371 ms 1.422 ms 1.351 ms
意味
が設定されている場合 traffic-engineering bgp
、最初のトレースは BGP で学習した 10.2.0.0/16 プレフィックスに属する宛先に対し、LSP に従います。2 番目のトレースは、IS-IS で学習した 192.168.0.3 ルート(デバイス C のループバック インターフェイス アドレス)に対し、IS-IS ルートに従います。これらの結果は、転送テーブルで観察したものに対応しています。転送テーブルは、inet.0 のルートのみに基づいて構築されています。BGPはinet.3を調べて、BGPプレフィックスのネクストホップへの最適なパスとしてLSPを選択し、そのLSPを利用してinet.0にルートを追加できます。その後、inet.0 ルートから転送テーブルにエントリが作成されます。デフォルトでは、他のプロトコルは inet.3 を参照できません。また、inet.3 ルートは inet.0 に入力されません。そのため、192.168.0.3 の転送エントリーは、inet.0 の宛先への唯一のルート(IS-IS ルート)から作成されます。
が設定されている場合 traffic-engineering bgp-igp
、10.2.1.1 への最初のトレースは LSP に続きます。192.168.0.3 への 2 番目のトレースも LSP に続きます。これらの結果は、転送テーブルで観察したものに対応しており、LSPがIGPネクストホップ解決に使用されていることを示しています。