AUF DIESER SEITE
Ausschließen einer OSPF-Schnittstelle als Backup für eine geschützte Schnittstelle
Konfigurieren von Backup-SPF-Optionen für geschützte OSPF-Schnittstellen
Konfigurieren von RSVP Label Switched Paths als Backup-Pfade für OSPF
Beispiel: Konfigurieren schleifenfreier alternativer Routen für OSPF
Konfigurieren von Remote-LFA-Backup über LDP-Tunnel in einem OSPF-Netzwerk
Beispiel: Konfigurieren von Remote-LFA über LDP-Tunnel in OSPF-Netzwerken
Konfigurieren schleifenfreier alternativer Routen für OSPF
Pro Prefix-Schleife frei abwechselt für OSPF
Wenn in bestimmten Topologien und Nutzungsszenarien mehrere Ziele vom selben Präfix stammen und es keine praktikable LFA für den besten Prefix-Originator gibt, während ein nicht-bester Prefix-Originator über ein solches verfügt. Bei der LFA pro Präfix handelt es sich um eine Technologie, bei der die LFA an einen nicht am besten geeigneten Prefix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um lokale Reparaturen zu gewährleisten. Dies kann auch verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
Per-Prefix Loop Free Alternates (LFA) – Loop Free Alternates (LFA) ist eine Technologie, mit der ein Nachbar als Backup-Next Hop verwendet werden kann, um einen lokalen Reparaturpfad für den Datenverkehr bereitzustellen, der bei Ausfällen im primären nächsten Hop (Knoten oder Link) vorübergehend übertragen wird. Hierfür besteht die Grundvoraussetzung darin, dass der ausgewählte Backup-Nachbar einen schleifenfreien Pfad in Bezug auf den primären nächsten Hop zu einem Ziel bereitstellt, der eine Reihe von IGP-Präfixen (Interior Gateway Protocol) enthält.
In der folgenden Topologie wird der Bereitstellungsfall erläutert, bei dem die LFA-Funktion pro Präfix anwendbar ist.

