このページの目次
OSPF のループフリー代替ルートの設定
OSPFのプレフィックス単位のループフリー代替
特定のトポロジーや使用シナリオで、複数の宛先が同じプレフィックスを発信し、最良のプレフィックス発信元には有効な LFA がなく、非最適プレフィックス発信元には LFA がある場合などがあります。 プレフィックス単位の LFA は、LFA から最適なプレフィックス オリジネーターへの LFA の代わりに、非ベスト プレフィックス オリジネーターへの LFA を使用して、ローカル修復を提供する技術です。これは、OSPFプロトコルのローカル修復カバレッジを拡大するためにも使用できます。
プレフィックス単位のループフリーオルタネイト(LFA)—ループフリーオルタネイト(LFA)は、プライマリネクストホップ(ノードまたはリンク)に障害が発生した場合に、ネイバーをバックアップネクストホップとして使用して、トラフィックが一時的に流れるローカル修復パスを提供できるテクノロジーです。このための基本的な要件は、選択されたバックアップネイバーが、宛先に向かうプライマリネクストホップに関してループフリーパスを提供し、一連の内部ゲートウェイプロトコル(IGP)プレフィックスを送信することです。
次のトポロジーでは、プレフィックス単位の LFA 機能が適用される導入ケースについて説明します。

ABR1とABR2はエリア境界ルーター(ABR)であり、IPv6コアネットワークにデュアルホーム接続されており、メトリック10のプレフィックス10.0.1.0/24のサマリーLSAをアドバタイズします。また、PE ルーターの観点からは、ABR1 は 10.0.1.0/24 の最適なプレフィックス発信元です。この場合、等コストマルチパス(ECMP){P2、PE、P1、ABR1}および{P2、ABR2、ABR1}が原因で、一部のトラフィックがルーターPEを介してループバックされる(有効なLFAがない)ため、P2はABR1の有効なLFAではありません。ただし、10.0.1.0/24 のプレフィックス発信元でもある ABR2 では、パスが {P2, ABR2} のみであるため、P2 は有効な LFA です。
OSPF のプレフィックス単位の LFA の設定
プレフィックス単位の LFA は、LFA から最適なプレフィックス オリジネーターへの LFA の代わりに、非ベスト プレフィックス オリジネーターへの LFA を使用してローカル修復を提供できるメカニズムです。このような場合、プレフィックス単位の LFA を使用して、OSPF プロトコルのローカル修復カバレッジを拡大することができます。
ループフリーオルタネイト(LFA)とは、プライマリネクストホップ(ノードまたはリンク)に障害が発生した場合に、ネイバーをバックアップネクストホップとして使用して、トラフィックが一時的に流れるローカル修復パスを提供するメカニズムです。このための基本的な要件は、選択されたバックアップネイバーが、IGPプレフィックスのセットを発信する宛先に向けて、プライマリネクストホップに関してループフリーパスを提供することです。特定のトポロジーや使用シナリオでは、複数の宛先が同じプレフィックスを発信していて、最適なプレフィックス発信元には有効な LFA がなく、非最適プレフィックス発信元には実行可能な LFA がある可能性があります。プレフィックス単位の LFA は、LFA から最適なプレフィックス オリジネーターへの LFA の代わりに、非ベスト プレフィックス オリジネーターへの LFA を使用してローカル修復を提供できるメカニズムです。このような場合、プレフィックス単位の LFA を使用して、OSPF プロトコルのローカル修復カバレッジを拡大することができます。
OSPFインターフェイスのプレフィックスごとのLFAを設定するには、次の手順に従います。
[edit protocols (ospf | ospf3) backup-spf-options]
階層レベルで per-prefix-calculation
設定ステートメントを設定します。
OSPF のループフリー代替ルートの概要
OSPFループフリーの代替ルートのサポートは、基本的にOSPFのIP高速再ルート機能を追加します。Junos OSは、すべてのOSPFルートに対してループのないバックアップルートを事前に計算します。これらのバックアップルートは、パケット転送エンジンにプリインストールされており、特定のルートのプライマリネクストホップのリンクが利用できなくなった場合、ローカル修復を実行し、バックアップパスを実装します。ローカル修復により、パケット転送エンジンは、ルーティングエンジンから事前に計算されたパスを受信する前に、パス障害を修正することができます。ローカル修復により、トラフィックの再ルーティングに必要な時間が 50 ミリ秒未満に短縮されます。一方、グローバル修復では、新しいルートの計算に最大 800 ミリ秒かかる場合があります。ローカル修復では、グローバル修復が新しいルートを計算できるようになるまで、バックアップ パスを使用してトラフィックのルーティングを継続できます。
ループフリーパスとは、特定の宛先に到達するためにルーティングデバイスを介してトラフィックを転送しないパスです。つまり、宛先への最短パスが最初に、その宛先へのバックアップルートとして使用されていないルーティングデバイスを通過するネイバーです。OSPF ルートのループのない代替パスを決定するために、Junos OS は各 1 ホップ ネイバーに対して SPF(最短パス優先)計算を実行します。任意の OSPF インターフェイスで代替ループフリールートのサポートを有効にすることができます。OSPF がすでに有効になっているインターフェイスで LDP を有効化するのが一般的であるため、この機能は LDP ラベルスイッチ パス(LSP)もサポートします
LDP と OSPF の両方に設定されたインターフェイスで代替ループフリー ルートのサポートを有効にすると、 traceroute
コマンドを使用して、プライマリ ネクスト ホップまでのアクティブなパスをトレースできます。
OSPF ルートを通じて利用可能なバックアップ カバレッジのレベルは、実際のネットワーク トポロジーによって異なり、通常、特定のルーティング デバイスのすべての宛先で 100% 未満です。バックアップ カバレッジを拡張して、RSVP LSP パスを含めることができます。
Junos OSは、代替ループフリールートを介したOSPFのルート冗長性のために、3つのメカニズムを提供します。
リンク保護 - リンク単位のトラフィック保護を提供します。リンク保護は、1 つのリンクのみが利用できなくなる可能性があるが、プライマリ パス上の隣接ノードは引き続き別のインターフェイスを介して使用可能であると想定する場合に使用します。
ノードリンク保護 - まったく異なるルーティングデバイスを介して、代替パスを確立します。ノード・リンク保護は、リンクが使用不可になったときにノードへのアクセスが失われることを想定した場合に使用します。その結果、Junos OSは、プライマリネクストホップルーティングデバイスを回避するバックアップパスを計算します。
プレフィックス単位のループフリー代替(LFA)—プライマリ ネクストホップ(ノードまたはリンク)で障害が発生した場合に、ネイバーをバックアップ ネクストホップとして使用し、トラフィックが一時的に流れるローカル修復パスを提供する技術です。このための基本的な要件は、選択されたバックアップネイバーが、宛先に向かうプライマリネクストホップに関してループフリーのパスを提供し、一連の内部ゲートウェイプロトコル(IGP)プレフィックスを送信することです。
特定のトポロジーや使用シナリオでは、複数の宛先が同じプレフィックスを発信していて、最適なプレフィックス送信元への有効な LFA がなく、最適でないプレフィックス送信元には有効な LFA がある可能性があります。 プレフィックス単位の LFA は、LFA から最適なプレフィックス オリジネーターへの LFA の代わりに、非ベスト プレフィックス オリジネーターへの LFA を使用してローカル修復を提供できるメカニズムです。このような場合、プレフィックス単位の LFA を使用して、OSPF プロトコルのローカル修復カバレッジを拡大することができます。
OSPFインターフェイスでリンク保護またはノードリンク保護を有効にすると、Junos OSは、保護されたインターフェイスを通過するすべての宛先ルートのプライマリネクストホップへの代替パスを作成します。
例:OSPF のループフリー代替ルートの設定
この例では、OSPF が有効になっているインターフェイスでリンク保護を使用する方法を示します。
リンク保護を有効にすると、Junos OSは、保護されたインターフェイスを通過するすべての宛先ルートのプライマリネクストホップへの代替パスを作成します。リンク保護は、1 つのリンクのみが利用できなくなる可能性があるが、隣接ノードは別のインターフェイスを介して引き続き使用可能であると想定する場合に使用します。
必要条件
この例を設定する前に、デバイス初期化以外の特別な設定を行う必要はありません。
概要
この例では、6 つの OSPF ネイバーにリンク保護が設定されています。これにより、Junos OS は、各保護されたインターフェイスを通過するすべての宛先ルートのプライマリ ネクスト ホップへの代替パスを作成します。ここでリンク保護が使用されるのは、リンクが利用できなくなった場合でも、隣接ノードは別のインターフェイスを介して使用できるためです。
この例は、2 つのトポロジーを示しています。1 つは既定のトポロジで、もう 1 つは音声トポロジです。マルチポロジールーティングの詳細については、 マルチポロジールーティングユーザーガイドを参照してください。
この例には、保護された OSPF インターフェイスのバックアップ LSP として設定された RSVP LSP も含まれています。
位相幾何学
図 2 に、サンプル ネットワークを示します。

