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 Freie Alternative für OSPF
In bestimmten Topologien und Verwendungsszenarien, wenn mehrere Ziele dasselbe Präfix haben und es keine praktikablen LFA für den besten Prefix-Originator gibt, während ein nicht bester Prefix-Originator eine hat. Per Prefix LFA ist eine Technologie, bei der die LFA zu einem nicht besten Prefix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um eine lokale Reparatur durchzuführen. 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 neben dem Hop verwendet werden kann, um einen lokalen Reparaturpfad bereitzustellen, damit der Datenverkehr bei Ausfällen im primären nächsten Hop (Knoten oder Link) vorübergehend fließen kann. Dazu ist die Grundvoraussetzung, dass der ausgewählte Backup-Neighbor 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) erstellt.
Die folgende Topologie erläutert den Bereitstellungsfall, bei dem die LFA-Funktion pro Prefix anwendbar ist.
ABR1 und ABR2 sind Area Boundary Router (ABRs), dual zu einem IPv6-Core-Netzwerk, das die Zusammenfassung LSA für das Präfix 10.0.1.0/24 mit einer Metrik von 10 ankündigt. Aus Sicht des PE-Routers ist ABR1 der beste Präfix-Originator für 10.0.1.0/24. In diesem Fall ist P2 keine gültige LFA für ABR1, da die Gleichen Kosten multi Paths (ECMP) {P2, PE, P1, ABR1} und {P2, ABR2, ABR1}, die dazu führen, dass ein Teil des Datenverkehrs durch das Router-PE zurückgeschleifet wird (keine gültige LFA). Für ABR2, das auch ein Prefix-Originator für 10.0.1.0/24 ist, ist P2 jedoch eine gültige LFA, da der einzige Pfad {P2, ABR2} ist.
Konfigurieren von LFA per Prefix für OSPF
Pro Prefix LFA ist ein Mechanismus, mit dem LFA zu einem nicht besten Präfix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um eine lokale Reparatur durchzuführen. In solchen Fällen kann LFA pro Präfix verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
Loop Free Alternates (LFA) ist ein Mechanismus, bei dem ein Neighbor als Backup des nächsten Hops verwendet werden kann, um einen lokalen Reparaturpfad bereitzustellen, damit der Datenverkehr bei Ausfällen im primären nächsten Hop (Knoten oder Link) vorübergehend fließen kann. Dazu ist die Grundvoraussetzung, dass der ausgewählte Backup-Neighbor einen schleifenfreien Pfad in Bezug auf den primären nächsten Hop zu einem Ziel bereitstellt, das eine Reihe von IGP-Präfixen ursprungst. In bestimmten Topologien und Verwendungsszenarien kann es möglich sein, dass mehrere Ziele dasselbe Präfix stammen und es keine praktikablen LFA für den besten Prefix-Originator gibt, während ein nicht bester Prefix-Originator eines hat. Pro Prefix LFA ist ein Mechanismus, mit dem LFA zu einem nicht besten Präfix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um eine lokale Reparatur durchzuführen. In solchen Fällen kann LFA pro Präfix verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
So konfigurieren Sie die LFA pro Präfix für eine OSPF-Schnittstelle:
per-prefix-calculation
Konfigurationsaussage auf [edit protocols (ospf | ospf3) backup-spf-options]
Hierarchieebene.
Schleifenfreie alternative Routen für OSPF – Übersicht
Unterstützung für OSPF-schleifenfreie alternative Routen fügt im Wesentlichen die 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 vornimmt und den Backup-Pfad implementiert, wenn der Link für einen primären nächsten Hop für eine bestimmte Route nicht mehr verfügbar ist. Mit einer lokalen Reparatur kann die Packet Forwarding Engine einen Pfadfehler beheben, bevor sie vorkompilierte Pfade von der Routing-Engine empfängt. Durch lokale Reparaturen wird der Zeitaufwand für die Umleitung des Datenverkehrs auf weniger als 50 Millisekunden reduziert. Im Gegensatz dazu kann die globale Reparatur bis zu 800 Millisekunden dauern, um eine neue Route zu berechnen. Die lokale Reparatur ermöglicht es, den Datenverkehr weiterhin über einen Backup-Pfad zu leiten, bis die globale Reparatur eine neue Route berechnen kann.
Ein schleifenfreier Pfad ist einer, der den Datenverkehr nicht zurück durch das Routinggerät leitet, um ein bestimmtes Ziel zu erreichen. Das ist ein Nachbar, dessen kürzester Pfad zuerst zum Ziel das Routing-Gerät durchquert, das nicht als Backup-Route zu diesem Ziel verwendet wird. Um schleifenfreie alternative Pfade für OSPF-Routen zu bestimmen, führt Junos OS für jeden One-Hop-Nachbarn SPF-Berechnungen (Shortest Path-First) durch. Sie können die Unterstützung für alternative schleifenfreie Routen auf jeder OSPF-Schnittstelle aktivieren. Da es üblich ist, LDP auf 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 FÜR OSPF konfiguriert ist, können Sie den traceroute
aktiven Pfad zum primären nächsten Hop zurückverfolgen.
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 beliebigen Routing-Gerät. Sie können die Backup-Abdeckung um RSVP-LSP-Pfade erweitern.
Junos OS bietet drei Mechanismen für Routing-Redundanz für OSPF über alternative schleifenfreie Routen:
Link-Schutz: Bietet Schutz für den Datenverkehr pro Verbindung. Verwenden Sie den Linkschutz, wenn Sie davon ausgehen, dass nur eine einzelne Verbindung möglicherweise nicht verfügbar ist, der benachbarte Knoten auf dem primären Pfad aber weiterhin über eine andere Schnittstelle verfügbar wäre.
Node-Link-Schutz: Stellt einen alternativen Pfad über ein anderes Routing-Gerät zusammen. Nutzen 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.
Loop-Free Alternates per Prefix (LFAs): Es ist eine Technologie, mit der ein Nachbar als Backup neben dem Hop verwendet werden kann, um einen lokalen Reparaturpfad bereitzustellen, damit der Datenverkehr bei Ausfällen im primären nächsten Hop (Knoten oder Link) vorübergehend fließen kann. Dazu ist die Grundvoraussetzung, dass der ausgewählte Backup-Neighbor 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) erstellt.
In bestimmten Topologien und Verwendungsszenarien kann es möglich sein, dass mehrere Ziele dasselbe Präfix stammen und es keine praktikablen LFA für den besten Prefix-Originator gibt, während ein nicht bester Prefix-Originator eine lebensfähige LFA hat. Per Prefix LFA ist ein Mechanismus, mit dem LFA zu einem nicht besten Prefix-Originator anstelle der LFA zum besten Prefix-Originator verwendet werden kann, um eine lokale Reparatur durchzuführen. In solchen Fällen kann LFA pro Präfix verwendet werden, um die lokale Reparaturabdeckung für das OSPF-Protokoll zu erhöhen.
Wenn Sie den Link- oder Node-Link-Schutz 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 des Link-Schutzes für OSPF
Sie können den Linkschutz für jede Schnittstelle konfigurieren, für die OSPF aktiviert ist. Wenn Sie den Linkschutz aktivieren, erstellt Junos OS einen alternativen Pfad zum primären nächsten Hop für alle Zielrouten, die eine geschützte Schnittstelle passieren. Verwenden Sie den Linkschutz, 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.
Linkschutz wird unterstützt in folgenden Bereichen:
OSPFv2- und OSPFv3-Schnittstellen
OSPFv3-Unicast-Bereiche
OSPFv2-Unicast-Topologien, ausgenommen Multicast-Topologien
Alle Routing-Instanzen, die von OSPFv2 und OSPFv3 unterstützt werden
Logische Systeme
So konfigurieren Sie den Linkschutz 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 außerdem eine paketspezifische Lastausgleichsrichtlinie konfigurieren, um sicherzustellen, dass der Routingprotokollprozess alle nächsten Hops für eine bestimmte Route in der Routing-Tabelle installiert.
Im folgenden Beispiel ist die OSPF-Schnittstelle so-0/0/0.0 im Bereich 0.0.0 für den Linkschutz konfiguriert. Wenn ein Link für eine Zielroute, die diese Schnittstelle durchquert, ausfällt, erstellt Junos OS einen schleifenfreien Backup-Pfad über eine andere Schnittstelle auf dem benachbarten Knoten, wodurch die Verbindung vermieden wird, die nicht mehr verfügbar ist.
[edit] protocols { ospf { area 0.0.0.0 { interface so-0/0/0.0 { link-protection; } } } }
Siehe auch
Konfiguration des Node-Link-Schutzes für OSPF
Sie können den Node-Link-Schutz auf jeder Schnittstelle konfigurieren, für die OSPF aktiviert ist. Der Node-Link-Schutz schafft einen alternativen Pfad durch ein anderes Routing-Gerät insgesamt für alle Zielrouten, die eine geschützte Schnittstelle passieren. Der Node-Link-Schutz geht davon aus, dass das gesamte Routing-Gerät oder Knoten ausgefallen ist. Junos OS berechnet daher einen Backup-Pfad, der das primäre Next-Hop-Routing-Gerät vermeidet.
Node-Link-Schutz wird unterstützt in folgenden Bereichen:
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.
Außerdem müssen Sie eine paketspezifische Load Balancing-Richtlinie 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 für den Node-Link-Schutz konfiguriert. Wenn ein Link für eine Zielroute, die diese Schnittstelle durchquert, ausfällt, erstellt Junos OS einen schleifenfreien Backup-Pfad über ein anderes Routing-Gerät insgesamt, 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; } } } }
Konfigurieren des Node-to-Link-Schutzes für OSPF
Sie können den Linkschutz für jede Schnittstelle konfigurieren, für die OSPF aktiviert ist. Wenn Sie den Linkschutz aktivieren, erstellt Junos OS einen alternativen Pfad zum primären nächsten Hop für alle Zielrouten, die eine geschützte Schnittstelle passieren. Verwenden Sie den Linkschutz, 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 Node-Link-Schutz auf jeder Schnittstelle konfigurieren, für die OSPF aktiviert ist. Der Node-Link-Schutz schafft einen alternativen Pfad durch ein anderes Routing-Gerät insgesamt für alle Zielrouten, die eine geschützte Schnittstelle passieren. Der Node-Link-Schutz geht davon aus, dass das gesamte Routing-Gerät oder Knoten ausgefallen ist. Junos OS berechnet daher einen Backup-Pfad, der das primäre Next-Hop-Routing-Gerät vermeidet.
In bestimmten Topologien kann es wünschenswert sein, einen lokalen Reparaturschutz für Knotenausfälle im primären next Hop zu haben, 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 Linkschutz weniger streng ist als der Knotenschutz, kann es möglich sein, dass der Linkschutz vorhanden ist und für diese Ziele (und damit auch die präfixen, die von diesem netzwerk stammen) den gleichen Schutz bietet.
So konfigurieren Sie node to link protection Fallback 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 gelten alle OSPF-Schnittstellen, die zur Standardinstanz oder zu einer bestimmten Routing-Instanz gehören, als Backup-Schnittstelle für Schnittstellen, die mit Link- oder Node-Link-Schutz konfiguriert sind. Sie können angeben, dass jede OSPF-Schnittstelle von der Funktion als Backup-Schnittstelle zu geschützten 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 so konfiguriert, dass der Backup-Datenverkehr für Datenverkehr, der für eine geschützte Schnittstelle bestimmt ist, verboten wird. Das bedeutet, dass, wenn ein benachbarter Next-Hop-Pfad oder Knoten für eine geschützte Schnittstelle ausfällt, die Schnittstelle so-0/0/0.0 nicht zur Übertragung des Datenverkehrs an einen Backup-Pfad verwendet werden kann.
[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 den Link- oder Node-Link-Schutz konfiguriert ist, berechnet Junos OS standardmäßig die Backup-Next-Hops für alle Topologien in einer OSPF-Instanz. Sie können die folgenden Optionen für backup short-path-first (SPF) konfigurieren, um das Standardverhalten zu überschreiben:
Deaktivieren Sie die Berechnung der Backup-Next Hops für eine OSPF-Instanz oder eine bestimmte Topologie in einer Instanz.
Verhindern sie die Installation von Backup-Next-Hops in der Routing-Tabelle oder der Weiterleitungstabelle für eine OSPF-Instanz oder eine bestimmte Topologie in einer Instanz.
Beschränken Sie die Berechnung der 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. Dadurch wird die Berechnung der Backup-Next-Hops für diese OSPF-Instanz oder Topologie verhindert.
So deaktivieren Sie die Berechnung der Backup-Next Hops für eine OSPF-Instanz oder -Topologie:
Fügen Sie die
disable
Anweisung auf der[edit protocols (ospf | ospf3) backup-spf-options]
Hierarchie- oder[edit protocols ospf backup-spf-options topology topology-name]
Hierarchieebene ein.
Im folgenden Beispiel ist die Berechnung der 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 einer bestimmten Topologie in einer OSPF-Instanz verhindert wird. Der SPF-Algorithmus berechnet weiterhin backup next Hops, aber sie sind nicht installiert.
So verhindern Sie, dass das Routinggerät Backup-Next Hops in der Routing- oder Weiterleitungstabelle installiert:
Fügen Sie die
no-install
Anweisung auf der[edit protocols (ospf | ospf3) backup-spf-options]
Hierarchie- oder Hierarchieebene[edit protocols ospf topology topology-name]
ein.
Im folgenden Beispiel werden backup Next Hops für die OSPF-Topologie-Voice nicht in der Routing- oder Weiterleitungstabelle installiert. Alle berechneten Backup-Next-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 angeben, 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 Downstream-Pfad muss die Entfernung vom Backup-Nachbarn zum Ziel kleiner sein als die Entfernung vom berechnenden Routinggerät zum Ziel. Die Verwendung von Downstream-Pfaden als schleifenfreie alternative Pfade für geschützte Schnittstellen stellt sicher, dass diese Pfade nicht zu Microloops führen. Es kann jedoch sein, dass Sie eine weniger als optimale Backup-Abdeckung für Ihr Netzwerk haben.
So beschränken Sie die Berechnung der Backup-Next Hops auf Downstream-Pfade:
Fügen Sie die
downstream-paths-only
Anweisung auf der[edit protocols (ospf | ospf3) backup-spf-options]
Hierarchie- oder[edit protocols ospf backup-spf-options topology topology-name]
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 für den Link- oder Node-Link-Schutz kann die Berechnung von Backup-Pfaden für One-Hop-Nachbarn zu einer weniger als 100-prozentigen 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 Ausgangsrouters angeben.
RSVP-LSPs können nur als Backup-Pfade 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 Ausgangsrouters an, indem Sie die
to ip-address
Anweisung auf Hierarchieebene[edit protocols mpls label-switched-path]
angeben.
Im folgenden Beispiel wird der RSVP-LSP f-to-g als Backup-LSP für geschützte OSPF-Schnittstellen konfiguriert. Der Ausgangsrouter wird 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 des Link-Schutzes für Schnittstellen veranschaulicht, die OSPF aktiviert haben.
Wenn Sie den Linkschutz aktivieren, erstellt Junos OS einen alternativen Pfad zum primären nächsten Hop für alle Zielrouten, die eine geschützte Schnittstelle passieren. Verwenden Sie den Linkschutz, 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 erforderlich, die über die Geräteinitialisierung hinausgeht.
Übersicht
In diesem Beispiel sind sechs OSPF-Nachbarn mit Linkschutz konfiguriert. Dadurch erstellt Junos OS einen alternativen Pfad zum primären nächsten Hop für alle Zielrouten, die jede geschützte Schnittstelle passieren. Der Linkschutz wird hier verwendet, denn selbst wenn eine Verbindung ausfällt, wäre der benachbarte Knoten immer noch über eine andere Schnittstelle verfügbar.
Das Beispiel zeigt zwei Topologien. Eine ist die Standardtopologie und die andere ist die Sprachtopologie. Weitere Informationen zum Multitopology-Routing finden Sie im Benutzerhandbuch zu Multitopology-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.
Die CLI-Schnellkonfiguration zeigt die Konfiguration für alle Geräte in Abbildung 2.
Im Abschnitt #d89e65__d89e783 werden die Schritte auf Gerät R1 beschrieben.
Konfiguration
CLI-Schnellkonfiguration
Um dieses Beispiel schnell zu konfigurieren, kopieren Sie die folgenden Befehle, fügen sie in eine Textdatei ein, entfernen alle Zeilenumbrüche, ändern alle erforderlichen Details, um mit Ihrer Netzwerkkonfiguration zu übereinstimmen, und kopieren Sie dann die Befehle und fügen 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 auf 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 Backup-Abdeckung um RSVP-LSP-Pfade.
[edit protocols rsvp] user@R1# set interface all link-protection user@R1# set interface fxp0.0 disable
Aktivieren Sie MPLS auf 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, Linkmetriken und Linkschutz.
[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 auf den Schnittstellen.
[edit protocols ldp] user@R1# set interface all user@R1# set interface fxp0.0 disable
(Optional) Konfigurieren Sie Load Balancing 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 Weiterleitungs-Next Hop erstellen.
Wir empfehlen, die
indirect-next-hop-change-acknowledgements
Anweisung zu konfigurieren, wenn Schutzmechanismen verwendet werden. Dazu gehören MPLS-RSVP-Schutz wie Fast Reroute (FRR) sowie Interior Gateway Protocol (IGP) Loop-Free Alternate Link (LFA) oder Node-Schutz.[edit routing-options forwarding-table] user@R1# set indirect-next-hop-change-acknowledgements
Ergebnisse
Bestätigen Sie Ihre Konfiguration im Konfigurationsmodus, indem Sie die show interfaces
Befehle , show protocols
, show policy-options
und show routing-options
eingeben. Wenn die gewünschte Konfiguration in der Ausgabe nicht angezeigt wird, 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 mit der Konfiguration des Geräts fertig sind, geben Sie im Konfigurationsmodus ein commit
.
Überprüfung
Bestätigen Sie, dass die Konfiguration ordnungsgemäß funktioniert.
- Überprüfen der Routen auf Gerät R1
- Überprüfen der Backup-Abdeckung
- Überprüfen der Backup-LSPs
- Überprüfen der Backup-Nachbarn
- Überprüfung der SPF-Berechnungen
Überprüfen der Routen auf Gerät R1
Zweck
Überprüfen Sie auf Gerät R1 die OSPF-Routen in der Routing-Tabelle.
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 Backup-Abdeckung
Zweck
Verwenden Sie auf Gerät R1 den show (ospf | ospf3) backup coverage
Befehl, um die Für alle Knoten und Präfixe im Netzwerk verfügbare Backup-Abdeckung 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 den show (ospf | ospf3) backup lsp
Befehl auf Gerät R1, 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
Überprüfen der Backup-Nachbarn
Zweck
Verwenden Sie den show (ospf | ospf3) backup neighbor
Befehl auf Gerät R1, um die Nachbarn zu überprüfen, über die direkte Next-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üfung der SPF-Berechnungen
Zweck
Verwenden Sie den Befehl auf Gerät R1, um die show (ospf | ospf3) backup spf detail
SPF-Berechnungen (OsPF Shortest Path-First) auf 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 vorberechnene 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 stellt vorkompilierte Backup-Pfade mit dynamisch erstellten LDP-Tunneln zum Remote-LFA-Knoten bereit. Der PLR verwendet diesen Remote-LFA-Backup-Pfad, wenn die primäre Verbindung ausfällt. Das Hauptziel der Remote-LFA ist es, die Backup-Abdeckung für die OSPF-Netzwerke zu erhöhen und Schutz für Layer-1-Metro-Ringe zu bieten.
LFAs bieten keine vollständige Backup-Abdeckung für OSPF-Netzwerke. Dies ist ein großer Rückschlag für Metro-Ethernet-Netzwerke, die oft als Ringtopologien geformt sind. Um diesen Rückschlag zu überwinden, werden häufig RsVP-TE-Backup-Tunnel (Resource Reservation Protocol – Traffic Engineering) verwendet, um die Backup-Abdeckung zu erweitern. Die Mehrheit der Netzwerkanbieter hat LDP als MPLS-Tunnel-Setup-Protokoll bereits implementiert und möchte das RSVP-TE-Protokoll nicht nur für die Backup-Abdeckung implementieren. LDP führt automatisch Transporttunnel zu allen potenziellen Zielen in einem OSPF-Netzwerk ein und ist daher das bevorzugte Protokoll. Die für die Einrichtung des MPLS-Tunnels implementierte 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.
Um den Remote-LFA-Backup-Pfad zu berechnen, bestimmt das OSPF-Protokoll den Remote-LFA-Knoten wie folgt:
Berechnet zuerst den umgekehrt kürzesten Pfad vom benachbarten Router über die geschützte Verbindung eines PLR. Der umgekehrte kürzeste Pfad verwendet zunächst die Kennzahl für eingehende Verbindungen anstelle der Metrik für ausgehende Verbindungen, um einen benachbarten Knoten zu erreichen.
Das Ergebnis ist eine Reihe von Verbindungen und Knoten, der kürzeste Pfad von jedem Leaf-Knoten zum Root-Knoten.
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 geschützte Verbindung zu passieren.
Das Ergebnis ist eine weitere Reihe von Verbindungen und Knoten auf dem kürzesten Pfad vom Stammknoten zu allen Leaf-Knoten.
Bestimmt die gemeinsamen Knoten aus den oben genannten Ergebnissen. Diese Knoten sind die Remote-LFAs.
OSPF lauscht auf die angekündigten Label für die LDP-Routen. Für jede angekündigte LDP-Route prüft OSPF, ob sie eine LDP enthält, die als nächster Hop bereitgestellt wird. Wenn die entsprechende OSPF-Route einen Backup-Next Hop hat, 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, erstellt LDP einen dynamischen LDP-Tunnel zur Remote-LFA, und LDP stellt eine gezielte Nachbarschaft zwischen dem Entfernt-LFA-Knoten und dem PLR-Knoten her. Diese Backup-Route hat zwei LDP-Label. Das obere Label ist die OSPF-Route, die den Backup-Pfad vom 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-Transport-LSPs. Wenn Sie IPv4-Transport-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 den IPv4-LSP automatisch in einen IPv6-LSP.
LDP kann durch eine automatisch gezielte Nachbarschaft anfällig sein, und diese Bedrohungen können mit allen oder einigen der folgenden Mechanismen abgewehrt werden:
Remote-LFAs, die mehrere Hops entfernt sind, verwenden erweiterte Hallo-Nachrichten, um die Bereitschaft zu zeigen, eine gezielte LDP-Sitzung einzurichten. Eine Remote-LFA kann die Bedrohung von spoofed Extended Hello-Nachrichten reduzieren, indem sie sie filtert und nur diejenigen akzeptiert, die aus Quellen stammen, die von einer Zugriffs- oder Filterliste zugelassen sind.
Es besteht die Notwendigkeit, alle automatisch zielgerichteten LDP-Sitzungen in der angegebenen IGP/LDP-Domäne mithilfe von Anwendungsgruppen oder LDP-Authentifizierung auf globaler LDP-Ebene mit TCP-MD5 zu authentifizieren.
Als zusätzliche Sicherheitsmaßnahme sollte den Reparatur- oder Remote-Tunnel-Endpunktroutern eine Reihe von Adressen zugewiesen werden, die von außerhalb der Routing-Domäne nicht erreichbar sind.
Siehe auch
Konfigurieren von Remote-LFA-Backup über LDP-Tunnel in einem OSPF-Netzwerk
Das hauptziel eines Remote Loop Free Alternate (LFA) ist es, die Backup-Abdeckung für OSPF-Routen zu erhöhen und Schutz insbesondere für Layer-1-Metro-Ringe zu bieten. Die für die Einrichtung des MPLS-Tunnels implementierten LDP können 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 Point of Local Repair (PLR) aus zu erreichen. Der PLR verwendet diesen Remote-LFA-Backup-Pfad, wenn die primäre Verbindung ausfällt.
Bevor Sie Remote-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 Loopback-Schnittstelle keine auf LDP ausgerichtete Adjacency gebildet werden kann. LDP-gezielte Adjacency ist für die Bestimmung von Remote-LFA-Backup-Pfaden unerlässlich.
Stellen Sie sicher, dass Remote-LFA eine asymmetrische Remote-Neighbor-Erkennung ermöglicht– das heißt, es muss regelmäßig gezielte Hallo-Nachrichten an den Router senden, der den Remote-Nachbarn für die automatische LDP-gezielte Adjacency initiiert hat.
Konfigurieren Sie den Link- oder Node-Link-Schutz auf dem PLR.
So konfigurieren Sie Remote-LFA-Backup ü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 ein loop free alternate (LFA) ein direkt verbundener Nachbar, der vorberechnene 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 stellt vorkompilierte Backup-Pfade mit dynamisch erstellten LDP-Tunneln zum Remote-LFA-Knoten bereit. Der PLR verwendet diesen Remote-LFA-Backup-Pfad, wenn die primäre Verbindung ausfällt. Das Hauptziel der Remote-LFA ist es, die Backup-Abdeckung für die OSPF-Netzwerke zu erhöhen und Schutz für Layer-1-Metro-Ringe zu bieten. Dieses Beispiel zeigt, wie Sie Remote-LFA für LDP-Tunnel in einem OSPF-Netzwerk konfigurieren, um den Backup-Schutz zu erweitern.
Anforderungen
In diesem Beispiel werden die folgenden Hardware- und Softwarekomponenten verwendet:
-
Neun Router der MX-Serie mit OSPF-Protokoll und LDP-Aktiviert an den angeschlossenen Schnittstellen.
-
Junos OS Version 15.1 oder höher, die auf allen Geräten ausgeführt wird.
Stellen Sie vor der Konfiguration von Remote-LFA über LDP-Tunnel in einem OSPF-Netzwerk folgendes sicher:
-
LDP ist auf der Loopback-Schnittstelle aktiviert. Ohne Loopback-Schnittstelle kann keine LDP-gezielte Adjacency gebildet werden. Remote-LFA kann ohne LDP-gezielte Adjacency nicht konfiguriert werden.
-
Remote-LFA muss eine asymmetrische Remote-Neighbor-Erkennung ermöglichen, das heißt, sie muss regelmäßig gezielte Hallos an den Router senden, der den Remote-Nachbarn für die automatische LDP-gezielte Adjacency initiiert hat.
-
Der Verbindungsschutz oder der Node-Link-Schutz 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 verbundenen Schnittstellen. Gerät R6 ist der 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 in eine Textdatei ein, entfernen alle Zeilenumbrüche, ändern alle erforderlichen Details, um mit Ihrer Netzwerkkonfiguration zu übereinstimmen, kopieren Sie die Befehle, fügen Sie sie 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 auf 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 Export-Anweisung 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 Remote-LFA-Backup, das das Backup des nächsten Hops 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 Link-Schutz 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 ausgerichteter LDP-Sitzungen an, um die Speichernutzung 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 auf 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 für die Paket-Routing-Richtlinie der Richtlinienanweisung zu erstellen.
[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 Ihre Konfiguration im Konfigurationsmodus, indem Sie die show interfacesBefehle , show protocols, show policy-optionsund show routing-options eingeben. Wenn die gewünschte Konfiguration in der Ausgabe nicht angezeigt wird, 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 im Konfigurationsmodus ein commit
.
Überprüfung
Bestätigen Sie, dass die Konfiguration ordnungsgemäß funktioniert.
- Verifizieren der Routen
- Überprüfung der LDP-Routen
- Überprüfen der OSPF-Routen
- Überprüfung des designierten Backup-Pfadknotens
- Überprüfung der Backup-Nachbarn
Verifizieren der Routen
Zweck
Stellen Sie sicher, dass die erwarteten Routen gelernt wurden.
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 Routing-Tabelle 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üfung der LDP-Routen
Zweck
Überprüfen Sie die automatisch zielgerichteten 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
Zeigen Sie alle LDP-Backup-Routen in der OSPF-Routingtabelle des Geräts R6 an.
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üfung des designierten Backup-Pfadknotens
Zweck
Zeigen Sie den Remote-LFA-Nächsten Hop an, der für ein bestimmtes Ziel ermittelt 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 zeigt an, ob eine bestimmte Schnittstelle oder ein bestimmter Knoten als Remote-Backup-Pfad definiert wurde und warum.
Überprüfung der Backup-Nachbarn
Zweck
Zeigen Sie die Backup-Nachbarn für das Gerät R6 an
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 den Bereich 0.0.0.0 verfügbar sind.