ABR1 und ABR2 sind Area Boundary Router (ABRs), Dual-Homed to a IPv6-Core-Netzwerk, das die Zusammenfassung LSA für das Präfix 10.0.1.0/24 mit einer Metrik von 10 anpries. Aus Sicht des PE-Routers ist ABR1 außerdem der beste Prefix-Originator für 10.0.1.0/24. In diesem Fall ist P2 kein gültiges LFA für ABR1, da die Equal Cost Multi Paths (ECMP) {P2, PE, P1, ABR1} und {P2, ABR2, ABR1} dazu führen, dass ein Teil des Datenverkehrs durch das Router-PE zurückschleift (keine gültige LFA). Für ABR2, das auch ein Prefix-Originator für 10.0.1.0/24 ist, ist P2 jedoch ein gültiges LFA, da der einzige Pfad {P2, ABR2} ist.
Konfigurieren von LFA pro Präfix für OSPF
Pro Prefix LFA ist ein Mechanismus, über den LFA an einen nicht am besten geeigneten Prefix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um lokale Reparaturen bereitzustellen. In solchen Fällen kann pro Präfix LFA verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
Loop Free Alternates (LFA) ist ein Mechanismus, durch den ein Nachbar als Backup-Next Hop verwendet werden kann, um einen lokalen Reparaturpfad für den Datenverkehr bereitzustellen, der bei Ausfällen im primären nächsten Hop (Knoten oder Link) vorübergehend fließen kann. Hierfür besteht die Grundvoraussetzung darin, dass der ausgewählte Backup-Nachbar einen schleifenfreien Pfad in Bezug auf den primären nächsten Hop zu einem Ziel bereitstellt, das eine Reihe von IGP-Präfixen hat. In bestimmten Topologien und Nutzungsszenarien kann es möglich sein, dass mehrere Ziele das gleiche Präfix haben und es keine praktikable LFA für den besten Prefix-Originator gibt, während ein nicht-bester Prefix-Originator über ein solches verfügt. Pro Prefix LFA ist ein Mechanismus, über den LFA an einen nicht am besten geeigneten Prefix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um lokale Reparaturen bereitzustellen. In solchen Fällen kann pro Präfix LFA verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
So konfigurieren Sie pro Prefix-LFA für eine OSPF-Schnittstelle:
per-prefix-calculation
Konfigurationsanweisung auf Hierarchieebene[edit protocols (ospf | ospf3) backup-spf-options]
.
Loop-Free Alternative Routen für OSPF Übersicht
Unterstützung für OSPF-schleifenfreie alternative Routen fügt im Wesentlichen IP Fast-Reroute-Funktion für OSPF hinzu. Junos OS setzt schleifenfreie Backup-Routen für alle OSPF-Routen voraus. Diese Backup-Routen sind in der Packet Forwarding Engine vorinstalliert, die eine lokale Reparatur durchführt und den Backup-Pfad implementiert, wenn die Verbindung für einen primären nächsten Hop für eine bestimmte Route nicht mehr verfügbar ist. Bei einer lokalen Reparatur kann die Packet Forwarding Engine einen Pfadfehler beheben, bevor sie vorgefertigte Pfade von der Routing-Engine empfängt. Lokale Reparatur reduziert den Zeitaufwand für die Umleitung des Datenverkehrs auf weniger als 50 Millisekunden. Im Gegensatz dazu kann eine globale Reparatur bis zu 800 Millisekunden dauern, um eine neue Route zu berechnen. Dank lokaler Reparatur kann der Datenverkehr weiterhin über einen Backup-Pfad geroutet werden, bis eine globale Reparatur in der Lage ist, eine neue Route zu berechnen.
Ein schleifenfreier Pfad ist ein Pfad, der den Datenverkehr nicht über das Routinggerät zurückleitt, um ein bestimmtes Ziel zu erreichen. Das bedeutet, dass ein Nachbar, dessen kürzester Pfad zuerst zum Ziel führt, das Routing-Gerät durchläuft, das nicht als Backup-Route zu diesem Ziel verwendet wird. Um schleifenfreie alternative Pfade für OSPF-Routen zu bestimmen, führt Junos OS Berechnungen mit dem kürzesten Pfad-first (SPF) auf jedem One-Hop-Nachbarn aus. Sie können die Unterstützung für alternative schleifenfreie Routen auf jeder OSPF-Schnittstelle aktivieren. Da es gängige Praxis ist, LDP an einer Schnittstelle zu aktivieren, für die OSPF bereits aktiviert ist, bietet diese Funktion auch Unterstützung für LDP Label Switched Paths (LSPs).)
Wenn Sie die Unterstützung für alternative schleifenfreie Routen auf einer Schnittstelle aktivieren, die sowohl für LDP als auch OSPF konfiguriert ist, können Sie den traceroute
aktiven Pfad zum primären nächsten Hop verfolgen.
Der Umfang der über OSPF-Routen verfügbaren Backup-Abdeckung hängt von der tatsächlichen Netzwerktopologie ab und liegt in der Regel bei weniger als 100 Prozent für alle Ziele auf einem bestimmten Routinggerät. Sie können die Sicherungsabdeckung um RSVP-LSP-Pfade erweitern.
Junos OS bietet drei Mechanismen für die Routenredundanz für OSPF durch alternative schleifenfreie Routen:
Verbindungsschutz : Bietet Datenverkehrsschutz pro Verbindung. Verwenden Sie den Verbindungsschutz, wenn Sie davon ausgehen, dass möglicherweise nur eine einzelne Verbindung nicht verfügbar ist, der nachbarliche Knoten auf dem primären Pfad aber weiterhin über eine andere Schnittstelle verfügbar wäre.
Knotenverbindungsschutz: Stellt einen alternativen Pfad durch ein anderes Routinggerät her. Verwenden Sie den Node-Link-Schutz, wenn Sie davon ausgehen, dass der Zugriff auf einen Knoten verloren geht, wenn eine Verbindung nicht mehr verfügbar ist. Aus diesem Grund berechnet Junos OS einen Backup-Pfad, der das primäre Next-Hop-Routing-Gerät vermeidet.
Schleifenfreie Per-Prefix-Alternates (LFAs): Es handelt sich um eine Technologie, mit der ein Nachbar als Backup-Next Hop verwendet werden kann, um einen lokalen Reparaturpfad für den Datenverkehr bereitzustellen, der bei Ausfällen im primären nächsten Hop (Knoten oder Link) vorübergehend fließen kann. Die Grundvoraussetzung hierfür ist, dass der ausgewählte Backup-Nachbar einen schleifenfreien Pfad in Bezug auf einen primären nächsten Hop zu einem Ziel bereitstellt, der eine Reihe von IGP-Präfixen (Interior Gateway Protocol) mit sich bringt.
In bestimmten Topologien und Nutzungsszenarien kann es möglich sein, dass mehrere Ziele das gleiche Präfix haben und es keine praktikable LFA für den besten Prefix-Originator gibt, während ein nicht bester Prefix-Originator über eine praktikable LFA verfügt. Die LFA pro Präfix ist ein Mechanismus, über den LFA an einen nicht am besten geeigneten Prefix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um lokale Reparaturen bereitzustellen. In solchen Fällen kann pro Präfix LFA verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
Wenn Sie link protection oder node-link protection auf einer OSPF-Schnittstelle aktivieren, erstellt Junos OS einen alternativen Pfad zum primären nächsten Hop für alle Zielrouten, die eine geschützte Schnittstelle passieren.
Konfigurieren von Verbindungsschutz für OSPF
Sie können den Verbindungsschutz für jede Schnittstelle konfigurieren, für die OSPF aktiviert ist. Wenn Sie den Verbindungsschutz aktivieren, erstellt Junos OS für alle Zielrouten, die eine geschützte Schnittstelle durchqueren, einen alternativen Pfad zum primären nächsten Hop. Verwenden Sie den Verbindungsschutz, wenn Sie davon ausgehen, dass nur eine einzelne Verbindung möglicherweise nicht verfügbar ist, der benachbarte Knoten aber weiterhin über eine andere Schnittstelle verfügbar ist.
Der Linkschutz wird unterstützt auf:
OSPFv2- und OSPFv3-Schnittstellen
OSPFv3-Unicast-Bereiche
OSPFv2-Unicasttopologien, mit Ausnahme von Multicasttopologien
Alle Routing-Instanzen, die von OSPFv2 und OSPFv3 unterstützt werden
Logische Systeme
So konfigurieren Sie den Verbindungsschutz für eine OSPF-Schnittstelle:
Fügen Sie die
link-protection
Anweisung auf Hierarchieebene[edit protocols (ospf | ospf3) area area-id interface interface-name]
ein.
Wenn Sie den Linkschutz für OSPF konfigurieren, müssen Sie auch eine Lastausgleichs-Routingrichtlinie pro Paket konfigurieren, um sicherzustellen, dass der Routingprotokollprozess alle nächsten Hops für eine bestimmte Route in der Routingtabelle installiert.
Im folgenden Beispiel ist die OSPF-Schnittstelle so-0/0/0.0 im Bereich 0.0.0.0.0 für den Linkschutz konfiguriert. Wenn eine Verbindung für eine Zielroute, die diese Schnittstelle durchläuft, ausfällt, erstellt Junos OS einen schleifenfreien Backup-Pfad durch eine andere Schnittstelle auf dem benachbarten Knoten und vermeidet so die Verbindung, die nicht mehr verfügbar ist.
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { link-protection; } } } }
Siehe auch
Konfigurieren des Node-Link-Schutzes für OSPF
Sie können den Knotenverbindungsschutz auf jeder Schnittstelle konfigurieren, für die OSPF aktiviert ist. Der Node-Link-Schutz stellt für alle Zielrouten, die eine geschützte Schnittstelle durchlaufen, einen alternativen Pfad durch ein anderes Routinggerät her. Der Knotenverbindungsschutz setzt voraus, dass das gesamte Routinggerät oder der Knoten fehlgeschlagen ist. Junos OS berechnet daher einen Backup-Pfad, der das primäre Next-Hop-Routing-Gerät vermeidet.
Der Knotenverbindungsschutz wird unterstützt auf:
OSPFv2- und OSPFv3-Schnittstellen
OSPFv3-Unicast-Bereiche
OSPFv2-Unicast-Topologien
Alle Routing-Instanzen, die von OSPFv2 und OSPFv3 unterstützt werden
Logische Systeme
So konfigurieren Sie den Node-Link-Schutz für eine OSPF-Schnittstelle:
Fügen Sie die
node-link-protection
Anweisung auf Hierarchieebene[edit protocols (ospf | ospf3) area area-id interface interface-name]
ein.
Sie müssen auch eine Lastausgleichs-Routingrichtlinie pro Paket konfigurieren, um sicherzustellen, dass der Routingprotokollprozess alle nächsten Hops für eine bestimmte Route in der Routingtabelle installiert.
Im folgenden Beispiel ist die OSPF-Schnittstelle so-0/0/0.0 im Bereich 0.0.0.0.0 für den Knotenverbindungsschutz konfiguriert. Wenn eine Verbindung für eine Zielroute, die diese Schnittstelle durchläuft, ausfällt, erstellt Junos OS einen schleifenfreien Backup-Pfad durch ein anderes Routinggerät, wodurch das primäre Next-Hop-Routing-Gerät vermieden wird.
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { node-link-protection; } } } }
Node to Link Protection-Fallback für OSPF konfigurieren
Sie können den Verbindungsschutz für jede Schnittstelle konfigurieren, für die OSPF aktiviert ist. Wenn Sie den Verbindungsschutz aktivieren, erstellt Junos OS für alle Zielrouten, die eine geschützte Schnittstelle durchqueren, einen alternativen Pfad zum primären nächsten Hop. Verwenden Sie den Verbindungsschutz, wenn Sie davon ausgehen, dass nur eine einzelne Verbindung möglicherweise nicht verfügbar ist, der benachbarte Knoten aber weiterhin über eine andere Schnittstelle verfügbar ist.
Sie können den Knotenverbindungsschutz auf jeder Schnittstelle konfigurieren, für die OSPF aktiviert ist. Der Node-Link-Schutz stellt für alle Zielrouten, die eine geschützte Schnittstelle durchlaufen, einen alternativen Pfad durch ein anderes Routinggerät her. Der Knotenverbindungsschutz setzt voraus, dass das gesamte Routinggerät oder der Knoten fehlgeschlagen ist. Junos OS berechnet daher einen Backup-Pfad, der das primäre Next-Hop-Routing-Gerät vermeidet.
In bestimmten Topologien ist möglicherweise ein lokaler Reparaturschutz für Knotenausfälle im primären nächsten Hop wünschenswert, der möglicherweise nicht verfügbar ist. In diesem Fall ist ein Fallback-Mechanismus erforderlich, um sicherzustellen, dass ein gewisses Maß an lokalen Reparaturfunktionen vorhanden ist. Da der Verbindungsschutz weniger streng ist als der Knotenschutz, kann es möglich sein, dass der Linkschutz vorhanden ist und dasselbe für dieses Ziel bereitstellt (und daher die Präfixe, die von diesem stammen).
So konfigurieren Sie das Fallback von Node to Link Protection für eine OSPF-Schnittstelle:
node-link-degradation
Anweisung auf Hierarchieebene [edit protocols (ospf | ospf3) backup-spf-options]
ein.
Ausschließen einer OSPF-Schnittstelle als Backup für eine geschützte Schnittstelle
Standardmäßig sind alle OSPF-Schnittstellen, die zur Standardinstanz oder zu einer bestimmten Routinginstanz gehören, als Backup-Schnittstelle für Schnittstellen qualifiziert, die mit Verbindungsschutz oder Node-Link-Schutz konfiguriert sind. Sie können festlegen, dass jede OSPF-Schnittstelle von der Funktion als Backup-Schnittstelle für geschützte Schnittstellen ausgeschlossen wird.
So schließen Sie eine OSPF-Schnittstelle als Backup-Schnittstelle für eine geschützte Schnittstelle aus:
Fügen Sie die
no-eligible-backup
Anweisung auf Hierarchieebene[edit protocols (ospf | ospf3) area area-id interface interface-name]
ein.
Im folgenden Beispiel wurde interface so-0/0/0.0 konfiguriert, dass Backup-Datenverkehr für Datenverkehr, der für eine geschützte Schnittstelle bestimmt ist, verboten wird. Wenn also ein benachbarter Next-Hop-Pfad oder Knoten für eine geschützte Schnittstelle ausfällt, kann die Schnittstelle so-0/0/0.0 nicht für die Übertragung von Datenverkehr zu einem Backup-Pfad verwendet werden.
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { no-eligible-backup; } } } }
Konfigurieren von Backup-SPF-Optionen für geschützte OSPF-Schnittstellen
Wenn mindestens eine OSPF-Schnittstelle für Denk- oder Knotenverbindungsschutz konfiguriert ist, berechnet Junos OS standardmäßig die nächsten Backup-Hops für alle Topologien in einer OSPF-Instanz. Sie können die folgenden Backup-SPF-Optionen (Shortest Path-First) konfigurieren, um das Standardverhalten zu überschreiben:
Deaktivieren Sie die Berechnung der nächsten Backup-Hops für eine OSPF-Instanz oder eine bestimmte Topologie in einer Instanz.
Verhindern Sie die Installation von Backup Next Hops in der Routingtabelle oder der Weiterleitungstabelle für eine OSPF-Instanz oder eine bestimmte Topologie in einer Instanz.
Begrenzen Sie die Berechnung von Backup-Next Hops auf eine Teilmenge von Pfaden wie in RFC 5286, Basic Specification for IP Fast Reroute: Loop-Free Alternates definiert.
Sie können den Backup-SPF-Algorithmus für eine OSPF-Instanz oder eine bestimmte Topologie in einer Instanz deaktivieren. Dies verhindert die Berechnung von Backup-Next Hops für diese OSPF-Instanz oder -Topologie.
So deaktivieren Sie die Berechnung von Backup Next Hops für eine OSPF-Instanz oder -Topologie:
Fügen Sie die
disable
Anweisung auf der bzw[edit protocols ospf backup-spf-options topology topology-name]
. der[edit protocols (ospf | ospf3) backup-spf-options]
Hierarchieebene ein.
Im folgenden Beispiel ist die Berechnung von Backup Next Hops für die OSPF-Topologie voice deaktiviert:
[edit] protocols { ospf { topology voice { backup-spf-options { disable; } } } }
Sie können das Routinggerät so konfigurieren, dass die Installation von Backup Next Hops in der Routingtabelle oder der Weiterleitungstabelle für eine OSPF-Instanz oder eine bestimmte Topologie in einer OSPF-Instanz verhindert wird. Der SPF-Algorithmus berechnet weiterhin Backup-Next Hops, aber sie sind nicht installiert.
Um zu verhindern, dass das Routinggerät Backup Next Hops in der Routingtabelle oder der Weiterleitungstabelle installiert:
Fügen Sie die
no-install
Anweisung auf der[edit protocols (ospf | ospf3) backup-spf-options]
oder der[edit protocols ospf topology topology-name]
Hierarchieebene ein.
Im folgenden Beispiel werden Backup Next Hops für die OSPF-Topologie Voice nicht in der Routingtabelle oder Weiterleitungstabelle installiert. Alle berechneten nächsten Backup-Hops für andere OSPF-Instanzen oder -Topologien werden weiterhin installiert.
[edit] protocols { ospf { topology voice { backup-spf-options { no-install; } } } }
Sie können die Berechnung von Backup Next Hops auf Downstream-Pfade beschränken, wie in RFC 5286 definiert. Sie können festlegen, dass Junos OS nur Downstream-Pfade als Backup-Next Hops für geschützte Schnittstellen für eine OSPF-Instanz oder eine bestimmte Topologie in einer OSPF-Instanz verwendet. In einem nachgeschalteten Pfad muss die Entfernung vom Backup-Nachbarn zum Ziel kleiner sein als die Entfernung vom berechnenden Routinggerät zum Ziel. Die Verwendung nur nachgeschalteter Pfade als schleifenfreie alternative Pfade für geschützte Schnittstellen stellt sicher, dass diese Pfade nicht zu Microloops führen. Möglicherweise haben Sie jedoch weniger als eine optimale Sicherungsabdeckung für Ihr Netzwerk.
So begrenzen Sie die Berechnung von Backup-Next Hops auf Downstream-Pfade:
Fügen Sie die
downstream-paths-only
Anweisung auf der bzw[edit protocols ospf backup-spf-options topology topology-name]
. der[edit protocols (ospf | ospf3) backup-spf-options]
Hierarchieebene ein.
Im folgenden Beispiel werden nur Downstream-Pfade als Backup-Next Hops für die Topologie voice berechnet:
[edit] protocols { ospf { topology voice { backup-spf-options { downstream-paths-only; } } } }
Siehe auch
Konfigurieren von RSVP Label Switched Paths als Backup-Pfade für OSPF
Bei der Konfiguration einer OSPF-Schnittstelle zum Verbindungsschutz oder Node-Link-Schutz kann die Berechnung der Backup-Pfade für One-Hop-Nachbarn unter 100 Prozent Backup-Abdeckung für eine bestimmte Netzwerktopologie führen. Sie können die Abdeckung von OSPF und LDP Label Switched Paths (LSPs) verbessern, indem Sie RSVP-LSPs als Backup-Pfade konfigurieren.
Bei der Konfiguration eines LSP müssen Sie die IP-Adresse des Ausgangsrouter angeben.
RSVP-LSPs können als Backup-Pfade nur für die Standardtopologie für OSPFv2 und nicht für eine konfigurierte Topologie verwendet werden. Darüber hinaus kann RSVP LSP nicht als Backup-Pfad für nicht standardmäßige Instanzen für OSPFv2 oder OSPFv3 verwendet werden.
So konfigurieren Sie einen bestimmten RSVP-LSP als Backup-Pfad:
- Fügen Sie die
backup
Anweisung auf Hierarchieebene[edit protocols mpls labeled-switched-path lsp-name]
ein. - Geben Sie die Adresse des Ausgangsrouter an, indem Sie die
to ip-address
Anweisung auf Hierarchieebene[edit protocols mpls label-switched-path]
angeben.
Im folgenden Beispiel ist der RSVP LSP f-to-g als Backup-LSP für geschützte OSPF-Schnittstellen konfiguriert. Der Ausgangsrouter ist mit der IP-Adresse 192.168.1.4 konfiguriert.
[edit] protocols { mpls { label-switched-path f-to-g { to 192.168.1.4; backup; } } }
Beispiel: Konfigurieren schleifenfreier alternativer Routen für OSPF
In diesem Beispiel wird die Verwendung von Verbindungsschutz für Schnittstellen veranschaulicht, die OSPF aktiviert haben.
Wenn Sie den Verbindungsschutz aktivieren, erstellt Junos OS für alle Zielrouten, die eine geschützte Schnittstelle durchqueren, einen alternativen Pfad zum primären nächsten Hop. Verwenden Sie den Verbindungsschutz, wenn Sie davon ausgehen, dass nur eine einzelne Verbindung möglicherweise nicht verfügbar ist, der benachbarte Knoten aber weiterhin über eine andere Schnittstelle verfügbar ist.
Anforderungen
Vor der Konfiguration dieses Beispiels ist keine spezielle Konfiguration über die Geräte initialisierung hinaus erforderlich.
Übersicht
In diesem Beispiel sind sechs OSPF-Nachbarn mit Verbindungsschutz konfiguriert. Dies bewirkt, dass Junos OS für alle Zielrouten, die jede geschützte Schnittstelle durchqueren, einen alternativen Pfad zum primären nächsten Hop erstellt. Der Linkschutz wird hier verwendet, denn selbst wenn eine Verbindung nicht verfügbar ist, wäre der benachbarte Knoten immer noch über eine andere Schnittstelle verfügbar.
Das Beispiel zeigt zwei Topologien. Die eine ist die Standardtopologie und die andere die Sprachtopologie. Weitere Informationen zum Multitopologie-Routing finden Sie im Benutzerhandbuch für Multitopologie-Routing.
Das Beispiel umfasst auch RSVP-LSPs, die als Backup-LSPs für geschützte OSPF-Schnittstellen konfiguriert sind.
Topologie
Abbildung 2 zeigt das Beispielnetzwerk.

