AUF DIESER SEITE
Beispiel: Konfigurieren des Multicast-Lastenausgleichs über aggregierte Ethernet-Verbindungen
Dieses Beispiel zeigt, wie Punkt-zu-Mehrpunkt-LSPs für den Lastenausgleich über aggregierte Ethernet-Verbindungen konfiguriert werden. Der Lastenausgleich gilt für alle Datenverkehrstypen, einschließlich Multicast. Die Funktionsparität für den Multicast-Lastausgleich von Punkt-zu-Multipunkt-LSPs über aggregierte untergeordnete Ethernet-Verbindungen auf den Routern der MX-Serie mit MPCs oder MICs wird in den Junos OS-Versionen 11.1R2, 11.2R2 und 11.4 unterstützt.
Für VPLS-Multicast-Load-Balancing ist Junos OS Version 14.1 oder höher erforderlich.
Anforderungen
Bevor Sie beginnen:
-
Konfigurieren Sie die Routerschnittstellen.
-
Konfigurieren Sie ein internes Gateway-Protokoll oder statisches Routing. Routing-Geräte finden Sie in der Junos OS Routing Protocols Library.
Übersicht
Dieses Beispiel zeigt eine Beispieltopologie und -konfiguration zum Ausführen der folgenden Aufgaben:
-
Load Balancing VPLS-Multicast-Datenverkehr über Link-Aggregation
-
Load Balancing von Punkt-zu-Multipunkt-Multicast-Datenverkehr über Link-Aggregation
-
Erneuter Lastenausgleich nach einer Änderung der Next-Hop-Topologie
Änderungen an der Next-Hop-Topologie können unter anderem Folgendes umfassen:
-
Änderung der Layer-2-Mitgliedschaft in der Link-Aggregation
-
Indirekte Next-Hop-Änderung
-
Zusammengesetzte Änderung des nächsten Hops
-
Load Balancing ist Hash-basiert, d. h. je höher die Anzahl der Datenströme, desto besser. Wie bei Unicast können Sie auch den Hash-Schlüssel so konfigurieren, dass er auf Layer-3- und Layer-4-Informationen basiert, um ein besseres Load-Balancing-Ergebnis zu erzielen. Es gibt einige Ausnahmen, die spezifisch für Multicast-Datenverkehr sind und zu einem ungleichmäßigen Lastenausgleich führen können, z. B. wenn die Liste der ausgehenden Schnittstellen mehrere aggregierte Schnittstellen mit einer ungleichen Anzahl von untergeordneten Links enthält.
Bei Draft Rosen Multicast-VPNs (MVPNs) ist der Lastausgleich über aggregierte Ethernet-Schnittstellen ungleichmäßig, wenn es sich bei den LAGs ausschließlich um Core-Schnittstellen handelt. Bei MBGP-MPVNs der nächsten Generation wird Multicast-Datenverkehr über Punkt-zu-Multipunkt und RSVP gesendet, und der Hash wird bis zu den IP-Headern berechnet. Im Fall von Draft Rosen wird Multicast-Datenverkehr über GRE-Tunnel getunnelt, und der Hash wird nur für GRE-Tunnelheader verwendet. Aus diesem Grund ist Load Balancing nicht einmal für Draft Rosen geeignet, wenn die LAGs alle Kernschnittstellen sind.
Topologie
Abbildung 1 zeigt die Topologie für dieses Beispiel. Das Beispiel enthält die Konfiguration für die Geräte PE1 und PE2.