CLIクイック構成 は、 図2のすべてのデバイスの構成を示しています。
セクション #d148e65__d148e783 では、デバイス R1 の手順について説明します。
構成
CLIクイック構成
この例をすばやく設定するには、次のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、 [edit]
階層レベルのCLIにコマンドをコピーして貼り付けます。
デバイスR1
set interfaces so-0/2/2 unit 0 description to-R2 set interfaces so-0/2/2 unit 0 family inet address 192.168.242.1/30 set interfaces so-0/2/2 unit 0 family mpls set interfaces t1-0/1/2 unit 0 description to-R2 set interfaces t1-0/1/2 unit 0 family inet address 192.168.241.1/30 set interfaces t1-0/1/2 unit 0 family mpls set interfaces t1-0/1/0 unit 0 description to-R4 set interfaces t1-0/1/0 unit 0 family inet address 192.168.241.17/30 set interfaces t1-0/1/0 unit 0 family mpls set interfaces so-0/2/0 unit 0 description to-R4 set interfaces so-0/2/0 unit 0 family inet address 192.168.242.17/30 set interfaces so-0/2/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.164.1/32 primary set protocols rsvp interface all link-protection set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path path1 backup set protocols mpls label-switched-path path1 to 10.255.164.3 set protocols mpls label-switched-path path2 backup set protocols mpls label-switched-path path2 to 10.255.164.3 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf topology voice topology-id 32 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface so-0/2/0.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/2.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/2.0 metric 10 set protocols ospf area 0.0.0.0 interface t1-0/1/0.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/0.0 metric 10 set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 metric 10 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set policy-options policy-statement pplb then load-balance per-packet set routing-options forwarding-table export pplb set routing-options topologies family inet topology voice set routing-options forwarding-table indirect-next-hop-change-acknowledgements
デバイスR2
set interfaces so-0/2/2 unit 0 description to-R1 set interfaces so-0/2/2 unit 0 family inet address 192.168.242.2/30 set interfaces so-0/2/2 unit 0 family mpls set interfaces t1-0/1/2 unit 0 description to-R1 set interfaces t1-0/1/2 unit 0 family inet address 192.168.241.2/30 set interfaces t1-0/1/2 unit 0 family mpls set interfaces so-0/2/0 unit 0 description to-R5 set interfaces so-0/2/0 unit 0 family inet address 192.168.242.21/30 set interfaces so-0/2/0 unit 0 family mpls set interfaces so-0/2/1 unit 0 description to-R3 set interfaces so-0/2/1 unit 0 family inet address 192.168.242.5/30 set interfaces so-0/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.164.2/32 primary set protocols rsvp interface all link-protection set protocols rsvp interface fxp0.0 disable set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf topology voice topology-id 32 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface so-0/2/2.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/2.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/0.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/1.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/1.0 metric 10 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-options topologies family inet topology voice set routing-options forwarding-table indirect-next-hop-change-acknowledgements
デバイス R3
set interfaces t1-0/1/2 unit 0 description to-R6 set interfaces t1-0/1/2 unit 0 family inet address 192.168.241.25/30 set interfaces t1-0/1/2 unit 0 family mpls set interfaces so-0/2/1 unit 0 description to-R2 set interfaces so-0/2/1 unit 0 family inet address 192.168.242.6/30 set interfaces so-0/2/1 unit 0 family mpls set interfaces so-0/2/0 unit 0 description to-R6 set interfaces so-0/2/0 unit 0 family inet address 192.168.242.25/30 set interfaces so-0/2/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.164.3/32 primary set protocols rsvp interface all link-protection set protocols rsvp interface fxp0.0 disable set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf traceoptions file ospf set protocols ospf traceoptions file size 5m set protocols ospf traceoptions file world-readable set protocols ospf traceoptions flag error set protocols ospf topology voice topology-id 32 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface so-0/2/0.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/0.0 metric 5 set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/1.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/1.0 metric 10 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-options static route 11.3.1.0/24 discard set routing-options static route 11.3.2.0/24 discard set routing-options static route 11.3.3.0/24 discard set routing-options topologies family inet topology voice set routing-options forwarding-table indirect-next-hop-change-acknowledgements
デバイス R4
set interfaces t1-0/1/0 unit 0 description to-R1 set interfaces t1-0/1/0 unit 0 family inet address 192.168.241.18/30 set interfaces t1-0/1/0 unit 0 family mpls set interfaces so-0/2/0 unit 0 description to-R1 set interfaces so-0/2/0 unit 0 family inet address 192.168.242.18/30 set interfaces so-0/2/0 unit 0 family mpls set interfaces t1-0/1/2 unit 0 description to-R5 set interfaces t1-0/1/2 unit 0 family inet address 192.168.241.9/30 set interfaces t1-0/1/2 unit 0 family mpls set interfaces so-0/2/2 unit 0 description to-R5 set interfaces so-0/2/2 unit 0 family inet address 192.168.242.9/30 set interfaces so-0/2/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.164.4/32 primary set protocols rsvp interface all link-protection set protocols rsvp interface fxp0.0 disable set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf topology voice topology-id 32 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface t1-0/1/0.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/0.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/0.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/2.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/2.0 metric 10 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-options topologies family inet topology voice set routing-options forwarding-table indirect-next-hop-change-acknowledgements
デバイス R5
set interfaces t1-0/1/2 unit 0 description to-R4 set interfaces t1-0/1/2 unit 0 family inet address 192.168.241.10/30 set interfaces t1-0/1/2 unit 0 family mpls set interfaces s0-0/2/0 unit 0 description to-R2 set interfaces s0-0/2/0 unit 0 family inet address 192.168.242.22/30 set interfaces s0-0/2/0 unit 0 family mpls set interfaces so-0/2/2 unit 0 description to-R4 set interfaces so-0/2/2 unit 0 family inet address 192.168.242.10/30 set interfaces so-0/2/2 unit 0 family mpls set interfaces so-0/2/1 unit 0 description to-R6 set interfaces so-0/2/1 unit 0 family inet address 192.168.242.13/30 set interfaces so-0/2/1 unit 0 family mpls set interfaces t1-0/2/1 unit 0 description to-R6 set interfaces t1-0/2/1 unit 0 family inet address 192.168.241.13/30 set interfaces t1-0/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.164.5/32 primary set protocols rsvp interface all link-protection set protocols rsvp interface fxp0.0 disable set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf topology voice topology-id 32 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface so-0/2/1.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/1.0 metric 5 set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/2.0 metric 10 set protocols ospf area 0.0.0.0 interface s0-0/2/0.0 link-protection set protocols ospf area 0.0.0.0 interface s0-0/2/0.0 metric 10 set protocols ospf area 0.0.0.0 interface so-0/2/2.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/2.0 metric 10 set protocols ospf area 0.0.0.0 interface t1-0/2/1.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/2/1.0 metric 10 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-options topologies family inet topology voice set routing-options forwarding-table indirect-next-hop-change-acknowledgements
デバイス R6
set interfaces so-0/2/0 unit 0 description to-R5 set interfaces so-0/2/0 unit 0 family inet address 192.168.242.14/30 set interfaces so-0/2/0 unit 0 family mpls set interfaces t1-0/1/0 unit 0 description to-R5 set interfaces t1-0/1/0 unit 0 family inet address 192.168.241.14/30 set interfaces t1-0/1/0 unit 0 family mpls set interfaces t1-0/1/1 unit 0 description to-R3 set interfaces t1-0/1/1 unit 0 family inet address 192.168.241.26/30 set interfaces t1-0/1/1 unit 0 family mpls set interfaces so-0/2/1 unit 0 description to-R3 set interfaces so-0/2/1 unit 0 family inet address 192.168.242.26/30 set interfaces so-0/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.255.164.6/32 primary set protocols rsvp interface all link-protection set protocols rsvp interface fxp0.0 disable set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols ospf topology voice topology-id 32 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface so-0/2/1.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/1.0 metric 5 set protocols ospf area 0.0.0.0 interface so-0/2/0.0 link-protection set protocols ospf area 0.0.0.0 interface so-0/2/0.0 metric 5 set protocols ospf area 0.0.0.0 interface t1-0/1/0.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/0.0 metric 10 set protocols ospf area 0.0.0.0 interface t1-0/1/1.0 link-protection set protocols ospf area 0.0.0.0 interface t1-0/1/1.0 metric 10 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-options topologies family inet topology voice set routing-options forwarding-table indirect-next-hop-change-acknowledgements
プロシージャ
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLI のナビゲーションについては、 CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
Device R1を設定するには:
デバイスインターフェイスを設定します。
[edit interfaces] user@R1# set so-0/2/2 unit 0 description to-R2 user@R1# set so-0/2/2 unit 0 family inet address 192.168.242.1/30 user@R1# set so-0/2/2 unit 0 family mpls user@R1# set t1-0/1/2 unit 0 description to-R2 user@R1# set t1-0/1/2 unit 0 family inet address 192.168.241.1/30 user@R1# set t1-0/1/2 unit 0 family mpls user@R1# set t1-0/1/0 unit 0 description to-R4 user@R1# set t1-0/1/0 unit 0 family inet address 192.168.241.17/30 user@R1# set t1-0/1/0 unit 0 family mpls user@R1# set so-0/2/0 unit 0 description to-R4 user@R1# set so-0/2/0 unit 0 family inet address 192.168.242.17/30 user@R1# set so-0/2/0 unit 0 family mpls user@R1# set lo0 unit 0 family inet address 10.255.164.1/32 primary
RSVP LSPパスを含むようにバックアップカバレッジを拡張します。
[edit protocols rsvp] user@R1# set interface all link-protection user@R1# set interface fxp0.0 disable
インターフェイスで MPLS を有効にし、デバイス R3 にバックアップ LSP を設定します。
[edit protocols mpls] user@R1# set interface all user@R1# set interface fxp0.0 disable user@R1# set label-switched-path path1 backup user@R1# set label-switched-path path1 to 10.255.164.3 user@R1# set label-switched-path path2 backup user@R1# set label-switched-path path2 to 10.255.164.3
OSPF 接続、リンク メトリック、リンク保護を構成します。
[edit protocols ospf] user@R1# set traffic-engineering [edit protocols ospf area 0.0.0.0] user@R1# set interface fxp0.0 disable user@R1# set interface lo0.0 passive user@R1# set interface so-0/2/0.0 link-protection user@R1# set interface so-0/2/0.0 metric 10 user@R1# set interface so-0/2/2.0 link-protection user@R1# set interface so-0/2/2.0 metric 10 user@R1# set interface t1-0/1/0.0 link-protection user@R1# set interface t1-0/1/0.0 metric 10 user@R1# set interface t1-0/1/2.0 link-protection user@R1# set interface t1-0/1/2.0 metric 10
(オプション)音声トラフィック用に特定の OSPF トポロジーを設定します。
[edit protocols ospf] user@R1# set topology voice topology-id 32 [edit routing-options topologies family inet] user@R1# set topology voice
インターフェイスで LDP を有効にします。
[edit protocols ldp] user@R1# set interface all user@R1# set interface fxp0.0 disable
(オプション)パケット 単位のロード バランシングを設定する。
[edit policy-options policy-statement pplb] user@R1# set then load-balance per-packet [edit routing-options forwarding-table] user@R1# set export pplb
新しい転送ネクストホップを作成するときに確認応答を要求するようにルーティングプロトコルプロセス(rpd)を設定します。
保護メカニズムが使用されている場合は、
indirect-next-hop-change-acknowledgements
ステートメントを設定することをお勧めします。これには、高速リルート(FRR)やIGP(内部ゲートウェイプロトコル)、LFA(ループフリーの代替)リンクまたはノード保護などのMPLS RSVP保護が含まれます。[edit routing-options forwarding-table] user@R1# set indirect-next-hop-change-acknowledgements
業績
設定モードから、 show interfaces
、 show protocols
、 show policy-options
、および show routing-options
コマンドを入力して、設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R1# show interfaces so-0/2/2 { unit 0 { description to-R2; family inet { address 192.168.242.1/30; } family mpls; } } t1-0/1/2 { unit 0 { description to-R2; family inet { address 192.168.241.1/30; } family mpls; } } t1-0/1/0 { unit 05 { description to-R4; family inet { address 192.168.241.17/30; } family mpls; } } so-0/2/0 { unit 0 { description to-R4; family inet { address 192.168.242.17/30; } family mpls; } } lo0 { unit 0 { family inet { address 10.255.164.1/32 { primary; } } } }
user@R1# show protocols rsvp { interface all { link-protection; } interface fxp0.0 { disable; } } mpls { label-switched-path path1 { backup; to 10.255.164.3; } label-switched-path path2 { backup; to 10.255.164.3; } interface all; interface fxp0.0 { disable; } } ospf { topology voice topology-id 32; traffic-engineering; area 0.0.0.0 { interface fxp0.0 { disable; } interface lo0.0 { passive; } interface so-0/2/0.0 { link-protection; metric 10; } interface so-0/2/2.0 { link-protection; metric 10; } interface t1-0/1/0.0 { link-protection; metric 10; } interface t1-0/1/2.0 { link-protection; metric 10; } } } ldp { interface all; interface fxp0.0 { disable; } }
user@R1# show policy-options policy-statement pplb { then { load-balance per-packet; } }
user@R1# show routing-options forwarding-table { export pplb; indirect-next-hop-change-acknowledgements; } topologies { family inet { topology voice; } }
デバイスの設定が完了したら、設定モードから commit
を入力します。
検証
設定が正常に機能していることを確認します。
デバイスR1でルートを検証する
目的
デバイスR1で、ルーティングテーブル内のOSPFルートを確認します。
アクション
user@R1> show route protocol ospf inet.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.255.164.2/32 *[OSPF/10] 1d 23:34:00, metric 10 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 10.255.164.3/32 *[OSPF/10] 1d 23:34:00, metric 20 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 10.255.164.4/32 *[OSPF/10] 1d 23:34:00, metric 10 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 10.255.164.5/32 *[OSPF/10] 1d 23:34:00, metric 20 to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 10.255.164.6/32 *[OSPF/10] 1d 23:34:00, metric 25 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.241.8/30 *[OSPF/10] 1d 23:34:00, metric 20 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.241.12/30 *[OSPF/10] 1d 23:34:00, metric 30 to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 to 192.168.242.18 via so-0/2/0.0 > to 192.168.241.18 via t1-0/1/0.0 192.168.241.24/30 *[OSPF/10] 1d 23:34:00, metric 30 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 192.168.242.4/30 *[OSPF/10] 1d 23:34:00, metric 20 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 192.168.242.8/30 *[OSPF/10] 1d 23:34:00, metric 20 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.242.12/30 *[OSPF/10] 1d 23:34:00, metric 25 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.242.20/30 *[OSPF/10] 1d 23:34:00, metric 20 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 192.168.242.24/30 *[OSPF/10] 1d 23:34:00, metric 25 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 224.0.0.5/32 *[OSPF/10] 1w1d 02:46:58, metric 1 MultiRecv inet.3: 5 destinations, 6 routes (5 active, 0 holddown, 0 hidden) :voice.inet.0: 22 destinations, 22 routes (22 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 10.255.164.2/32 *[OSPF/10] 1d 23:34:00, metric 10 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 10.255.164.3/32 *[OSPF/10] 1d 23:34:00, metric 20 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 10.255.164.4/32 *[OSPF/10] 1d 23:34:00, metric 10 to 192.168.242.18 via so-0/2/0.0 > to 192.168.241.18 via t1-0/1/0.0 10.255.164.5/32 *[OSPF/10] 1d 23:34:00, metric 20 to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 10.255.164.6/32 *[OSPF/10] 1d 23:34:00, metric 25 to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.241.8/30 *[OSPF/10] 1d 23:34:00, metric 20 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.241.12/30 *[OSPF/10] 1d 23:34:00, metric 30 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.241.24/30 *[OSPF/10] 1d 23:34:00, metric 30 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 192.168.242.4/30 *[OSPF/10] 1d 23:34:00, metric 20 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 192.168.242.8/30 *[OSPF/10] 1d 23:34:00, metric 20 to 192.168.242.18 via so-0/2/0.0 > to 192.168.241.18 via t1-0/1/0.0 192.168.242.12/30 *[OSPF/10] 1d 23:34:00, metric 25 to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 > to 192.168.242.18 via so-0/2/0.0 to 192.168.241.18 via t1-0/1/0.0 192.168.242.20/30 *[OSPF/10] 1d 23:34:00, metric 20 to 192.168.242.2 via so-0/2/2.0 > to 192.168.241.2 via t1-0/1/2.0 192.168.242.24/30 *[OSPF/10] 1d 23:34:00, metric 25 > to 192.168.242.2 via so-0/2/2.0 to 192.168.241.2 via t1-0/1/2.0 mpls.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
意味
予想通り、デバイスR1には各宛先への潜在的なルートが複数あります。
バックアップカバレッジの確認
目的
デバイスR1で、 show (ospf | ospf3) backup coverage
コマンドを使用して、ネットワーク内のすべてのノードとプレフィックスで利用可能なバックアップカバレッジのレベルを確認します。
アクション
user@R1> show ospf backup coverage Topology default coverage: Node Coverage: Area Covered Total Percent Nodes Nodes Covered 0.0.0.0 5 5 100.00% Route Coverage: Path Type Covered Total Percent Routes Routes Covered Intra 17 18 94.44% Inter 0 0 100.00% Ext1 0 0 100.00% Ext2 0 0 100.00% All 17 18 94.44% Topology voice coverage: Node Coverage: Area Covered Total Percent Nodes Nodes Covered 0.0.0.0 5 5 100.00% Route Coverage: Path Type Covered Total Percent Routes Routes Covered Intra 17 18 94.44% Inter 0 0 100.00% Ext1 0 0 100.00% Ext2 0 0 100.00% All 17 18 94.44%
バックアップLSPの確認
目的
デバイスR1では、 show (ospf | ospf3) backup lsp
コマンドを使用して、OSPFルートのバックアップルートとして指定されているLSPをチェックします。
アクション
user@R1> show ospf backup lsp path1 Egress: 10.255.164.3, Status: up, Last change: 01:13:48 TE-metric: 19, Metric: 0 path2 Egress: 10.255.164.3, Status: up, Last change: 01:13:48 TE-metric: 19, Metric: 0
バックアップネイバーの確認
目的
デバイスR1で、 show (ospf | ospf3) backup neighbor
コマンドを使用して、バックアップパスのダイレクトネクストホップが利用可能なネイバーを確認します。
アクション
user@R1> show ospf backup neighbor Topology default backup neighbors: Area 0.0.0.0 backup neighbors: 10.255.164.4 Neighbor to Self Metric: 10 Self to Neighbor Metric: 10 Direct next-hop: so-0/2/0.0 via 192.168.242.18 Direct next-hop: t1-0/1/0.0 via 192.168.241.18 10.255.164.2 Neighbor to Self Metric: 10 Self to Neighbor Metric: 10 Direct next-hop: so-0/2/2.0 via 192.168.242.2 Direct next-hop: t1-0/1/2.0 via 192.168.241.2 10.255.164.3 (LSP endpoint) Neighbor to Self Metric: 20 Self to Neighbor Metric: 20 Direct next-hop: path1 Direct next-hop: path2 Topology voice backup neighbors: Area 0.0.0.0 backup neighbors: 10.255.164.4 Neighbor to Self Metric: 10 Self to Neighbor Metric: 10 Direct next-hop: so-0/2/0.0 via 192.168.242.18 Direct next-hop: t1-0/1/0.0 via 192.168.241.18 10.255.164.2 Neighbor to Self Metric: 10 Self to Neighbor Metric: 10 Direct next-hop: so-0/2/2.0 via 192.168.242.2 Direct next-hop: t1-0/1/2.0 via 192.168.241.2 10.255.164.3 (LSP endpoint) Neighbor to Self Metric: 20 Self to Neighbor Metric: 20 Direct next-hop: path1 Direct next-hop: path2
SPF 計算の確認
目的
デバイスR1で、 show (ospf | ospf3) backup spf detail
コマンドを使用して、バックアップパスのOSPF最短パスファースト(SPF)計算をチェックします。出力を制限するために、音声トポロジはコマンドで指定されます。
アクション
user@R1> show ospf backup spf detail topology voice Topology voice results: Area 0.0.0.0 results: 192.168.241.2 Self to Destination Metric: 10 Parent Node: 10.255.164.1 Primary next-hop: t1-0/1/2.0 Backup next-hop: path1 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 20, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.2 Eligible, Reason: Contributes backup next-hop Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Interface is already covered Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Not evaluated, Reason: Interface is already covered 192.168.241.18 Self to Destination Metric: 10 Parent Node: 10.255.164.1 Primary next-hop: t1-0/1/0.0 Backup next-hop: so-0/2/0.0 via 192.168.242.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 30, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.1 Track Item: 10.255.164.2 Track Item: 10.255.164.4 Not eligible, Reason: Path loops Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Eligible, Reason: Contributes backup next-hop Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Not evaluated, Reason: Interface is already covered 192.168.242.2 Self to Destination Metric: 10 Parent Node: 10.255.164.1 Primary next-hop: so-0/2/2.0 Backup next-hop: path2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 20, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.2 Eligible, Reason: Contributes backup next-hop Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Interface is already covered Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Not evaluated, Reason: Interface is already covered 192.168.242.18 Self to Destination Metric: 10 Parent Node: 10.255.164.1 Primary next-hop: so-0/2/0.0 Backup next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 30, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.1 Track Item: 10.255.164.2 Track Item: 10.255.164.4 Not eligible, Reason: Path loops Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Eligible, Reason: Contributes backup next-hop Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Not evaluated, Reason: Interface is already covered 10.255.164.2 Self to Destination Metric: 10 Parent Node: 192.168.241.2 Parent Node: 192.168.242.2 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 10, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.2 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 0, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Track Item: 10.255.164.2 Not evaluated, Reason: Primary next-hop multipath 10.255.164.4 Self to Destination Metric: 10 Parent Node: 192.168.241.18 Parent Node: 192.168.242.18 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 20, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.4 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 0, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Track Item: 10.255.164.4 Not evaluated, Reason: Primary next-hop multipath 192.168.241.10 Self to Destination Metric: 20 Parent Node: 10.255.164.4 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 20, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 192.168.242.6 Self to Destination Metric: 20 Parent Node: 10.255.164.2 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 10, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 30, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Track Item: 10.255.164.1 Track Item: 10.255.164.2 Not evaluated, Reason: Primary next-hop multipath 192.168.242.10 Self to Destination Metric: 20 Parent Node: 10.255.164.4 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 20, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 192.168.242.22 Self to Destination Metric: 20 Parent Node: 10.255.164.2 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 20, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Track Item: 10.255.164.2 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 10.255.164.3 Self to Destination Metric: 20 Parent Node: 192.168.242.6 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 0, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 10.255.164.5 Self to Destination Metric: 20 Parent Node: 192.168.241.10 Parent Node: 192.168.242.10 Parent Node: 192.168.242.22 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 10, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 10, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 192.168.242.14 Self to Destination Metric: 25 Parent Node: 10.255.164.5 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 10, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 15, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 15, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 192.168.242.26 Self to Destination Metric: 25 Parent Node: 10.255.164.3 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 5, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 15, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 10.255.164.6 Self to Destination Metric: 25 Parent Node: 192.168.242.14 Parent Node: 192.168.242.26 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 5, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 15, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 15, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 192.168.241.14 Self to Destination Metric: 30 Parent Node: 10.255.164.5 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Primary next-hop: so-0/2/0.0 via 192.168.242.18 Primary next-hop: t1-0/1/0.0 via 192.168.241.18 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 15, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath 192.168.241.26 Self to Destination Metric: 30 Parent Node: 10.255.164.3 Primary next-hop: so-0/2/2.0 via 192.168.242.2 Primary next-hop: t1-0/1/2.0 via 192.168.241.2 Backup Neighbor: 10.255.164.3 (LSP endpoint) Neighbor to Destination Metric: 10, Neighbor to Self Metric: 20 Self to Neighbor Metric: 20, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.2 Neighbor to Destination Metric: 20, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath Backup Neighbor: 10.255.164.4 Neighbor to Destination Metric: 25, Neighbor to Self Metric: 10 Self to Neighbor Metric: 10, Backup preference: 0x0 Not evaluated, Reason: Primary next-hop multipath
OSPF のリンク保護の設定
リンク保護は、OSPF が有効になっているすべてのインターフェイスに対して設定できます。リンク保護を有効にすると、Junos OSは、保護されたインターフェイスを通過するすべての宛先ルートのプライマリネクストホップへの代替パスを作成します。リンク保護は、1 つのリンクのみが利用できなくなる可能性があるが、隣接ノードは別のインターフェイスを介して引き続き使用可能であると想定する場合に使用します。
リンク保護は以下でサポートされています。
OSPFv2 および OSPFv3 インターフェイス
OSPFv3 ユニキャスト レルム
OSPFv2 ユニキャスト トポロジー(マルチキャスト トポロジーを除く)
OSPFv2 および OSPFv3 でサポートされているすべてのルーティング インスタンス
論理システム
OSPFインターフェイスのリンク保護を設定するには、次の手順に従います。
[edit protocols (ospf | ospf3) area area-id interface interface-name]
階層レベルでlink-protection
ステートメントを含めます。
OSPFのリンクプロテクションを設定する場合、ルーティングプロトコルプロセスがルーティングテーブルに特定のルートのすべてのネクストホップをインストールするように、パケットごとのロードバランシングルーティングポリシーも設定する必要があります。
次の例では、エリア0.0.0.0のOSPFインターフェイス so-0/0/0.0 がリンク保護用に設定されています。このインターフェイスを通過する宛先ルートのリンクが利用できなくなった場合、Junos OSは隣接ノード上の別のインターフェイスを介してループフリーのバックアップパスを作成するため、利用できなくなったリンクを回避します。
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { link-protection; } } } }
関連項目
OSPF のノードリンク保護の設定
ノードリンク保護は、OSPFが有効になっているすべてのインターフェイスで設定できます。ノードリンク保護は、保護されたインターフェイスを通過するすべての宛先ルートに対して、異なるルーティングデバイスを介して代替パスを確立します。ノードリンク保護は、ルーティングデバイスまたはノード全体に障害が発生したことを前提としています。そのため、Junos OSは、プライマリネクストホップルーティングデバイスを回避するバックアップパスを計算します。
ノードリンク保護は、以下でサポートされています。
OSPFv2 および OSPFv3 インターフェイス
OSPFv3 ユニキャスト レルム
OSPFv2 ユニキャスト トポロジー
OSPFv2 および OSPFv3 でサポートされているすべてのルーティング インスタンス
論理システム
OSPFインターフェイスのノードリンク保護を設定するには、次の手順に従います。
[edit protocols (ospf | ospf3) area area-id interface interface-name]
階層レベルでnode-link-protection
ステートメントを含めます。
また、ルーティングプロトコルプロセスが特定のルートのすべてのネクストホップをルーティングテーブルにインストールするように、パケットごとのロードバランシングルーティングポリシーを設定する必要があります。
次の例では、エリア0.0.0.0のOSPFインターフェイス so-0/0/0.0 がノードリンク保護用に設定されています。このインターフェイスを通過する宛先ルートのリンクが利用できなくなった場合、Junos OS は別のルーティング デバイスを介してループのないバックアップ パスを作成することで、プライマリ ネクストホップ ルーティング デバイスを回避します。
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { node-link-protection; } } } }
OSPF のノード間リンク保護フォールバックの設定
リンク保護は、OSPF が有効になっているすべてのインターフェイスに対して設定できます。リンク保護を有効にすると、Junos OSは、保護されたインターフェイスを通過するすべての宛先ルートのプライマリネクストホップへの代替パスを作成します。リンク保護は、1 つのリンクのみが利用できなくなる可能性があるが、隣接ノードは別のインターフェイスを介して引き続き使用可能であると想定する場合に使用します。
ノードリンク保護は、OSPFが有効になっているすべてのインターフェイスで設定できます。ノードリンク保護は、保護されたインターフェイスを通過するすべての宛先ルートに対して、異なるルーティングデバイスを介して代替パスを確立します。ノードリンク保護は、ルーティングデバイスまたはノード全体に障害が発生したことを前提としています。そのため、Junos OSは、プライマリネクストホップルーティングデバイスを回避するバックアップパスを計算します。
特定のトポロジーでは、プライマリーネクストホップ内のノード障害に対するローカル修復保護を行うことが望ましい場合がありますが、これは使用できない場合があります。その場合、ある程度のローカル修復機能が存在することを確認するために、フォールバック メカニズムが必要です。リンク保護はノード保護よりも厳格ではないため、リンク保護が存在し、それらの宛先(したがって、リンク保護から発信されたプレフィックス)に同じものを提供する可能性があります。
OSPFインターフェイスのノード間リンク保護フォールバックを設定するには:
[edit protocols (ospf | ospf3) backup-spf-options]
階層レベルで node-link-degradation
ステートメントを含めます。
保護されたインターフェイスのバックアップとしての OSPF インターフェイスを除外する
デフォルトでは、デフォルト インスタンスまたは特定のルーティング インスタンスに属するすべての OSPF インターフェイスは、リンク保護またはノード リンク保護で設定されたインターフェイスのバックアップ インターフェイスとして適格です。保護されたインターフェイスのバックアップ インターフェイスとしての機能から OSPF インターフェイスを除外するように指定できます。
保護されたインターフェイスのバックアップ インターフェイスとして OSPF インターフェイスを除外するには、次の手順に従います。
[edit protocols (ospf | ospf3) area area-id interface interface-name]
階層レベルでno-eligible-backup
ステートメントを含めます。
次の例では、インターフェイスso-0/0/0.0は、保護されたインターフェイスを宛先とするトラフィックのバックアップトラフィックを禁止するように設定されています。つまり、保護されたインターフェイスの隣接するネクストホップパスまたはノードに障害が発生した場合、インターフェイスso-0/0/0.0を使用してバックアップパスにトラフィックを送信することはできません。
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { no-eligible-backup; } } } }
保護された OSPF インターフェイスのバックアップ SPF オプションの設定
デフォルトでは、少なくとも 1 つの OSPF インターフェイスにリンク保護またはノードリンク保護が設定されている場合、Junos OS は OSPF インスタンス内のすべてのトポロジーのバックアップネクストホップを計算します。次の SPF(バックアップ最短パス優先)オプションを設定して、デフォルトの動作を上書きできます。
OSPFインスタンスまたはインスタンス内の特定のトポロジーのバックアップネクストホップの計算を無効にします。
OSPFインスタンス、あるいはインスタンス内の特定のトポロジーのルーティングテーブルや転送テーブルにバックアップネクストホップがインストールされないようにします。
バックアップネクストホップの計算を、RFC 5286 IP高速再ルートの基本仕様: ループフリー代替ルートで定義されているパスのサブセットに制限します。
OSPFインスタンスまたはインスタンス内の特定のトポロジーのバックアップSPFアルゴリズムを無効にすることができます。これを行うと、その OSPF インスタンスまたはトポロジーのバックアップ ネクスト ホップの計算ができなくなります。
OSPFインスタンスまたはトポロジーのバックアップネクストホップの計算をディセーブルにするには、以下を行います。
[edit protocols (ospf | ospf3) backup-spf-options]
または[edit protocols ospf backup-spf-options topology topology-name]
階層レベルでdisable
ステートメントを含めます。
次の例では、OSPFトポロジ 音声のバックアップネクストホップの計算が無効になっています。
[edit] protocols { ospf { topology voice { backup-spf-options { disable; } } } }
ルーティング デバイスを設定して、OSPF インスタンスのルーティング テーブルや転送テーブル、あるいは OSPF インスタンスの特定のトポロジにバックアップ ネクスト ホップをインストールしないようにすることができます。SPF アルゴリズムはバックアップ ネクスト ホップの計算を続行しますが、インストールされていません。
ルーティング デバイスがルーティング テーブルまたは転送テーブルにバックアップ ネクスト ホップをインストールしないようにするには、以下を行います。
[edit protocols (ospf | ospf3) backup-spf-options]
または[edit protocols ospf topology topology-name]
階層レベルでno-install
ステートメントを含めます。
次の例では、OSPFトポロジ ー音声 のバックアップネクストホップがルーティングテーブルまたは転送テーブルにインストールされていません。他の OSPF インスタンスまたはトポロジーに対して計算されたバックアップ ネクスト ホップは、引き続きインストールされます。
[edit] protocols { ospf { topology voice { backup-spf-options { no-install; } } } }
RFC 5286 で定義されているように、バックアップ ネクスト ホップの計算を ダウンストリーム パスに制限することができます。Junos OS に対して、OSPF インスタンスまたは OSPF インスタンス内の特定のトポロジーの保護インターフェイスのバックアップ ネクスト ホップとして、ダウンストリーム パスのみを使用するように指定できます。ダウンストリームパスでは、バックアップネイバーからデスティネーションまでの距離は、計算中のルーティングデバイスからデスティネーションまでの距離よりも小さくなければなりません。保護されたインターフェイスのループフリーの代替パスとしてダウンストリームパスのみを使用することで、これらのパスがマイクロループにならないようにします。ただし、ネットワークに最適なバックアップカバレッジが得られない可能性があります。
バックアップネクストホップの計算をダウンストリームパスに制限するには:
[edit protocols (ospf | ospf3) backup-spf-options]
または[edit protocols ospf backup-spf-options topology topology-name]
階層レベルでdownstream-paths-only
ステートメントを含めます。
次の例では、ダウンストリーム パスのみがトポロジ 音声のバックアップ ネクスト ホップとして計算されます。
[edit] protocols { ospf { topology voice { backup-spf-options { downstream-paths-only; } } } }
関連項目
OSPF のバックアップ パスとしての RSVP ラベルスイッチ パスの設定
リンク保護またはノードリンク保護用にOSPFインターフェイスを設定する場合、1ホップネイバーのバックアップパスの最短パス優先(SPF)計算に依存すると、特定のネットワークトポロジーのバックアップカバレッジが100%未満になる可能性があります。RSVP LSP をバックアップ パスとして設定することで、OSPF および LDP のラベルスイッチ パス(LSP)のカバレッジを拡張することができます。
LSPを設定する場合、エグレスルーターのIPアドレスを指定する必要があります。
RSVP LSP は、OSPFv2 のデフォルト トポロジーでのみバックアップ パスとして使用でき、設定済みトポロジーでは使用できません。また、RSVP LSP は、OSPFv2 または OSPFv3 のデフォルト以外のインスタンスのバックアップ パスとして使用することはできません。
特定の RSVP LSP をバックアップ パスとして設定するには、次のようにします。
[edit protocols mpls labeled-switched-path lsp-name]
階層レベルでbackup
ステートメントを含めます。[edit protocols mpls label-switched-path]
階層レベルでto ip-address
ステートメントを含めて、エグレス ルーターのアドレスを指定します。
次の例では、RSVP LSP f-to-g が、保護された OSPF インターフェイスのバックアップ LSP として設定されています。エグレス ルーターは、IP アドレス 192.168.1.4 で設定されます。
[edit] protocols { mpls { label-switched-path f-to-g { to 192.168.1.4; backup; } } }
OSPF ネットワークにおける LDP トンネルを介したリモート LFA の概要
OSPFネットワークでは、ループフリー代替(LFA)は、直接接続されたネイバーであり、PLR(Point of Local Repair)で保護されたリンクを介して到達可能な宛先への事前計算されたバックアップパスを提供します。リモート LFA は PLR に直接接続されておらず、動的に作成された LDP トンネルを使用して、事前計算されたバックアップ パスをリモート LFA ノードに提供します。PLR は、プライマリ リンクに障害が発生した場合、このリモート LFA バックアップ パスを使用します。リモートLFAの主な目的は、OSPFネットワークのバックアップカバレッジを拡大し、レイヤー1メトロリングを保護することです。
LFA は、OSPF ネットワークの完全バックアップ カバレッジを提供しません。これは、しばしばリングトポロジーとして形作られるメトロイーサネットネットワークにとって大きな後退となります。この挫折を克服するために、リソース予約プロトコル - トラフィック制御(RSVP-TE)バックアップトンネルが一般的に使用され、バックアップカバレッジを拡張します。しかし、ネットワークプロバイダの大多数は、すでにMPLSトンネル設定プロトコルとしてLDPを実装しており、単にバックアップカバレッジのためだけにRSVP-TEプロトコルを実装したいと考えていません。LDPは、OSPFネットワーク内のすべての潜在的な宛先にトランスポートトンネルを自動的に立ち上げるため、優先プロトコルです。MPLS トンネル設定用に実装された既存の LDP は、OSPF ネットワークや後続の LDP 宛先の保護に再利用できるため、バックアップ カバレッジのための RSVP-TE バックアップ トンネルが不要になります。
リモート LFA バックアップ パスを計算するために、OSPF プロトコルは以下の方法でリモート LFA ノードを決定します。
PLR の保護されたリンクを介して、隣接するルーターから最初にリバース最短パスを計算します。リバース最短パスは、まず発信リンクメトリックではなく着信リンクメトリックを使用して、隣接ノードに到達します。
結果は、各リーフ ノードからルート ノードへの最短パスであるリンクとノードのセットです。
隣接する残りのルーターの SPF(最短パス ファースト)を計算して、保護されているリンクを経由せずに到達できるノードのリストを見つけます。
その結果、ルート ノードからすべてのリーフ ノードへの最短パス上にある別のリンクとノードのセットが作成されます。
上記の結果から共通ノードを決定します。これらのノードはリモート LFA です。
OSPF は、LDP ルートのアドバタイズされたラベルをリッスンします。OSPFは、アドバタイズされた各LDPルートについて、LDP提供のネクストホップが含まれているかどうかを確認します。対応する OSPF ルートにバックアップ ネクストホップがある場合、OSPF はバックアップ ポリシーを実行し、対応する LDP ラベルスイッチ パス ネクストホップをバックアップ ネクストホップとするトラッキング ルートを追加します。バックアップネクストホップがない場合、LDPはリモートLFAへの動的LDPトンネルを構築し、LDPはリモートLFAノードとPLRノードの間にターゲット隣接関係を確立します。このバックアップ ルートには 2 つの LDP ラベルがあります。トップラベルはOSPFルートで、PLRからリモートLFAルートへのバックアップパスを示しています。一番下のラベルは、リモート LFA から最終目的地に到達するまでのルートを示す LDP MPLS ラベルスイッチ パスです。LDP セッションがダウンし、リモート トンネルが利用できなくなると、OSPF はこのバックアップ LDP トンネルを使用していたすべてのルートを変更します。
現在、Junos OS は IPv4 トランスポート LSP のみをサポートしています。IPv6 IGP ネットワークで IPv4 トランスポート LSP を再利用する必要がある場合は、追跡ルートのラベルスタックに IPv6 明示 NULL ラベルを追加します。システムは自動的に IPv4 LSP を IPv6 LSP に変換します。
LDP は、自動的にターゲットを絞った隣接関係によって脆弱になる可能性があり、これらの脅威は、以下のメカニズムのすべてまたは一部を使用して軽減できます。
数ホップ離れたリモート LFA は、拡張 Hello メッセージを使用して、ターゲット LDP セッションを確立する意思を示します。リモート LFA は、拡張 Hello メッセージをフィルタリングし、アクセス リストまたはフィルタ リストで許可された送信元から発信されたものだけを受け入れることで、スプーフィングされた拡張 Hello メッセージの脅威を軽減することができます。
アプリグループまたはLDPグローバルレベル認証を使用して、指定されたIGP/LDPドメイン内のすべての自動ターゲットLDPセッションをTCP-MD5で認証する必要があります。
追加のセキュリティ対策として、修復またはリモート トンネル エンドポイント ルーターは、ルーティング ドメインの外部から到達できないアドレスのセットから割り当てる必要があります。
関連項目
OSPF ネットワーク内の LDP トンネルを介したリモート LFA バックアップの設定
リモート ループフリー代替(LFA)の主な目的は、OSPF ルートのバックアップ カバレッジを拡大し、特にレイヤー 1 メトロ リングを保護することです。MPLS トンネル設定用に実装された既存の LDP は、OSPF ネットワークおよび後続の LDP 宛先の保護に再利用できます。OSPF プロトコルは、PLR(Point of Local Repair)からリモート LFA ノードに到達する動的 LDP トンネルを作成します。PLR は、プライマリ リンクに障害が発生した場合、このリモート LFA バックアップ パスを使用します。
OSPF ネットワークで LDP トンネルを介したリモート LFA を設定する前に、次のことを行う必要があります。
ループバックインターフェイスでLDPを有効にします。
LDPターゲットの隣接関係はループバックインターフェイスなしでは形成できないため、ループバックインターフェイスを設定します。LDP ターゲットの隣接関係は、リモート LFA バックアップ パスを決定するために不可欠です。
リモート LFA が非対称のリモートネイバー検出を可能にすることを確認します。つまり、LDP 自動ターゲット隣接関係のためにリモートネイバーを開始したルーターに、定期的にターゲット Hello メッセージを送信する必要があります。
PLRにリンク保護またはノードリンク保護を設定します。
OSPF ネットワーク内の LDP トンネル上でリモート LFA バックアップを設定するには、次の手順に従います。
関連項目
例:OSPF ネットワークでの LDP トンネルを介したリモート LFA の設定
OSPFネットワークでは、ループフリーオルタネイト(LFA)は、直接接続されたネイバーであり、ポイントオブローカルリペア(PLR)で保護されたリンクを介して到達可能な宛先への事前計算されたバックアップパスを提供します。リモート LFA は PLR に直接接続されておらず、動的に作成された LDP トンネルを使用して、事前計算されたバックアップ パスをリモート LFA ノードに提供します。PLR は、プライマリ リンクに障害が発生した場合、このリモート LFA バックアップ パスを使用します。リモートLFAの主な目的は、OSPFネットワークのバックアップカバレッジを拡大し、レイヤー1メトロリングを保護することです。この例では、バックアップ保護を拡張するために、OSPFネットワーク内のLDPトンネルにリモートLFAを設定する方法を示します。
必要条件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
-
接続されたインターフェイスでOSPFプロトコルとLDPが有効になっている9台のMXシリーズルーター。
-
すべてのデバイスで稼働するJunos OSリリース15.1以降。
OSPF ネットワークで LDP トンネルを介したリモート LFA を設定する前に、以下のことを確認してください。
-
LDP はループバック インターフェイスで有効になっています。ループバックインターフェイスがなければ、LDPターゲット隣接関係は形成できません。リモート LFA は、LDP をターゲットにした隣接関係なしでは設定できません。
-
リモート LFA は、非対称リモートネイバー検出を許可する必要があります。つまり、LDP 自動ターゲット隣接関係用にリモートネイバーを開始したルーターに、定期的にターゲット hello を送信する必要があります。
-
リンク保護またはノードリンク保護は、ポイントオブローカルリペア(PLR)で設定する必要があります。
概要
この例では、リングトポロジーに9台のルーターが含まれています。直接接続されたインターフェイスでOSPFプロトコルを設定します。デバイスR6はPLRです。この例では、Junos OSがLDPネクストホップルートをバックアップルートとしてデバイスR6のルーティングテーブルを更新することを確認します。
位相幾何学
図 3 のトポロジーは、OSPF ネットワークの LDP トンネルを介したリモート LFA がデバイス R6 に設定されていることを示しています。