Cli Quick Configuration zeigt die Konfiguration für alle Geräte in Abbildung 2.
Der Abschnitt #d89e65__d89e783 beschreibt die Schritte auf Gerät R1.
Konfiguration
CLI-Schnellkonfiguration
Um dieses Beispiel schnell zu konfigurieren, kopieren Sie die folgenden Befehle, fügen Sie sie in eine Textdatei ein, entfernen Sie alle Zeilenumbrüche, ändern Sie alle Details, die für die Netzwerkkonfiguration erforderlich sind, und kopieren Sie dann die Befehle und fügen Sie sie auf Hierarchieebene in die [edit]
CLI ein.
Gerät 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
Gerät 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
Gerät 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
Gerät 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
Gerät 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
Gerät 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
Verfahren
Schritt-für-Schritt-Verfahren
Im folgenden Beispiel müssen Sie in verschiedenen Ebenen in der Konfigurationshierarchie navigieren. Informationen zum Navigieren in der CLI finden Sie unter Verwenden des CLI-Editors im Konfigurationsmodus im CLI-Benutzerhandbuch.
So konfigurieren Sie Gerät R1:
Konfigurieren Sie die Geräteschnittstellen.
[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
Erweitern Sie die Sicherungsabdeckung um RSVP-LSP-Pfade.
[edit protocols rsvp] user@R1# set interface all link-protection user@R1# set interface fxp0.0 disable
Aktivieren Sie MPLS an den Schnittstellen, und konfigurieren Sie Backup-LSPs auf Gerät R3.
[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
Konfigurieren Sie OSPF-Verbindungen, Verbindungsmetriken und Verbindungsschutz.
[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
(Optional) Konfigurieren Sie eine bestimmte OSPF-Topologie für Sprachdatenverkehr.
[edit protocols ospf] user@R1# set topology voice topology-id 32 [edit routing-options topologies family inet] user@R1# set topology voice
Aktivieren Sie LDP an den Schnittstellen.
[edit protocols ldp] user@R1# set interface all user@R1# set interface fxp0.0 disable
(Optional) Konfiguration des Lastausgleichs pro Paket.
[edit policy-options policy-statement pplb] user@R1# set then load-balance per-packet [edit routing-options forwarding-table] user@R1# set export pplb
Konfigurieren Sie den Routing-Protokollprozess (rpd), um eine Bestätigung anzufordern, wenn Sie einen neuen Forwarding Next Hop erstellen.
Wir empfehlen, die
indirect-next-hop-change-acknowledgements
Anweisung bei Verwendung von Schutzmechanismen zu konfigurieren. Dies umfasst MPLS RSVP-Schutz wie Fast Reroute (FRR) sowie Interior Gateway Protocol (IGP) Loop-Free Alternate (LFA) Link- oder Node-Schutz.[edit routing-options forwarding-table] user@R1# set indirect-next-hop-change-acknowledgements
Ergebnisse
Bestätigen Sie Im Konfigurationsmodus Ihre Konfiguration durch Eingabe der show interfaces
Befehle , , show protocols
show policy-options
undshow routing-options
. Wenn die Ausgabe die beabsichtigte Konfiguration nicht anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
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; } }
Wenn Sie die Konfiguration des Geräts durchgeführt haben, geben Sie aus dem Konfigurationsmodus ein commit
.
Überprüfung
Bestätigen Sie, dass die Konfiguration ordnungsgemäß funktioniert.
- Überprüfen der Routen auf Gerät R1
- Überprüfen der Sicherungsabdeckung
- Überprüfen der Backup-LSPs
- Sicherungsnachbarn prüfen
- Überprüfen der SPF-Berechnungen
Überprüfen der Routen auf Gerät R1
Zweck
Überprüfen Sie auf Gerät R1 die OSPF-Routen in der Routingtabelle.
Aktion
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)
Bedeutung
Wie erwartet verfügt Gerät R1 über mehrere potenzielle Routen zu jedem Ziel.
Überprüfen der Sicherungsabdeckung
Zweck
Verwenden Sie auf Gerät R1 den show (ospf | ospf3) backup coverage
Befehl, um die Sicherungsabdeckung für alle Knoten und Präfixe im Netzwerk zu überprüfen.
Aktion
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%
Überprüfen der Backup-LSPs
Zweck
Verwenden Sie auf Gerät R1 den show (ospf | ospf3) backup lsp
Befehl, um LSPs zu überprüfen, die als Backup-Routen für OSPF-Routen bestimmt sind.
Aktion
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
Sicherungsnachbarn prüfen
Zweck
Verwenden Sie auf Gerät R1 den show (ospf | ospf3) backup neighbor
Befehl, um die Nachbarn zu überprüfen, über die direkte nächste Hops für die Backup-Pfade verfügbar sind.
Aktion
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
Überprüfen der SPF-Berechnungen
Zweck
Verwenden Sie auf Gerät R1 den Befehl, um ospf-Berechnungen show (ospf | ospf3) backup spf detail
mit dem kürzesten Pfad zuerst (SPF) für Backup-Pfade zu überprüfen. Um die Ausgabe zu begrenzen, wird die Sprachtopologie im Befehl angegeben.
Aktion
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
Remote-LFA über LDP-Tunnel in OSPF-Netzwerken – Übersicht
In einem OSPF-Netzwerk ist ein Loop Free Alternate (LFA) ein direkt verbundener Nachbar, der vorgefertigte Backup-Pfade zu den Zielen bereitstellt, die über den geschützten Link am Point of Local Repair (PLR) erreichbar sind. Eine Remote-LFA ist nicht direkt mit dem PLR verbunden und bietet vorgefertigte Backup-Pfade mit dynamisch erstellten LDP-Tunneln zum Remote-LFA-Knoten. Der PLR verwendet diesen Remote-LFA-Backup-Pfad, wenn der primäre Link ausfällt. Das Primäre Ziel der Remote-LFA ist es, die Sicherungsabdeckung für die OSPF-Netzwerke zu erhöhen und Schutz für Layer-1-Metro-Ringe bereitzustellen.
LFAs bieten keine vollständige Sicherungsabdeckung für OSPF-Netzwerke. Dies ist ein großer Rückschlag für Metro Ethernet-Netzwerke, die oft als Ringtopologien geprägt sind. Um diesen Rückschlag zu überwinden, werden häufig RsVP-TE-Backup-Tunnel (Resource Reservation Protocol – Traffic Engineering) verwendet, um die Sicherungsabdeckung zu erweitern. Eine Mehrheit der Netzwerkanbieter hat LDP jedoch bereits als MPLS-Tunnel-Einrichtungsprotokoll implementiert und möchte das RSVP-TE-Protokoll nicht nur für die Sicherungsabdeckung implementieren. LDP bringt automatisch Transporttunnel zu allen potenziellen Zielen in einem OSPF-Netzwerk und ist daher das bevorzugte Protokoll. Die für die MPLS-Tunneleinrichtung implementierte vorhandene LDP kann zum Schutz von OSPF-Netzwerken und nachfolgenden LDP-Zielen wiederverwendet werden, wodurch RSVP-TE-Backup-Tunnel für die Backup-Abdeckung überflüssig werden.
Zur Berechnung des Remote-LFA-Backup-Pfads ermittelt das OSPF-Protokoll den Remote-LFA-Knoten auf folgende Weise:
Berechnet den umgekehrt kürzesten Pfad zuerst vom benachbarten Router über die geschützte Verbindung einer PLR. Der umgekehrt kürzeste Pfad verwendet zuerst die Metrik für eingehende Verbindungen anstelle der Ausgangsverbindungsmetrik, um einen benachbarten Knoten zu erreichen.
Das Ergebnis ist eine Reihe von Links und Knoten, die den kürzesten Pfad von jedem Leaf-Knoten zum Stammknoten darstellen.
Berechnet den kürzesten Pfad zuerst (SPF) auf den verbleibenden benachbarten Routern, um die Liste der Knoten zu finden, die erreicht werden können, ohne die Verbindung zu durchlaufen, die geschützt ist.
Das Ergebnis ist ein weiterer Satz von Links und Knoten auf dem kürzesten Pfad vom Stammknoten zu allen Leaf-Knoten.
Ermittelt die gemeinsamen Knoten aus den oben genannten Ergebnissen. Diese Knoten sind die Remote-AKE.
OSPF hört die angekündigten Labels für die LDP-Routen ab. Für jede angekündigte LDP-Route überprüft OSPF, ob es eine LDP enthält, die im nächsten Hop bereitgestellt wird. Wenn die entsprechende OSPF-Route über einen nächsten Backup-Hop verfügt, führt OSPF die Backup-Richtlinie aus und fügt eine zusätzliche Tracking-Route mit dem entsprechenden LDP-Label-Switched Path Next Hop als Backup Next Hop hinzu. Wenn es keine Backup-Next-Hops gibt, baut LDP einen dynamischen LDP-Tunnel zum Remote-LFA auf, und LDP stellt eine gezielte Nachbarschaft zwischen dem Remote-LFA-Knoten und dem PLR-Knoten her. Diese Backup-Route hat zwei LDP-Labels. Das obere Label ist die OSPF-Route, die den Backup-Pfad von der PLR zur Remote-LFA-Route bezeichnet. Das untere Label ist der LDP MPLS Label Switched-Pfad, der die Route für das Erreichen des ultimativen Ziels über die Remote-LFA bezeichnet. Wenn eine LDP-Sitzung ausfällt und ein Remote-Tunnel nicht mehr verfügbar ist, ändert OSPF alle Routen, die diesen Backup-LDP-Tunnel verwendet haben.
Derzeit unterstützt Junos OS nur IPv4-Übertragungs-LSPs. Wenn Sie IPv4-Übertragungs-LSPs für IPv6-IGP-Netzwerke wiederverwenden müssen, fügen Sie dem Labelstack der Tracking-Route ein explizites IPv6-NULL-Label hinzu. Das System konvertiert IPv4-LSP automatisch in einen IPv6-LSP.
LDP kann durch eine automatisch anvisierte Nachbarschaft angreifbar sein, und diese Bedrohungen können mithilfe aller oder einiger der folgenden Mechanismen gemindert werden:
Remote-LFAs, die mehrere Hops entfernt sind, verwenden erweiterte Hallo-Nachrichten, um die Bereitschaft zur Einrichtung einer gezielten LDP-Sitzung anzuzeigen. Eine Remote-LFA kann die Bedrohung durch manipulierte erweiterte Hello-Nachrichten reduzieren, indem sie sie filtert und nur solche akzeptiert, die an Quellen stammen, die durch eine Zugriffs- oder Filterliste zulässig sind.
Mit TCP-MD5 müssen alle automatisch gezielten LDP-Sitzungen in der jeweiligen IGP/LDP-Domäne mithilfe von anwendungsspezifischen Gruppen oder Authentifizierung auf globaler LDP-Ebene authentifiziert werden.
Als zusätzliche Sicherheitsmaßnahme sollten die Reparatur- oder Remote-Tunnelend-Endpunktrouter von einer Reihe von Adressen zugewiesen werden, die von außerhalb der Routingdomäne nicht erreichbar sind.
Siehe auch
Konfigurieren von Remote-LFA-Backup über LDP-Tunnel in einem OSPF-Netzwerk
Das Primäre Ziel eines Remote Loop Free Alternate (LFA) ist es, die Sicherungsabdeckung für OSPF-Routen zu erhöhen und schutz insbesondere für Layer-1-Metro-Ringe bereitzustellen. Die für die MPLS-Tunneleinrichtung implementierte vorhandene LDP kann zum Schutz von OSPF-Netzwerken und nachfolgenden LDP-Zielen wiederverwendet werden. Das OSPF-Protokoll erstellt einen dynamischen LDP-Tunnel, um den Remote-LFA-Knoten vom Ort der lokalen Reparatur (PLR) aus zu erreichen. Der PLR verwendet diesen Remote-LFA-Backup-Pfad, wenn der primäre Link ausfällt.
Bevor Sie LFA über LDP-Tunnel in einem OSPF-Netzwerk konfigurieren, müssen Sie Folgendes tun:
Aktivieren Sie LDP auf der Loopback-Schnittstelle.
Konfigurieren Sie eine Loopback-Schnittstelle, da ohne eine Loopback-Schnittstelle keine gezielte LDP-Nachbarschaft gebildet werden kann. LDP-gezielte Nachbarschaft ist für die Bestimmung der Remote-LFA-Backup-Pfade unerlässlich.
Stellen Sie sicher, dass die Remote-LFA die asymmetrische Erkennung von Remote-Nachbarn ermöglicht, d. h. sie muss regelmäßige, gezielte Hello-Nachrichten an den Router senden, der den Entfernten Nachbarn für die automatische LDP-Nachbarschaft initiiert hat.
Konfigurieren Sie link protection oder node-link protection auf der PLR.
So konfigurieren Sie Remote-LFA-Backups über LDP-Tunnel in einem OSPF-Netzwerk:
Siehe auch
Beispiel: Konfigurieren von Remote-LFA über LDP-Tunnel in OSPF-Netzwerken
In einem OSPF-Netzwerk ist eine Loop Free Alternate (LFA) ein direkt verbundener Nachbar, der vorgefertigte Backup-Pfade zu den Zielen bereitstellt, die über den geschützten Link am Point of Local Repair (PLR) erreichbar sind. Eine Remote-LFA ist nicht direkt mit dem PLR verbunden und bietet vorgefertigte Backup-Pfade mit dynamisch erstellten LDP-Tunneln zum Remote-LFA-Knoten. Der PLR verwendet diesen Remote-LFA-Backup-Pfad, wenn der primäre Link ausfällt. Das Primäre Ziel der Remote-LFA ist es, die Sicherungsabdeckung für die OSPF-Netzwerke zu erhöhen und Schutz für Layer-1-Metro-Ringe bereitzustellen. Dieses Beispiel zeigt, wie Sie Remote-LFA für LDP-Tunnel in einem OSPF-Netzwerk zur Erweiterung des Backup-Schutzes konfigurieren.
Anforderungen
In diesem Beispiel werden die folgenden Hardware- und Softwarekomponenten verwendet:
-
Neun Router der MX-Serie mit OSPF-Protokoll und LDP an den angeschlossenen Schnittstellen.
-
Junos OS Version 15.1 oder höher, die auf allen Geräten ausgeführt wird.
Bevor Sie LFA-Remote-Über-LDP-Tunnel in einem OSPF-Netzwerk konfigurieren, achten Sie auf Folgendes:
-
LDP ist auf der Loopback-Schnittstelle aktiviert. Ohne eine Loopback-Schnittstelle kann eine gezielte LDP-Nachbarschaft nicht gebildet werden. Remote-LFA kann ohne gezielte Nachbarschaft von LDP nicht konfiguriert werden.
-
Remote-LFA muss die asymmetrische Erkennung von Remote-Nachbarn ermöglichen, das heißt, es muss regelmäßige, gezielte Hellos an den Router senden, der den Remote-Nachbarn für automatische LDP-Nachbarschaft initiiert hat.
-
Verbindungsschutz oder Knotenverbindungsschutz müssen am Point of Local Repair (PLR) konfiguriert werden.
Übersicht
Das Beispiel umfasst neun Router in einer Ringtopologie. Konfigurieren Sie das OSPF-Protokoll auf den direkt angeschlossenen Schnittstellen. Gerät R6 ist die PLR. In diesem Beispiel wird überprüft, ob Junos OS die Routing-Tabelle von Gerät R6 mit LDP-Next-Hop-Routen als Backup-Route aktualisiert.
Topologie
In der Topologie zeigt Abbildung 3 , dass die Remote-LFA über LDP-Tunnel in OSPF-Netzwerken auf Gerät R6 konfiguriert ist.

