AUF DIESER SEITE
Beispiel: Konfigurieren von Anycast- und Präfix-Segmenten in SPRING für IS-IS zur Erhöhung der Netzwerkgeschwindigkeit
In diesem Beispiel wird gezeigt, wie Präfixsegmente, globale Blöcke für das Segment-Routing (SRGBs), Haltezeiten für benachbarte Segmente und explizite NULL-Flags für Präfixsegmente im Quellpaket-Routing im Netzwerk (SPRING) oder Segment-Routing (SR) konfiguriert werden. Diese Konfiguration trägt dazu bei, das Netzwerk zu vereinfachen und dadurch die Geschwindigkeit des Netzwerks zu erhöhen.
Anforderungen
In diesem Beispiel werden die folgenden Hardware- und Softwarekomponenten verwendet:
Acht Router der MX-Serie.
Junos OS Version 17.2 oder höher läuft auf allen Geräten.
Bevor Sie Präfixsegmente in SPRING konfigurieren, stellen Sie sicher, dass Sie Routing- und Signalisierungsprotokolle konfigurieren.
Überblick
In Junos OS Version 17.2 oder höher können Sie Präfix-Segment-IDs (SID) und Knoten-SID für Präfixe bereitstellen, die in IS-IS angekündigt werden, indem Sie Richtlinien konfigurieren. Präfixsegmentindex ist der Index, der einem bestimmten Präfix zugewiesen ist. Dies wird von allen anderen Remote-Routern im Netzwerk verwendet, um das Präfix in die entsprechenden Segment-Routing-Blöcke (SRGBs) zu indizieren, die Segment-ID abzuleiten und den für dieses Präfix bestimmten Datenverkehr weiterzuleiten. Die Präfix-SID unterstützt sowohl IPv4- als auch IPv6-Präfixe. Ein IGP-Anycastsegment ist ein IGP-Präfixsegment, das eine Gruppe von Routern identifiziert. Ein Anycast-Segment oder eine Anycast-SID erzwingt die Weiterleitung auf der Grundlage des bei gleichen Kosten Multipath-sensiblen kürzesten Pfads zum nächstgelegenen Knoten der Anycast-Gruppe. Innerhalb einer Anycast-Gruppe kündigen alle Router dasselbe Präfix mit demselben SID-Wert an. Das IS-IS-Protokoll erstellt Adjacency-Segmente pro Adjacency-, Level- und Adressfamilie (jeweils eines für IPv4 und IPv6).
Topologie
Abbildung 1 zeigt SRGBs, Präfixsegmente und Adjacency-Hold-Zeit, die in SPRING auf den Routern R0 bis R7 konfiguriert sind.

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 erforderlichen Details, um sie an Ihre Netzwerkkonfiguration anzupassen, kopieren Sie die Befehle, fügen Sie sie in die CLI auf der Hierarchieebene ein, und geben Sie sie dann aus dem [edit] Konfigurationsmodus ein commit
.
Diese Topologie veranschaulicht IPv4-Präfixe. Gleiches gilt für IPv6-Präfixe.
R0-KARTON
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.1.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 1 vlan-id 1 set interfaces ge-0/0/2 unit 1 family inet address 192.10.12.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 5 set interfaces lo0 unit 0 family inet address 203.0.113.1/24 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set routing-options autonomous-system 100 set routing-options router-id 203.0.113.1 set routing-options forwarding-table export pplb set routing-options forwarding-table chained-composite-next-hop ingress l3vpn set protocols rsvp interface all link-protection set protocols mpls traffic-engineering set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis graceful-restart restart-duration 30 set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/2.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.1/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1000 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R1-KARTON
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 192.0.2.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.2.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.2/24 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set routing-options router-id 203.0.113.2 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls traffic-engineering set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options per-prefix-calculation set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering family inet shortcuts set protocols isis graceful-restart restart-duration 30 set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis label-switched-path to_r2 set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.2/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement setpref from protocol isis set policy-options policy-statement setpref from level 2 set policy-options policy-statement setpref then preference 11 set policy-options policy-statement setpref then local-preference 11 set policy-options policy-statement setpref then accept
R2
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 encapsulation flexible-ethernet-services set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.2.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 encapsulation flexible-ethernet-services set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.3.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.3/24 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set routing-options router-id 203.0.113.3 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls label-switched-path to_r1 to 203.0.113.2 set protocols mpls label-switched-path to_r1 primary path1 deactivate protocols mpls label-switched-path to_r1 set protocols mpls path 10.0.2.1 set protocols mpls path path1 10.0.2.1 strict set protocols mpls interface all set protocols isis export leakl2tol1 set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis label-switched-path to_r1 set policy-options policy-statement leakl2tol1 from protocol isis set policy-options policy-statement leakl2tol1 from level 2 set policy-options policy-statement leakl2tol1 to protocol isis set policy-options policy-statement leakl2tol1 to level 1 set policy-options policy-statement leakl2tol1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.3/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R3-KARTON
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10-.0.3.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.4.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.4/24 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set routing-options router-id 203.0.113.4 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.4/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R4-KARTON
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.1.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.5/24 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set routing-options router-id 203.0.113.5 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.5/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R5
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.5.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.6/24 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set routing-options router-id 203.0.113.6 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export leakl2tol1 set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement leakl2tol1 from protocol isis set policy-options policy-statement leakl2tol1 from level 2 set policy-options policy-statement leakl2tol1 to protocol isis set policy-options policy-statement leakl2tol1 to level 1 set policy-options policy-statement leakl2tol1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.6/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R6
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.5.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.7/24 set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 set routing-options router-id 203.0.113.7 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/0.1 node-link-protection set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.7/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1006 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R7-KARTON
set chassis network-services enhanced-ip set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.4.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 1 vlan-id 1 set interfaces ge-0/0/2 unit 1 family inet address 10.0.7.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.8/24 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set routing-options router-id 203.0.113.8 set routing-options autonomous-system 100 set routing-options forwarding-table export pplb set protocols rsvp interface all link-protection set protocols mpls explicit-null set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface ge-0/0/1.1 node-link-protection set protocols isis interface ge-0/0/2.1 node-link-protection set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.8/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1007 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement setpref from protocol isis set policy-options policy-statement setpref from level 2 set policy-options policy-statement setpref then preference 11 set policy-options policy-statement setpref then local-preference 11 set policy-options policy-statement setpref then accept set policy-options policy-statement stat term 1 from protocol static set policy-options policy-statement stat term 1 then accept
Konfigurieren von Router R4
Schritt-für-Schritt-Anleitung
Für das folgende Beispiel ist es erforderlich, dass Sie durch verschiedene Ebenen in der Konfigurationshierarchie navigieren. Weitere Informationen zum Navigieren in der CLI finden Sie unter Verwenden des CLI-Editors im Konfigurationsmodus im Junos OS CLI-Benutzerhandbuch.
So konfigurieren Sie Router R4:
Wiederholen Sie diesen Vorgang für jeden Router in der SPRING-Domäne, nachdem Sie die entsprechenden Schnittstellennamen, Adressen und andere Parameter für jeden Router geändert haben.
Konfigurieren Sie den erweiterten IP-Modus auf dem Router der MX-Serie, da die SRGB-Funktionalität nur auf Routern mit MPC- und MIC-Schnittstellen unterstützt wird. Ein Systemneustart ist erforderlich, nachdem Sie diese Konfiguration übernommen haben.
[edit chassis] user@R4# set network-services enhanced-ip
Konfigurieren Sie die Schnittstellen.
[edit interfaces] user@R4# set ge-0/0/0 vlan-tagging user@R4# set ge-0/0/0 unit 1 vlan-id 1 user@R4# set ge-0/0/0 unit 1 family inet address 10.0.6.2/24 user@R4# set ge-0/0/0 unit 1 family iso user@R4# set ge-0/0/0 unit 1 family mpls user@R4# set ge-0/0/1 vlan-tagging user@R4# set ge-0/0/1 unit 1 vlan-id 1 user@R4# set ge-0/0/1 unit 1 family inet address 10.0.1.2/24 user@R4# set ge-0/0/1 unit 1 family iso user@R4# set ge-0/0/1 unit 1 family mpls user@R4# set lo0 unit 0 family inet address 203.0.113.5/24 user@R4# set lo0 unit 0 family iso address 49.0001.0004.0404.0400
Konfigurieren Sie die Router-ID für eine Routing-Option.
[edit routing-options] user@R4# set router-id 203.0.113.5
Konfigurieren Sie die Exportrichtlinie für die Weiterleitungstabelle.
[edit routing-options] user@R4# set forwarding-table export pplb
Aktivieren Sie den RSVP-Verbindungsschutz auf allen Schnittstellen.
[edit protocols rsvp] user@R4# set interface all link-protection
Konfigurieren Sie die MPLS-Schnittstelle.
[edit protocols mpls] user@R4# set interface all
Konfigurieren Sie die Exportrichtlinie für das IS-IS-Protokoll.
[edit protocols isis] user@R4# set export prefix-sid
Konfigurieren Sie die Optionen für den kürzesten Pfad für die Sicherung, um die nächsten Hops für die Remote-Loop-Free Alternate (LFA) zu berechnen und SPRING-Routingpfade für den Schutz des IS-IS-Protokolls zu verwenden.
[edit protocols isis] user@R4# set backup-spf-options remote-backup-calculation user@R4# set backup-spf-options use-source-packet-routing
Konfigurieren Sie die Haltezeit für benachbarte Segmente in SPRING für das IS-IS-Protokoll.
[edit protocols isis] user@R4# set source-packet-routing adjacency-segment hold-time 240000
Konfigurieren Sie die Startbezeichnung und den Indexbereich für Segment Routing Global Blocks (SRGBs) in SPRING für das IS-IS-Protokoll.
[edit protocols isis] user@R4# set source-packet-routing srgb start-label 800000 user@R4# set source-packet-routing srgb index-range 40000
Konfigurieren Sie explizite null in SPRING für das IS-IS-Protokoll.
[edit protocols isis] user@R4# set source-packet-routing explicit-null
Konfigurieren Sie die Schnittstellen so, dass sie sowohl vor Verbindungs- als auch vor Knotenfehlern schützen.
[edit protocols isis] user@R4# set interface ge-0/0/0.1 node-link-protection user@R4# set interface ge-0/0/1.1 node-link-protection user@R4# set interface all node-link-protection
Deaktivieren Sie die Verwaltungsschnittstelle, und konfigurieren Sie die Loopback-Adresse für das IS-IS-Protokoll als passiv.
[edit protocols isis] user@R4# set interface fxp0.0 disable user@R4# set interface lo0.0 passive
Konfigurieren Sie den Load Balancing pro Paket für die Routing-Richtlinie.
[edit policy-options policy-statement pplb] user@R4# set then load-balance per-packet
Konfigurieren Sie den Routenfilter für den Begriff der Routing-Richtlinie.
[edit policy-options policy-statement prefix-sid] user@R4# set term 1 from route-filter 203.0.113.5/24 exact
Konfigurieren Sie das Index- und Knotensegment des Präfixsegments für den Begriff der Routing-Richtlinie.
[edit policy-options policy-statement prefix-sid] user@R4# set term 1 then prefix-segment index 1004 user@R4# set term 1 then prefix-segment node-segment user@R4# set term 1 then accept
Befund
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show chassisBefehle , show interfaces, show protocolsshow policy-options, und show routing-options eingeben. Wenn in der Ausgabe nicht die beabsichtigte Konfiguration angezeigt wird, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
user@R4# show chassis network-services enhanced-ip;
user@R4# show interfaces ge-0/0/0 { vlan-tagging; unit 1 { vlan-id 1; family inet { address 10.0.6.2/24; } family iso; } } ge-0/0/1 { vlan-tagging; unit 1{ vlan-id 1; family inet { address 10.0.1.2/24; } family iso; family mpls ; } } lo0 { unit 0 { family inet { address 203.0.113.5/24; } family iso { address 49.0001.0004.0404.0400; } } }
user@R4# show protocols rsvp { interface all { link-protection; } } mpls { interface all; } isis { export prefix-sid; backup-spf-options { remote-backup-calculation; use-source-packet-routing; } source-packet-routing { adjacency-segment hold-time 240000; srgb start-label 800000 index-range 40000; explicit-null; } interface ge-0/0/0.1 { node-link-protection; } interface ge-0/0/1.1 { node-link-protection; } interface all { node-link-protection; } interface fxp0.0 { disable; } interface lo0.0 { passive; } }
user@R4# show policy-options policy-statement pplb { then { load-balance per-packet; } } policy-statement prefix-sid { term 1 { from { route-filter 203.0.113.5/24 exact; } then { prefix-segment index 1004 node-segment; accept; } } }
user@R4# show routing-options router-id 203.0.113.5; forwarding-table { export pplb; }
Verifizierung
Vergewissern Sie sich, dass die Konfiguration ordnungsgemäß funktioniert.
- Überprüfen der IS-IS-Nachbarschaftsrouten
- Verifizierung der IS-IS-Übersichtsinformationen
- Überprüfen der Segment-Routing-Routeneinträge für das IS-IS-Protokoll
- Überprüfen der MPLS-Segment-Routing-Routeneinträge für das IS-IS-Protokoll
Überprüfen der IS-IS-Nachbarschaftsrouten
Zweck
Überprüfen Sie, ob Router R4 benachbart ist.
Aktion
Geben Sie im Betriebsmodus den show isis adjacency detail
Befehl ein.
user@R4> show isis adjacency detail
R5
Interface: ge-0/0/0.0, Level: 1, State: Up, Expires in 25 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:55:22 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:e:2b:0
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R5.02, IP addresses: 10.0.6.2
Level 1 IPv4 Adj-SID: 16
R5
Interface: ge-0/0/0.0, Level: 2, State: Up, Expires in 25 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:55:22 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:e:2b:0
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R5.02, IP addresses: 10.0.6.2
Level 2 IPv4 Adj-SID: 17
R0
Interface: ge-0/0/1.0, Level: 1, State: Up, Expires in 7 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:49:06 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:5e:8e:1
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R1.02, IP addresses: 10.0.1.1
Level 1 IPv4 Adj-SID: 18
R0
Interface: ge-0/0/1.0, Level: 2, State: Up, Expires in 8 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:49:06 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:5e:8e:1
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R1.02, IP addresses: 10.0.1.1
Level 2 IPv4 Adj-SID: 19
Bedeutung
Die Ausgabe zeigt die IS-IS-Nachbarschaftsdetails von Router R4 mit Router R0 und R5.
Verifizierung der IS-IS-Übersichtsinformationen
Zweck
Überprüfen Sie die IS-IS-Übersichtsinformationen von Router R4.
Aktion
Geben Sie im Betriebsmodus den show isis overview
Befehl ein.
user@R4> show isis overview
Instance: master
Router ID: 203.0.113.5
Hostname: R4
Sysid: 0100.0404.0404
Areaid: 47.0005.80ff.f800.0000.0108.0001
Adjacency holddown: enabled
Maximum Areas: 3
LSP life time: 1200
Attached bit evaluation: enabled
SPF delay: 200 msec, SPF holddown: 5000 msec, SPF rapid runs: 3
IPv4 is enabled, IPv6 is enabled, SPRING based MPLS is enabled
Traffic engineering: enabled
Restart: Disabled
Helper mode: Enabled
Layer2-map: Disabled
Source Packet Routing (SPRING): Enabled
SRGB Config Range:
SRGB Start-Label : 800000, SRGB Index-Range : 40000
SRGB Block Allocation: Success
SRGB Start Index : 800000, SRGB Size : 40000, Label-Range: [ 800000, 839999 ]
Node Segments: Disabled
Level 1
Internal route preference: 15
External route preference: 160
Prefix export count: 0
Wide metrics are enabled, Narrow metrics are enabled
Source Packet Routing is enabled
Level 2
Internal route preference: 18
External route preference: 165
Prefix export count: 0
Wide metrics are enabled, Narrow metrics are enabled
Source Packet Routing is enabled
Bedeutung
Die Ausgabe zeigt die IS-IS-Übersichtsinformationen der Routing-Instanz zusammen mit den SPRING-Details des Routers R4 an.
Überprüfen der Segment-Routing-Routeneinträge für das IS-IS-Protokoll
Zweck
Überprüfen Sie die Segment-Routing-Routeneinträge der Routing-Tabelle inet.3 für das IS-IS-Protokoll.
Aktion
Geben Sie im Betriebsmodus den show route table inet.3 protocol isis
Befehl ein.
user@R4> show route table inet.3 protocol isis
inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
203.0.113.0/24 *[L-ISIS/14] 00:09:31, metric 10
to 10.0.6.2 via ge-0/0/0.0, Push 0
> to 10.0.1.1 via ge-0/0/1.0, Push 0
203.0.113.2/32 *[L-ISIS/14] 00:02:44, metric 20
> to 10.0.1.1 via ge-0/0/1.0, Push 801001
Bedeutung
Die Ausgabe zeigt die Segment-Routing-Routen der Routing-Tabelle inet.3 für das IS-IS-Protokoll.
Überprüfen der MPLS-Segment-Routing-Routeneinträge für das IS-IS-Protokoll
Zweck
Überprüfen Sie die Einträge in der MPLS-Segment-Routing-Route für das IS-IS-Protokoll.
Aktion
Geben Sie im Betriebsmodus den show route table mpls.0 protocol isis
Befehl ein.
user@R4> show route table mpls.0 protocol isis
mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 2d 01:56:20, metric 1
to table inet.0
0(S=0) *[MPLS/0] 2d 01:56:20, metric 1
to table mpls.0
1 *[MPLS/0] 2d 01:56:20, metric 1
Receive
2 *[MPLS/0] 2d 01:56:20, metric 1
to table inet6.0
2(S=0) *[MPLS/0] 2d 01:56:20, metric 1
to table mpls.0
13 *[MPLS/0] 2d 01:56:20, metric 1
Receive
16 *[L-ISIS/14] 2d 01:52:56, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
16(S=0) *[L-ISIS/14] 00:01:34, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
17 *[L-ISIS/14] 2d 01:52:56, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
17(S=0) *[L-ISIS/14] 00:10:49, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
18 *[L-ISIS/14] 2d 01:46:40, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
18(S=0) *[L-ISIS/14] 00:01:34, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
19 *[L-ISIS/14] 2d 01:46:40, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
19(S=0) *[L-ISIS/14] 00:10:49, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
801000 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801000
> to 10.0.1.1 via ge-0/0/1.0, Swap 0
801000(S=0) *[L-ISIS/14] 00:01:34, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801000
> to 10.0.1.1 via ge-0/0/1.0, Pop
801001 *[L-ISIS/14] 2d 01:46:14, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801001
> to 10.0.1.1 via ge-0/0/1.0, Swap 801001
801002 *[L-ISIS/14] 1d 21:57:31, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801002
> to 10.0.1.1 via ge-0/0/1.0, Swap 801002
801003 *[L-ISIS/14] 1d 21:56:57, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801003
> to 10.0.1.1 via ge-0/0/1.0, Swap 801003
801005 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 0
> to 10.0.1.1 via ge-0/0/1.0, Swap 801005
801005(S=0) *[L-ISIS/14] 00:01:34, metric 10
to 10.0.6.2 via ge-0/0/0.0, Pop
> to 10.0.1.1 via ge-0/0/1.0, Swap 801005
801006 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801006
> to 10.0.1.1 via ge-0/0/1.0, Swap 801006
801007 *[L-ISIS/14] 1d 21:56:24, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801007
> to 10.0.1.1 via ge-0/0/1.0, Swap 801007
Bedeutung
Die Ausgabe zeigt die MPLS-Segment-Routing-Routeneinträge für das Protokoll IS-IS.