構成
CLIクイック構成
この例を迅速に設定するには、以下のコマンドをコピーして、テキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを [edit] 階層レベルで CLI にコピー アンド ペーストして、設定モードから commit
を入力します。
R0
set interfaces ge-0/0/0 unit 0 family inet address 10.1.1.1/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.90.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 family inet address 10.110.1.1/24 set interfaces ge-0/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.1.1.1/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.1.1.1 set routing-options forwarding-table export per-packet set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface lo0.0 set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf export static set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp egress-policy static set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface ge-0/0/2.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept set policy-options policy-statement static from protocol static set policy-options policy-statement static then accept
R1
set interfaces ge-0/0/0 unit 0 family inet address 10.1.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.20.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 family inet address 10.80.1.1/24 set interfaces ge-0/0/2 unit 0 family mpls set interfaces ge-0/0/3 unit 0 family inet address 10.100.1.1/24 set interfaces ge-0/0/3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.2.2.2/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.2.2.2 set routing-options forwarding-table export per-packet set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 link-protection set protocols ospf area 0.0.0.0 interface ge-0/0/3.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface ge-0/0/2.0 set protocols ldp interface ge-0/0/3.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R2
set interfaces ge-0/0/0 unit 0 family inet address 10.20.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.30.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 family inet address 10.110.1.1/24 set interfaces ge-0/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.3.3.3/32 set interfaces lo0 unit 0 family mpls set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R3
set interfaces ge-0/0/0 unit 0 family inet address 10.30.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.40.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.4.4.4/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.4.4.4 set routing-options forwarding-table export per-packet set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R4
set interfaces ge-0/0/0 unit 0 family inet address 10.40.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.50.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.5.5.5/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.5.5.5 set routing-options forwarding-table export per-packet set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 60 set protocols ldp auto-targeted-session maximum-sessions 20 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R5
set interfaces ge-0/0/0 unit 0 family inet address 10.50.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.60.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.6.6.6/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.6.6.6 set routing-options forwarding-table export per-packet set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R6
set interfaces ge-0/0/0 unit 0 family inet address 10.60.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.70.1.1/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 family inet address 10.80.1.2/24 set interfaces ge-0/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.7.7.7/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.7.7.7 set routing-options forwarding-table export per-packet set protocols ospf topology default backup-spf-options remote-backup-calculation set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 link-protection set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 link-protection set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 link-protection set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface ge-0/0/2.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R7:
set interfaces ge-0/0/0 unit 0 family inet address 10.70.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.8.8.8/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.8.8.8 set routing-options forwarding-table export per-packet set protocols mpls interface ge-0/0/0.0 set protocols mpls interface lo0.0 set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
R8
set interfaces ge-0/0/0 unit 0 family inet address 10.90.1.2/24 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 family inet address 10.100.1.2/24 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 10.9.9.9/32 set interfaces lo0 unit 0 family mpls set routing-options router-id 10.9.9.9 set routing-options forwarding-table export per-packet set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface lo0.0 set protocols ospf backup-spf-options remote-backup-calculation set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ldp auto-targeted-session teardown-delay 20 set protocols ldp auto-targeted-session maximum-sessions 60 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement per-packet then load-balance per-packet set policy-options policy-statement per-packet then accept
デバイスR6の設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLI のナビゲーションについては、 CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
デバイス R6 を設定するには:
-
インターフェイスを設定します。
[edit interfaces] user@R6# set ge-0/0/0 unit 0 family inet address 10.60.1.2/24 user@R6# set ge-0/0/0 unit 0 family mpls user@R6# set ge-0/0/1 unit 0 family inet address 10.70.1.1/24 user@R6# set ge-0/0/1 unit 0 family mpls user@R6# set ge-0/0/2 unit 0 family inet address 10.80.1.2/24 user@R6# set ge-0/0/2 unit 0 family mpls
-
デバイスにループバックアドレスを割り当てます。
[edit lo0 unit 0 family] user@R6# set address 10.7.7.7/32 user@R6# set mpls
-
ルーターIDを設定します。 exportステートメントを使用して、ローカルルーターの転送テーブルにポリシーを適用します。
[edit routing-options] user@R6# set router-id 10.7.7.7 user@R6# set forwarding-table export per-packet
-
動的 LDP ラベルスイッチ パスを使用してバックアップ ネクスト ホップを計算するリモート LFA バックアップを有効にします。
[edit protocols ospf] user@R6# set topology default backup-spf-options remote-backup-calculation user@R6# set backup-spf-options remote-backup-calculation
-
OSPF エリアのインターフェイスのトラフィック制御とリンク保護を設定します。
[edit protocols ospf] user@R6# set traffic-engineering user@R6# set area 0.0.0.0 interface ge-0/0/0.0 link-protection user@R6# set area 0.0.0.0 interface ge-0/0/1.0 link-protection user@R6# set area 0.0.0.0 interface ge-0/0/2.0 link-protection user@R6# set area 0.0.0.0 interface lo0.0
-
リモート LFA がダウンしたときにターゲット LDP セッションが維持される時間間隔を指定し、メモリの使用を最適化するために、自動的にターゲットとなる LDP セッションの最大数を指定します。
[edit protocols ldp] user@R6# set auto-targeted-session teardown-delay 20 user@R6# set auto-targeted-session maximum-sessions 60
-
インターフェイスにLDPプロトコルを設定します。
[edit protocols ldp] user@R6# set interface ge-0/0/0.0 user@R6# set interface ge-0/0/1.0 user@R6# set interface ge-0/0/2.0 user@R6# set interface lo0.0
-
ポリシーオプションを設定して、ポリシーステートメントルーティングポリシーのパケットごとのロードバランシングを行います。
[edit policy-options policy-statement] user@R6# set per-packet then load-balance per-packet user@R6# set per-packet then accept
業績
設定モードから、 show interfaces、 show protocols、 show policy-options、および show routing-options コマンドを入力して、設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R6# show interfaces ge-0/0/0 { unit 0 { family inet { address 10.60.1.2/24; } family mpls; } } ge-0/0/1 { unit 0 { family inet { address 10.70.1.1/24; } family mpls; } } ge-0/0/2 { unit 0 { family inet { address 10.80.1.2/24; } family mpls; } } lo0 { unit 0 { family inet { address 10.7.7.7/32; } family mpls; } }
user@R6# show protocols ospf { topology default { backup-spf-options { remote-backup-calculation; } } backup-spf-options { remote-backup-calculation; inactive: per-prefix-calculation all; } traffic-engineering; area 0.0.0.0 { interface ge-0/0/0.0 { link-protection; } interface ge-0/0/1.0 { link-protection; } interface ge-0/0/2.0 { link-protection; } interface lo0.0; } } ldp { auto-targeted-session { teardown-delay 20; maximum-sessions 60; } interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; interface lo0.0; }
user@R6# show policy-options policy-statement per-packet { then { load-balance per-packet; accept; } }
user@R6# show routing-options router-id 10.7.7.7; forwarding-table { export per-packet; }
デバイスの設定が完了したら、設定モードから commit
を入力します。
検証
設定が正常に機能していることを確認します。
ルートの検証
目的
期待ルートが学習されていることを確認します。
アクション
デバイスR6では、運用モードから show route 10.6.6.6/24
コマンドを実行し、ルーティングテーブル内のルートを表示します。
user@R6> show route 10.6.6.6/24
inet.0: 75 destinations, 75 routes (75 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.6.6.6/32 *[OSPF/10] 02:21:07, metric 1
> to 10.60.1.1 via ge-0/0/0.0
to 10.80.1.1 via ge-0/0/2.0, Push 299872
inet.3: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.6.6.6/32 *[LDP/9] 02:21:07, metric 1
> to 10.60.1.1 via ge-0/0/0.0
to 10.80.1.1 via ge-0/0/2.0, Push 299792, Push 299872(top)
inet.0: 75 destinations, 75 routes (75 active, 0 holddown, 0 hidden) 10.6.6.6/32 (1 entry, 1 announced) State: <FlashAll> *OSPF Preference: 10 Next hop type: Router, Next hop index: 1048585 Address: 0x9df2690 Next-hop reference count: 10 Next hop: 10.60.1.1 via ge-0/0/0.0 weight 0x1, selected Session Id: 0x141 Next hop: 10.80.1.1 via ge-0/0/2.0 weight 0x101 uflags Remote neighbor path Label operation: Push 299872 Label TTL action: prop-ttl Load balance label: Label 299872: None; Label element ptr: 0x9dc27a0 Label parent element ptr: 0x0 Label element references: 6 Label element child references: 4 Label element lsp id: 0 Session Id: 0x142 State: <Active Int> Age: 2:22:40 Metric: 1 Validation State: unverified Area: 0.0.0.0 Task: OSPF Announcement bits (2): 0-KRT 4-LDP AS path: I inet.3: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) 10.6.6.6/32 (1 entry, 1 announced) State: <FlashAll> *LDP Preference: 9 Next hop type: Router, Next hop index: 0 Address: 0x9df2a90 Next-hop reference count: 1 Next hop: 10.60.1.1 via ge-0/0/0.0 weight 0x1, selected Label element ptr: 0x9dc0dc0 Label parent element ptr: 0x0 Label element references: 1 Label element child references: 0 Label element lsp id: 0 Session Id: 0x0 Next hop: 10.80.1.1 via ge-0/0/2.0 weight 0x101 uflags Remote neighbor path Label operation: Push 299792, Push 299872(top) Label TTL action: prop-ttl, prop-ttl(top) Load balance label: Label 299792: None; Label 299872: None; Label element ptr: 0x9dc1ba0 Label parent element ptr: 0x9dc27a0 Label element references: 1 Label element child references: 0 Label element lsp id: 0 Session Id: 0x0 State: <Active Int> Age: 2:22:40 Metric: 1 Validation State: unverified Task: LDP Announcement bits (1): 0-Resolve tree 1 AS path: I
意味
出力で、デバイスR6のルーティングテーブル内のすべてのルートが表示されます。
LDP ルートの検証
目的
自動的にターゲットにされたLDPルートを検証します。
アクション
動作モードから、 show ldp session auto-targeted detail
コマンドを入力します。
user@R6>show ldp session auto-targeted detail
Address: 10.4.4.4, State: Operational, Connection: Open, Hold time: 28
Session ID: 10.7.7.7:0--10.4.4.4:0
Next keepalive in 8 seconds
Active, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1
Neighbor types: auto-targeted
Keepalive interval: 10, Connect retry interval: 1
Local address: 10.7.7.7, Remote address: 10.4.4.4
Up for 02:28:28
Capabilities advertised: none
Capabilities received: none
Protection: disabled
Session flags: none
Local - Restart: disabled, Helper mode: enabled
Remote - Restart: disabled, Helper mode: enabled
Local maximum neighbor reconnect time: 120000 msec
Local maximum neighbor recovery time: 240000 msec
Local Label Advertisement mode: Downstream unsolicited
Remote Label Advertisement mode: Downstream unsolicited
Negotiated Label Advertisement mode: Downstream unsolicited
MTU discovery: disabled
Nonstop routing state: Not in sync
Next-hop addresses received:
10.4.4.4
10.30.1.2
10.40.1.1
OSPF ルートの検証
目的
デバイスR6のOSPFルーティングテーブル内のすべてのLDPバックアップルートを表示します。
アクション
デバイスR6では、運用モードから show ospf route
コマンドを実行して、OSPFルーティングテーブル内のルートを表示します。
user@R6> show ospf route
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
10.1.1.1 Intra AS BR IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.2.2.2 Intra Router IP 1 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.4.4.4 Intra Router IP 3 ge-0/0/0.0 10.60.1.1
ge-0/0/2.0 10.80.1.1
10.5.5.5 Intra Router IP 2 ge-0/0/0.0 10.60.1.1
Bkup LSP LDP->10.4.4.4
10.6.6.6 Intra Router IP 1 ge-0/0/0.0 10.60.1.1
Bkup LSP LDP->10.4.4.4
10.8.8.8 Intra Router IP 1 ge-0/0/1.0 10.70.1.2
10.9.9.9 Intra Router IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.1.1.1/32 Intra Network IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.2.2.2/32 Intra Network IP 1 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.3.3.3/32 Intra Network IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.4.4.4/32 Intra Network IP 3 ge-0/0/0.0 10.60.1.1
ge-0/0/2.0 10.80.1.1
10.5.5.5/32 Intra Network IP 2 ge-0/0/0.0 10.60.1.1
Bkup LSP LDP->10.4.4.4
10.6.6.6/32 Intra Network IP 1 ge-0/0/0.0 10.60.1.1
Bkup LSP LDP->10.4.4.4
10.7.7.7/32 Intra Network IP 0 lo0.0
10.8.8.8/32 Intra Network IP 1 ge-0/0/1.0 10.70.1.2
10.9.9.9/32 Intra Network IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.1.1.0/24 Intra Network IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.20.1.0/24 Intra Network IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.30.1.0/24 Intra Network IP 3 ge-0/0/2.0 10.80.1.1
Bkup IP ge-0/0/0.0 10.60.1.1
10.40.1.0/24 Intra Network IP 3 ge-0/0/0.0 10.60.1.1
Bkup IP ge-0/0/2.0 10.80.1.1
10.50.1.0/24 Intra Network IP 2 ge-0/0/0.0 10.60.1.1
Bkup LSP LDP->10.4.4.4
10.60.1.0/24 Intra Network IP 1 ge-0/0/0.0
10.70.1.0/24 Intra Network IP 1 ge-0/0/1.0
10.80.1.0/24 Intra Network IP 1 ge-0/0/2.0
90.1.1.0/24 Intra Network IP 3 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.100.1.0/24 Intra Network IP 2 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
10.110.1.0/24 Intra Network IP 3 ge-0/0/2.0 10.80.1.1
Bkup LSP LDP->10.4.4.4
意味
出力で、デバイスR6のOSPFルーティングテーブル内のすべてのLDPバックアップルートが表示されます。
指定されたバックアップ パス ノードの検証
目的
指定された宛先に対して決定されたリモート LFA ネクストホップを表示します。
アクション
動作モードから、 show ospf backup spf results
コマンドを入力します。
user@R6> show ospf backup spf results
Topology default results:
Area 0.0.0.0 results:
10.6.6.6
Self to Destination Metric: 1
Parent Node: 10.60.1.2
Primary next-hop: ge-0/0/0.0 via 60.1.1.1
Backup next-hop: LDP->10.4.4.4 via ge-0/0/2.0
Backup Neighbor: 10.6.6.6 via: Direct
Neighbor to Destination Metric: 0, Neighbor to Self Metric: 1
Self to Neighbor Metric: 1, Backup preference: 0x0
Not eligible, Reason: Primary next-hop link fate sharing
Backup Neighbor: 10.2.2.2 via: Direct
Neighbor to Destination Metric: 2, Neighbor to Self Metric: 1
Self to Neighbor Metric: 1, Backup preference: 0x0
Not eligible, Reason: Path loops
Backup Neighbor: 10.8.8.8 via: Direct
Neighbor to Destination Metric: 2, Neighbor to Self Metric: 1
Self to Neighbor Metric: 1, Backup preference: 0x0
Not eligible, Reason: Path loops
Backup Neighbor: 10.4.4.4 via: LDP (LSP endpoint)
Neighbor to Destination Metric: 2, Neighbor to Self Metric: 3
Self to Neighbor Metric: 3, Backup preference: 0x0
Eligible, Reason: Contributes backup next-hop
意味
出力には、特定のインターフェイスまたはノードがリモートバックアップパスとして指定されているかどうか、またその理由が示されます。
バックアップネイバーの検証
目的
デバイスR6のバックアップネイバーを表示します。
アクション
動作モードから、 show ospf backup neighbor
コマンドを入力します。
user@R6>show ospf backup neighbor
Topology default backup neighbors:
Area 0.0.0.0 backup neighbors:
10.6.6.6 via: Direct
Neighbor to Self Metric: 1
Self to Neighbor Metric: 1
Direct next-hop: ge-0/0/0.0 via 10.60.1.1
10.8.8.8 via: Direct
Neighbor to Self Metric: 1
Self to Neighbor Metric: 1
Direct next-hop: ge-0/0/1.0 via 10.70.1.2
10.2.2.2 via: Direct
Neighbor to Self Metric: 1
Self to Neighbor Metric: 1
Direct next-hop: ge-0/0/2.0 via 10.80.1.1
10.4.4.4 via: LDP (LSP endpoint)
Neighbor to Self Metric: 3
Self to Neighbor Metric: 3
Direct next-hop: LDP->10.4.4.4 via ge-0/0/2.0
Direct next-hop: LDP->10.4.4.4 via ge-0/0/0.0
Neighbors Protected: 2
意味
出力には、エリア 0.0.0.0 で利用可能なバックアップネイバーが表示されます。