Konfiguration
CLI-Schnellkonfiguration
Um dieses Beispiel schnell zu konfigurieren, kopieren Sie die folgenden Befehle, fügen Sie sie in eine Textdatei ein, entfernen Sie alle Zeilenumbrüche, ändern Sie alle Details, die für die Netzwerkkonfiguration erforderlich sind, kopieren Und fügen Sie die Befehle auf Hierarchieebene in die [edit] CLI ein und geben Sie dann aus dem Konfigurationsmodus ein 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
Konfigurieren von Gerät R6
Schritt-für-Schritt-Verfahren
Im folgenden Beispiel müssen Sie in verschiedenen Ebenen in der Konfigurationshierarchie navigieren. Informationen zum Navigieren in der CLI finden Sie unter Verwenden des CLI-Editors im Konfigurationsmodus im CLI-Benutzerhandbuch.
So konfigurieren Sie Gerät R6:
-
Konfigurieren Sie die Schnittstellen.
[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
-
Weisen Sie dem Gerät die Loopback-Adressen zu.
[edit lo0 unit 0 family] user@R6# set address 10.7.7.7/32 user@R6# set mpls
-
Konfigurieren Sie die Router-ID. Wenden Sie die Richtlinie mit der Exportanweisung auf die Weiterleitungstabelle des lokalen Routers an.
[edit routing-options] user@R6# set router-id 10.7.7.7 user@R6# set forwarding-table export per-packet
-
Aktivieren Sie ein Remote-LFA-Backup, das den Backup Next Hop mithilfe des dynamischen LDP Label Switched Path berechnet.
[edit protocols ospf] user@R6# set topology default backup-spf-options remote-backup-calculation user@R6# set backup-spf-options remote-backup-calculation
-
Konfigurieren Sie das Traffic-Engineering und den Verbindungsschutz für die Schnittstellen im OSPF-Bereich.
[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
-
Geben Sie ein Zeitintervall an, für das die angestrebten LDP-Sitzungen beibehalten werden, wenn die Remote-LFA ausfällt, und geben Sie eine maximale Anzahl automatisch anvisierter LDP-Sitzungen an, um die Verwendung von Speicher zu optimieren.
[edit protocols ldp] user@R6# set auto-targeted-session teardown-delay 20 user@R6# set auto-targeted-session maximum-sessions 60
-
Konfigurieren Sie die LDP-Protokolle an den Schnittstellen.
[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
-
Konfigurieren Sie die Richtlinienoptionen, um den Lastausgleich der Pro-Paket-Richtlinie für die Routing-Richtlinie für Richtlinienanweisungen zu schaffen.
[edit policy-options policy-statement] user@R6# set per-packet then load-balance per-packet user@R6# set per-packet then accept
Ergebnisse
Bestätigen Sie Im Konfigurationsmodus Ihre Konfiguration durch Eingabe der show interfacesBefehle , , show protocolsshow policy-optionsundshow routing-options. Wenn die Ausgabe die beabsichtigte Konfiguration nicht anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
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; }
Wenn Sie mit der Konfiguration des Geräts fertig sind, geben Sie aus dem Konfigurationsmodus ein commit
.
Überprüfung
Bestätigen Sie, dass die Konfiguration ordnungsgemäß funktioniert.
- Überprüfen der Routen
- Überprüfen der LDP-Routen
- Überprüfen der OSPF-Routen
- Überprüfen des Designated Backup Path Node
- Überprüfen der Backup Neighbors
Überprüfen der Routen
Zweck
Vergewissern Sie sich, dass die erwarteten Routen erlernt werden.
Aktion
Führen Sie auf Gerät R6 im Betriebsmodus den show route 10.6.6.6/24
Befehl aus, um die Routen in der Routingtabelle anzuzeigen.
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
Bedeutung
Die Ausgabe zeigt alle Routen in der Routing-Tabelle von Gerät R6.
Überprüfen der LDP-Routen
Zweck
Überprüfen Sie die automatisch anvisierten LDP-Routen.
Aktion
Geben Sie im Betriebsmodus den show ldp session auto-targeted detail
Befehl ein.
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
Überprüfen der OSPF-Routen
Zweck
Alle LDP-Backup-Routen in der OSPF-Routingtabelle von Gerät R6 anzeigen.
Aktion
Führen Sie auf Gerät R6 im Betriebsmodus den show ospf route
Befehl aus, um die Routen in der OSPF-Routingtabelle anzuzeigen.
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
Bedeutung
Die Ausgabe zeigt alle LDP-Backup-Routen in der OSPF-Routingtabelle von Gerät R6.
Überprüfen des Designated Backup Path Node
Zweck
Zeigen Sie den remote LFA Next Hop an, der für ein bestimmtes Ziel bestimmt wurde.
Aktion
Geben Sie im Betriebsmodus den show ospf backup spf results
Befehl ein.
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
Bedeutung
Die Ausgabe gibt an, ob eine bestimmte Schnittstelle oder ein bestimmter Knoten als Remote-Backup-Pfad ausgewiesen wurde und warum.
Überprüfen der Backup Neighbors
Zweck
Die Backup-Nachbarn für das Gerät R6 anzeigen
Aktion
Geben Sie im Betriebsmodus den show ospf backup neighbor
Befehl ein.
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
Bedeutung
Die Ausgabe zeigt die Backup-Nachbarn an, die für Bereich 0.0.0.0 verfügbar sind.