Konfiguration
Verfahren
CLI-Schnellkonfiguration
Um dieses Beispiel schnell zu konfigurieren, kopieren Sie die folgenden Befehle, fügen Sie sie in eine Textdatei ein, entfernen Sie alle Zeilenumbrüche, ändern Sie alle Details, die für Ihre Netzwerkkonfiguration erforderlich sind, und kopieren Sie dann die Befehle und fügen Sie sie in die CLI auf Hierarchieebene [edit]
ein.
Gerät PE1
[edit] set forwarding-options hash-key family multiservice source-mac set forwarding-options hash-key family multiservice destination-mac set forwarding-options hash-key family multiservice payload ip layer-3 set interfaces ge-0/0/6 gigether-options 802.3ad ae0 set interfaces ge-0/1/6 gigether-options 802.3ad ae0 set interfaces ge-0/2/2 encapsulation ethernet-vpls set interfaces ge-0/2/2 unit 0 family vpls set interfaces ge-0/2/3 gigether-options 802.3ad ae0 set interfaces ge-0/2/6 gigether-options 802.3ad ae0 set interfaces ge-0/3/0 gigether-options 802.3ad ae0 set interfaces ge-0/3/1 gigether-options 802.3ad ae0 set interfaces ge-0/3/6 gigether-options 802.3ad ae0 set interfaces ge-1/0/6 gigether-options 802.3ad ae0 set interfaces ge-1/2/6 unit 0 family inet address 10.13.1.2/30 set interfaces ae0 unit 0 family inet address 10.11.11.1/30 set interfaces ae0 unit 0 family iso set interfaces ae0 unit 0 family mpls set policy-options policy-statement exp-to-fwd term a from community grn-com set policy-options policy-statement exp-to-fwd term a then install-nexthop lsp PE1-to-PE2 set policy-options policy-statement exp-to-fwd term a then accept set policy-options community grn-com members target:65000:1 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path PE1-to-PE2 to 10.255.19.77 set protocols mpls label-switched-path PE1-to-PE3 to 10.255.19.79 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group int type internal set protocols bgp group int local-address 10.255.71.214 set protocols bgp group int family inet any set protocols bgp group int family l2vpn signaling set protocols bgp group int neighbor 10.255.19.77 set protocols bgp group int neighbor 10.255.19.79 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set routing-instances vpls instance-type vpls set routing-instances vpls interface ge-0/2/2.0 set routing-instances vpls route-distinguisher 65000:1 set routing-instances vpls vrf-target target:65000:1 set routing-instances vpls protocols vpls site-range 3 set routing-instances vpls protocols vpls no-tunnel-services set routing-instances vpls protocols vpls site asia site-identifier 1 set routing-instances vpls protocols vpls site asia interface ge-0/2/2.0 set routing-instances vpls protocols vpls vpls-id 100 set routing-instances vpls protocols vpls bum-hashing
Gerät PE2
set interfaces ge-0/0/7 gigether-options 802.3ad ae0 set interfaces ge-0/1/7 gigether-options 802.3ad ae0 set interfaces ge-0/2/3 gigether-options 802.3ad ae0 set interfaces ge-0/2/7 gigether-options 802.3ad ae0 set interfaces ge-2/0/0 gigether-options 802.3ad ae1 set interfaces ge-2/0/1 gigether-options 802.3ad ae1 set interfaces ge-2/0/2 gigether-options 802.3ad ae1 set interfaces ge-2/0/4 encapsulation ethernet-vpls set interfaces ge-2/0/4 unit 0 family vpls set interfaces ge-2/0/7 gigether-options 802.3ad ae0 set interfaces ge-2/0/9 unit 0 family inet address 10.10.1.1/30 set interfaces ge-2/0/9 unit 0 family mpls set interfaces ge-2/1/7 gigether-options 802.3ad ae0 set interfaces ge-2/2/7 gigether-options 802.3ad ae0 set interfaces ge-2/3/7 gigether-options 802.3ad ae0 set interfaces ae0 unit 0 family inet address 10.11.11.2/30 set interfaces ae0 unit 0 family iso set interfaces ae0 unit 0 family mpls set interfaces ae1 unit 0 family inet address 10.1.1.1/30 set interfaces ae1 unit 0 family mpls set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path PE2-to-PE3 from 10.255.19.77 set protocols mpls label-switched-path PE2-to-PE3 to 10.255.19.79 set protocols mpls label-switched-path PE2-to-PE1 to 10.255.71.214 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group int type internal set protocols bgp group int local-address 10.255.19.77 set protocols bgp group int family inet any set protocols bgp group int family l2vpn signaling set protocols bgp group int neighbor 10.255.71.214 set protocols bgp group int neighbor 10.255.19.79 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface ge-2/0/0.0 set protocols ospf area 0.0.0.0 interface ge-2/0/1.0 set protocols ospf area 0.0.0.0 interface ge-2/0/2.0 set protocols ospf area 0.0.0.0 interface ae0.0 set protocols ospf area 0.0.0.0 interface ae1.0 set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-instances vpls instance-type vpls set routing-instances vpls interface ge-2/0/4.0 set routing-instances vpls route-distinguisher 65000:1 set routing-instances vpls vrf-target target:65000:1 set routing-instances vpls protocols vpls site-range 3 set routing-instances vpls protocols vpls no-tunnel-services set routing-instances vpls protocols vpls site 2 site-identifier 2 set routing-instances vpls protocols vpls site 2 interface ge-2/0/4.0 set routing-instances vpls protocols vpls vpls-id 100 set routing-instances vpls protocols vpls bum-hashing
Schritt-für-Schritt-Anleitung
So konfigurieren Sie Gerät PE1:
-
Konfigurieren Sie die PE1-Schnittstellen des Geräts.
[edit interfaces] user@PE1# set ge-0/0/6 gigether-options 802.3ad ae0 user@PE1# set ge-0/1/6 gigether-options 802.3ad ae0 user@PE1# set ge-0/2/2 encapsulation ethernet-vpls user@PE1# set ge-0/2/2 unit 0 family vpls user@PE1# set ge-0/2/3 gigether-options 802.3ad ae0 user@PE1# set ge-0/2/6 gigether-options 802.3ad ae0 user@PE1# set ge-0/3/0 gigether-options 802.3ad ae0 user@PE1# set ge-0/3/1 gigether-options 802.3ad ae0 user@PE1# set ge-0/3/6 gigether-options 802.3ad ae0 user@PE1# set ge-1/0/6 gigether-options 802.3ad ae0 user@PE1# set ge-1/2/6 unit 0 family inet address 10.1.1.2/30 user@PE1# set ae0 unit 0 family inet address 10.11.11.1/30 user@PE1# set ae0 unit 0 family iso user@PE1# set ae0 unit 0 family mpls
-
Konfigurieren Sie auf Gerät PE1 die Paket-Header-Daten, die für den Lastenausgleich pro Datenfluss verwendet werden sollen.
[edit forwarding-options hash-key family multiservice] user@PE1# set source-mac user@PE1# set destination-mac user@PE1# set payload ip layer-3
-
Konfigurieren Sie die Routing-Richtlinie auf Gerät PE1.
[edit policy-options] user@PE1# set policy-statement exp-to-fwd term a from community grn-com user@PE1# set policy-statement exp-to-fwd term a then install-nexthop lsp PE1-to-PE2 user@PE1# set policy-statement exp-to-fwd term a then accept user@PE1# set policy-options community grn-com members target:65000:1
-
Konfigurieren Sie die PE1-Routing-Protokolle und MPLS des Geräts.
[edit protocols] user@PE1# set rsvp interface all user@PE1# set rsvp interface fxp0.0 disable user@PE1# set mpls label-switched-path PE1-to-PE2 to 10.255.19.77 user@PE1# set mpls label-switched-path PE1-to-PE3 to 10.255.19.79 user@PE1# set mpls interface all user@PE1# set mpls interface fxp0.0 disable user@PE1# set bgp group int type internal user@PE1# set bgp group int local-address 10.255.71.214 user@PE1# set bgp group int family inet any user@PE1# set bgp group int family l2vpn signaling user@PE1# set bgp group int neighbor 10.255.19.77 user@PE1# set bgp group int neighbor 10.255.19.79 user@PE1# set ospf traffic-engineering user@PE1# set ospf area 0.0.0.0 interface all user@PE1# set ospf area 0.0.0.0 interface fxp0.0 disable
-
Konfigurieren Sie VPLS auf Gerät PE1.
[edit routing-instances vpls] user@PE1# set instance-type vpls user@PE1# set interface ge-0/2/2.0 user@PE1# set route-distinguisher 65000:1 user@PE1# set vrf-target target:65000:1 user@PE1# set protocols vpls site-range 3 user@PE1# set protocols vpls no-tunnel-services user@PE1# set protocols vpls site asia site-identifier 1 user@PE1# set protocols vpls site asia interface ge-0/2/2.0 user@PE1# set protocols vpls vpls-id 100 user@PE1# set protocols vpls bum-hashing
Schritt-für-Schritt-Anleitung
So konfigurieren Sie Gerät PE2:
-
Konfigurieren Sie die PE2-Schnittstellen des Geräts.
[edit interfaces] user@PE2# set ge-0/0/7 gigether-options 802.3ad ae0 user@PE2# set ge-0/1/7 gigether-options 802.3ad ae0 user@PE2# set ge-0/2/3 gigether-options 802.3ad ae0 user@PE2# set ge-0/2/7 gigether-options 802.3ad ae0 user@PE2# set ge-2/0/0 gigether-options 802.3ad ae1 user@PE2# set ge-2/0/1 gigether-options 802.3ad ae1 user@PE2# set ge-2/0/2 gigether-options 802.3ad ae1 user@PE2# set ge-2/0/4 encapsulation ethernet-vpls user@PE2# set ge-2/0/4 unit 0 family vpls user@PE2# set ge-2/0/7 gigether-options 802.3ad ae0 user@PE2# set ge-2/0/9 unit 0 family inet address 10.10.1.1/30 user@PE2# set ge-2/0/9 unit 0 family mpls user@PE2# set ge-2/1/7 gigether-options 802.3ad ae0 user@PE2# set ge-2/2/7 gigether-options 802.3ad ae0 user@PE2# set ge-2/3/7 gigether-options 802.3ad ae0 user@PE2# set ae0 unit 0 family inet address 10.11.11.2/30 user@PE2# set ae0 unit 0 family iso user@PE2# set ae0 unit 0 family mpls user@PE2# set ae1 unit 0 family inet address 10.1.1.1/30 user@PE2# set ae1 unit 0 family mpls
-
Konfigurieren Sie die PE2-Routing-Protokolle und MPLS des Geräts.
[edit protocols] user@PE2# set rsvp interface all user@PE2# set rsvp interface fxp0.0 disable user@PE2# set mpls label-switched-path PE2-to-PE3 from 10.255.19.77 user@PE2# set mpls label-switched-path PE2-to-PE3 to 10.255.19.79 user@PE2# set mpls label-switched-path PE2-to-PE1 to 10.255.71.214 user@PE2# set mpls interface all user@PE2# set mpls interface fxp0.0 disable user@PE2# set bgp group int type internal user@PE2# set bgp group int local-address 10.255.19.77 user@PE2# set bgp group int family inet any user@PE2# set bgp group int family l2vpn signaling user@PE2# set bgp group int neighbor 10.255.71.214 user@PE2# set bgp group int neighbor 10.255.19.79 user@PE2# set ospf traffic-engineering user@PE2# set ospf area 0.0.0.0 interface lo0.0 user@PE2# set ospf area 0.0.0.0 interface ge-2/0/0.0 user@PE2# set ospf area 0.0.0.0 interface ge-2/0/1.0 user@PE2# set ospf area 0.0.0.0 interface ge-2/0/2.0 user@PE2# set ospf area 0.0.0.0 interface ae0.0 user@PE2# set ospf area 0.0.0.0 interface ae1.0 user@PE2# set ospf area 0.0.0.0 interface all user@PE2# set ospf area 0.0.0.0 interface fxp0.0 disable user@PE2# set ldp interface all user@PE2# set ldp interface fxp0.0 disable
-
Konfigurieren Sie VPLS auf Gerät PE2.
[edit routing-instances vpls] user@PE2# set instance-type vpls user@PE2# set interface ge-2/0/4.0 user@PE2# set route-distinguisher 65000:1 user@PE2# set vrf-target target:65000:1 user@PE2# set protocols vpls site-range 3 user@PE2# set protocols vpls no-tunnel-services user@PE2# set protocols vpls site 2 site-identifier 2 user@PE2# set protocols vpls site 2 interface ge-2/0/4.0 user@PE2# set protocols vpls vpls-id 100 user@PE2# set protocols vpls bum-hashing
Ergebnisse
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show forwarding-options
Befehle , show interfaces
, show protocols
, show policy-options
und show routing-options
eingeben. Wenn die Ausgabe nicht die gewünschte Konfiguration anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
Gerät PE1
user@PE1# show forwarding-options hash-key { family multiservice { source-mac; destination-mac; payload { ip { layer-3; } } } }
user@PE1# show interfaces ge-0/0/6 { gigether-options { 802.3ad ae0; } } ge-0/1/6 { gigether-options { 802.3ad ae0; } } ge-0/2/2 { encapsulation ethernet-vpls; unit 0 { family vpls; } } ge-0/2/3 { gigether-options { 802.3ad ae0; } } ge-0/2/6 { gigether-options { 802.3ad ae0; } } ge-0/3/0 { gigether-options { 802.3ad ae0; } } ge-0/3/1 { gigether-options { 802.3ad ae0; } } ge-0/3/6 { gigether-options { 802.3ad ae0; } } ge-1/0/6 { gigether-options { 802.3ad ae0; } } ge-1/2/6 { unit 0 { family inet { address 10.1.1.2/30; } } } ae0 { unit 0 { family inet { address 10.11.11.1/30; } family iso; family mpls; } }
user@PE1# show protocols mpls { interface all; interface fxp0.0 { disable; } label-switched-path PE1-to-PE2 { to 10.255.19.77; } label-switched-path PE1-to-PE3 { to 10.255.19.79; } } rsvp { interface all; interface fxp0.0 { disable; } } bgp { group int { type internal; local-address 10.255.71.214; family inet { any; } family l2vpn { signaling; } neighbor 10.255.19.77; neighbor 10.255.19.79; } } ospf { traffic-engineering; area 0.0.0.0 { interface all; interface fxp0.0 { disable; } } }
user@PE1# show policy-options policy-statement exp-to-fwd { term a { from community grn-com; then { install-nexthop lsp PE1-to-PE2; accept; } } } community grn-com members target:65000:1;
user@PE1# show routing-instances vpls { instance-type vpls; interface ge-0/2/2.0; route-distinguisher 65000:1; vrf-target target:65000:1; protocols { vpls { site-range 3; no-tunnel-services; site asia { site-identifier 1; interface ge-0/2/2.0; } vpls-id 100; bum-hashing; } } }
Gerät PE2
user@PE2# show interfaces ge-0/0/7 { gigether-options { 802.3ad ae0; } } ge-0/1/7 { gigether-options { 802.3ad ae0; } } ge-0/2/3 { gigether-options { 802.3ad ae0; } } ge-0/2/7 { gigether-options { 802.3ad ae0; } } ge-2/0/0 { gigether-options { 802.3ad ae1; } } ge-2/0/1 { gigether-options { 802.3ad ae1; } } ge-2/0/2 { gigether-options { 802.3ad ae1; } } ge-2/0/4 { encapsulation ethernet-vpls; unit 0 { family vpls; } } ge-2/0/7 { gigether-options { 802.3ad ae0; } } ge-2/0/9 { unit 0 { family inet { address 10.10.1.1/30; } family mpls; } } ge-2/1/7 { gigether-options { 802.3ad ae0; } } ge-2/2/7 { gigether-options { 802.3ad ae0; } } ge-2/3/7 { gigether-options { 802.3ad ae0; } } ae0 { unit 0 { family inet { address 10.11.11.2/30; } family iso; family mpls; } } ae1 { unit 0 { family inet { address 10.1.1.1/30; } family mpls; } }
user@PE2# show protocols rsvp { interface all; interface fxp0.0 { disable; } } mpls { label-switched-path PE2-to-PE3 { from 10.255.19.77; to 10.255.19.79; } label-switched-path PE2-to-PE1 { to 10.255.71.214; } interface all; interface fxp0.0 { disable; } } bgp { group int { type internal; local-address 10.255.19.77; family inet { any; } family l2vpn { signaling; } neighbor 10.255.71.214; neighbor 10.255.19.79; } } ospf { traffic-engineering; area 0.0.0.0 { interface lo0.0; interface ge-2/0/0.0; interface ge-2/0/1.0; interface ge-2/0/2.0; interface ae0.0; interface ae1.0; interface all; interface fxp0.0 { disable; } } } ldp { interface all; interface fxp0.0 { disable; } }
user@PE2# show routing-instances vpls { instance-type vpls; interface ge-2/0/4.0; route-distinguisher 65000:1; vrf-target target:65000:1; protocols { vpls { site-range 3; no-tunnel-services; site 2 { site-identifier 2; interface ge-2/0/4.0; } vpls-id 100; bum-hashing; } } }
Überprüfung
Sie können den Betrieb der Routing-Instanz überwachen, indem Sie die show interfaces ae1.0 extensive
Befehle and monitor interface traffic
ausführen.
Für die Problembehandlung können Sie Ablaufverfolgungsvorgänge für alle Protokolle konfigurieren.