AUF DIESER SEITE
Beispiel: Konfigurieren der BGP-AutoDiscovery für LDP-VPLS
In diesem Beispiel wird beschrieben, wie die automatische BGP-Erkennung für LDP-VPLS konfiguriert wird, wie in der Weiterleitungsäquivalenzklasse (FEC) 129 angegeben. FEC 129 verwendet die automatische BGP-Erkennung, um Endpunktinformationen zu übermitteln, sodass Sie Pseudowires nicht manuell konfigurieren müssen.
Anforderungen
In diesem Beispiel werden die folgenden Hardware- und Softwarekomponenten verwendet:
Vier universelle 5G-Routing-Plattformen der MX-Serie
Junos OS Version 10.4R2 oder höher
Wenn Sie Router der M- oder T-Serie verwenden, müssen die PE-Router entweder über Virtual Loopback Tunnel ()-Schnittstellen oder Label-Switched Interfaces (vt
LSIs) verfügen. Bei Routern der M- und T-Serie verwendet VPLS tunnelbasierte PICs, um virtuelle Ports auf vt
Schnittstellen zu erstellen. Wenn Sie keinen tunnelbasierten PIC auf Ihrem Router der M - oder T-Serie installiert haben, können Sie VPLS dennoch konfigurieren, indem Sie LSIs zur Unterstützung der virtuellen Ports verwenden. Die Verwendung von LSIs erfordert Ethernet-basierte PICs, die in einem Enhanced Flexible PIC Concentrator (FPC) installiert sind.
Sie müssen keine Router für die CE-Geräte verwenden. Bei den CE-Geräten kann es sich beispielsweise um Ethernet-Switches der EX-Serie handeln.
Übersicht
Alle PE-Router in einem VPLS-Netzwerk arbeiten wie ein großer, verteilter Ethernet-Switch, um Layer-2-Services für angeschlossene Geräte bereitzustellen. Dieses Beispiel zeigt eine Mindestkonfiguration für PE-Router und CE-Geräte zum Erstellen eines automatisch erkannten VPLS-Netzwerks. Die Topologie besteht aus fünf Routern: zwei PE-Routern, zwei CE-Routern und einem optionalen Route Reflector (RR). Die PE-Router verwenden BGP, um zwei verschiedene VPLS-Instanzen, die auf beiden PE-Routern konfiguriert sind, automatisch zu erkennen. Dann verwenden die PE-Router LDP, um automatisch zwei Pseudodrähte zwischen den erkannten Endpunkten zu signalisieren. Schließlich rufen die PE-Router beide VPLS-Instanzen für die Weiterleitung des Datenverkehrs auf. Jedes CE-Gerät ist mit zwei VLANs konfiguriert, wobei jedes VLAN zu unterschiedlichen VPLS-Instanzen in den PE-Routern gehört.
Dieses Beispiel enthält die folgenden Einstellungen:
auto-discovery-only
- Ermöglicht es dem Router, nur die NLRI-Aktualisierungsnachrichten (Network Layer Reachability Information) der automatischen Erkennung für LDP-basierte Layer-2-VPN- und VPLS-Aktualisierungsnachrichten (BGP_L2VPN_AD_NLRI) zu verarbeiten (FEC 129). Insbesondere benachrichtigt dieauto-discovery-only
Anweisung den Routing-Prozess (RPD), dass er NLRI-Nachrichten im Zusammenhang mit der automatischen Erkennung erwartet, damit Informationen von LDP und VPLS entschlüsselt und verwendet werden können. Sie können diese Anweisung auf globaler, Gruppen- und Nachbarebene für BGP konfigurieren. Dieauto-discovery-only
Anweisung muss auf allen PE-Routern im VPLS konfiguriert werden. Wenn Sie Route Reflection konfigurieren, ist dieauto-discovery-only
Anweisung auch auf P-Routern erforderlich, die als Route Reflector bei der Unterstützung von FEC 129-bezogenen Updates fungieren.Die
signaling
Anweisung ist in diesem Beispiel nicht enthalten, wird aber hier der Vollständigkeit halber besprochen. Diesignaling
Anweisung erlaubt es dem Router, nur die BGP_L2VPN_NLRIs zu verarbeiten, die für BGP-basierte Layer-2-VPNs (FEC 128) verwendet werden.Für Interoperabilitätsszenarien, in denen ein PE-Router beide NLRI-Typen (FEC 128 und FEC 129) unterstützen muss, können Sie sowohl die Anweisung als auch die
signaling
auto-discovery-only
Anweisung konfigurieren. Beispielsweise muss ein einzelner PE-Router möglicherweise eine Kombination aus BGP-signalisiertem Virtual Private Wire Service (VPWS) und LDP-signalisiertem VPLS verarbeiten, die von der BGP-Autodiscovery unterstützt wird. Wenn Sie sowohl die Anweisung als auch diesignaling
auto-discovery-only
Anweisung zusammen konfigurieren, können beide Signalisierungstypen unabhängig voneinander ausgeführt werden. Diesignaling
Anweisung wird auf denselben Hierarchieebenen wie dieauto-discovery-only
Anweisung unterstützt.cluster
—Die Konfiguration eines Routenreflektors ist für FEC 129 AutoDiscovered PE-Router optional. In diesem Beispiel konfiguriert diecluster
Anweisung Router RR als Routenreflektor in der IBGP-Gruppe. Bei eingehenden Updates werden BGP-Autodiscovery-NLRI-Nachrichten akzeptiert, wenn der Router als Routenreflektor konfiguriert ist oder wenn diekeep all
Anweisung in der IBGP-Gruppe konfiguriert ist.l2vpn-id
– Gibt eine global eindeutige Layer-2-VPN-Community-ID für die Instanz an. Diese Anweisung ist für Routing-Instanzen des Typsvpls
.Sie können die folgenden Formate für die Community-ID konfigurieren:
Zahlenformat des autonomen Systems (AS)—
l2vpn-id:as-number:2-byte-number
. Beispiel:l2vpn-id:100:200
. Die AS-Nummer kann im Bereich von 1 bis 65.535 liegen.IPv4-Format—
l2vpn-id:ip-address:2-byte-number
. Beispiel:l2vpn-id:10.1.1.1:2
.
vrf-target
: Definiert die Import- und Exportroutenziele für den NLRI. Sie müssen entweder die Anweisung oder die and-Anweisungvrf-export
konfigurieren, um die Import- und Exportrichtlinie der Instanz oder dievrf-target
vrf-import
Import- und Exportroutenziele für den NLRI zu definieren. In diesem Beispiel wird dievrf-target
Anweisung verwendet.route-distinguisher
– Bildet Teil der BGP-NLRI für die automatische Erkennung und unterscheidet, zu welcher VPN- oder VPLS-Routing-Instanz jede Route gehört. Jedes Routenunterscheidungsmerkmal ist ein 6-Byte-Wert. Sie müssen für jede Routing-Instanz ein eindeutiges Routenunterscheidungsmerkmal konfigurieren.Sie können die folgenden Formate für die Routenunterscheidung konfigurieren:
AS-Zahlenformat—
as-number:2-byte-number
IPv4-Format –
ip-address:2-byte-number
In diesem Beispiel sind zwei bemerkenswerte Aussagen enthalten. Diese Aussagen sind wichtig für die Interoperabilität mit Geräten anderer Hersteller. Die Interoperabilitätsanweisungen sind für die in diesem Beispiel verwendete Topologie nicht erforderlich, aber der Vollständigkeit halber enthalten.
Die Interoperabilitätserklärungen lauten wie folgt:
input-vlan-map pop
- Entfernt ein äußeres VLAN-Tag von der Spitze des VLAN-Tag-Stapels.output-vlan-map push
- Fügt ein äußeres VLAN-Tag vor dem vorhandenen VLAN-Tag hinzu.
Topologiediagramm
Abbildung 1 zeigt die in diesem Beispiel verwendete Topologie.

Konfiguration
CLI-Schnellkonfiguration
Um die automatische BGP-Erkennung für LDP-VPLS schnell zu konfigurieren, kopieren Sie die folgenden Befehle, entfernen Sie alle Zeilenumbrüche, und fügen Sie die Befehle dann in die CLI jedes Geräts ein.
Auf Router PE1:
[edit] set interfaces ge-0/1/0 vlan-tagging set interfaces ge-0/1/0 encapsulation flexible-ethernet-services set interfaces ge-0/1/0 unit 100 encapsulation vlan-vpls set interfaces ge-0/1/0 unit 100 vlan-id 100 set interfaces ge-0/1/0 unit 100 input-vlan-map pop set interfaces ge-0/1/0 unit 100 output-vlan-map push set interfaces ge-0/1/0 unit 100 family vpls set interfaces ge-0/1/0 unit 200 encapsulation vlan-vpls set interfaces ge-0/1/0 unit 200 vlan-id 200 set interfaces ge-0/1/0 unit 200 family vpls set interfaces ge-0/1/1 unit 0 description "PE1 to PE2" set interfaces ge-0/1/1 unit 0 family inet address 192.0.2.4/24 set interfaces ge-0/1/1 unit 0 family iso set interfaces ge-0/1/1 unit 0 family mpls set interfaces ge-0/3/0 unit 0 description "PE1 to RR" set interfaces ge-0/3/0 unit 0 family inet address 192.0.2.7/24 set interfaces ge-0/3/0 unit 0 family iso set interfaces ge-0/3/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.8/24 set routing-options router-id 192.0.2.8 set routing-options autonomous-system 100 set protocols mpls interface lo0.0 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 192.0.2.8 set protocols bgp group int family l2vpn auto-discovery-only set protocols bgp group int neighbor 192.0.2.9 set protocols isis level 1 disable set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances vpls100 instance-type vpls set routing-instances vpls100 interface ge-0/1/0.100 set routing-instances vpls100 route-distinguisher 192.0.2.8:100 set routing-instances vpls100 l2vpn-id l2vpn-id:100:100 set routing-instances vpls100 vrf-target target:100:100 set routing-instances vpls100 protocols vpls no-tunnel-services set routing-instances vpls200 instance-type vpls set routing-instances vpls200 interface ge-0/1/0.200 set routing-instances vpls200 route-distinguisher 192.0.2.8:200 set routing-instances vpls200 l2vpn-id l2vpn-id:100:200 set routing-instances vpls200 vrf-target target:100:208 set routing-instances vpls200 protocols vpls no-tunnel-services
Auf Gerät CE1:
[edit] set interfaces ge-1/2/1 vlan-tagging set interfaces ge-1/2/1 mtu 1400 set interfaces ge-1/2/1 unit 100 vlan-id 100 set interfaces ge-1/2/1 unit 100 family inet address 203.0.113.3/24 set interfaces ge-1/2/1 unit 200 vlan-id 200 set interfaces ge-1/2/1 unit 200 family inet address 203.0.113.2/24 set protocols ospf area 0.0.0.0 interface ge-1/2/1.100 set protocols ospf area 0.0.0.0 interface ge-1/2/1.200
Auf Router PE2:
[edit] set interfaces ge-1/1/0 vlan-tagging set interfaces ge-1/1/0 encapsulation flexible-ethernet-services set interfaces ge-1/1/0 unit 100 encapsulation vlan-vpls set interfaces ge-1/1/0 unit 100 vlan-id 100 set interfaces ge-1/1/0 unit 100 input-vlan-map pop set interfaces ge-1/1/0 unit 100 output-vlan-map push set interfaces ge-1/1/0 unit 100 family vpls set interfaces ge-1/1/0 unit 200 encapsulation vlan-vpls set interfaces ge-1/1/0 unit 200 vlan-id 200 set interfaces ge-1/1/0 unit 200 family vpls set interfaces ge-1/2/1 unit 0 description "PE2 to PE1" set interfaces ge-1/2/1 unit 0 family inet address 192.0.2.14/24 set interfaces ge-1/2/1 unit 0 family iso set interfaces ge-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.10/24 set routing-options router-id 192.0.2.10 set routing-options autonomous-system 100 set protocols mpls interface lo0.0 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 192.0.2.10 set protocols bgp group int family l2vpn auto-discovery-only set protocols bgp group int neighbor 192.0.2.9 set protocols isis level 1 disable set protocols isis interface ge-1/2/1.0 set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0 set routing-instances vpls100 instance-type vpls set routing-instances vpls100 interface ge-1/1/0.100 set routing-instances vpls100 route-distinguisher 192.0.2.10:100 set routing-instances vpls100 l2vpn-id l2vpn-id:100:100 set routing-instances vpls100 vrf-target target:100:100 set routing-instances vpls100 protocols vpls no-tunnel-services set routing-instances vpls200 instance-type vpls set routing-instances vpls200 interface ge-1/1/0.200 set routing-instances vpls200 route-distinguisher 192.0.2.10:200 set routing-instances vpls200 l2vpn-id l2vpn-id:100:200 set routing-instances vpls200 vrf-target target:100:208 set routing-instances vpls200 protocols vpls no-tunnel-services
Auf Gerät CE2:
[edit] set interfaces ge-1/1/0 vlan-tagging set interfaces ge-1/1/0 mtu 1400 set interfaces ge-1/1/0 unit 100 vlan-id 100 set interfaces ge-1/1/0 unit 100 family inet address 203.0.113.15/24 set interfaces ge-1/1/0 unit 200 vlan-id 200 set interfaces ge-1/1/0 unit 200 family inet address 203.0.113.16/24 set protocols ospf area 0.0.0.0 interface ge-1/1/0.100 set protocols ospf area 0.0.0.0 interface ge-1/1/0.200
Auf Router RR:
[edit] set interfaces ge-1/3/2 unit 0 description "RR to PE1" set interfaces ge-1/3/2 unit 0 family inet address 192.0.2.17/24 set interfaces ge-1/3/2 unit 0 family iso set interfaces ge-1/3/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.9/24 set routing-options router-id 192.0.2.9 set routing-options autonomous-system 100 set protocols bgp group int type internal set protocols bgp group int local-address 192.0.2.9 set protocols bgp group int family l2vpn auto-discovery-only set protocols bgp group int cluster 198.51.100.0 set protocols bgp group int neighbor 192.0.2.8 set protocols bgp group int neighbor 192.0.2.10 set protocols isis level 1 disable set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp interface all set protocols ldp interface fxp0.0 disable set protocols ldp interface lo0.0
Router PE1
Schritt-für-Schritt-Anleitung
So konfigurieren Sie Router PE1:
Konfigurieren Sie die Schnittstellen, die Schnittstellenkapselung und die Protokollfamilien.
[edit] user@PE1# edit interfaces [edit interfaces] user@PE1# set ge-0/1/0 encapsulation flexible-ethernet-services user@PE1# set ge-0/1/0 unit 100 encapsulation vlan-vpls user@PE1# set ge-0/1/0 unit 100 family vpls user@PE1# set ge-0/1/0 unit 200 encapsulation vlan-vpls user@PE1# set ge-0/1/0 unit 200 family vpls user@PE1# set ge-0/1/1 unit 0 description "PE1 to PE2" user@PE1# set ge-0/1/1 unit 0 family inet address 192.0.2.4/24 user@PE1# set ge-0/1/1 unit 0 family iso user@PE1# set ge-0/1/1 unit 0 family mpls user@PE1# set ge-0/3/0 unit 0 description "PE1 to RR" user@PE1# set ge-0/3/0 unit 0 family inet address 192.0.2.7/24 user@PE1# set ge-0/3/0 unit 0 family iso user@PE1# set ge-0/3/0 unit 0 family mpls user@PE1# set lo0 unit 0 family inet address 192.0.2.8/24
Konfigurieren Sie die VLANs.
[edit interfaces] user@PE1# set ge-0/1/0 vlan-tagging user@PE1# set ge-0/1/0 unit 100 vlan-id 100 user@PE1# set ge-0/1/0 unit 100 input-vlan-map pop user@PE1# set ge-0/1/0 unit 100 output-vlan-map push user@PE1# set ge-0/1/0 unit 200 vlan-id 200 user@PE1# exit
Konfigurieren Sie die protokollunabhängigen Eigenschaften.
Es wird empfohlen, dass die Router-ID mit der lokalen Adresse übereinstimmt. (Siehe die
local-address
Erklärung in Schritt 4.)[edit] user@PE1# edit routing-options [edit routing-options] user@PE1# set router-id 192.0.2.8 user@PE1# set autonomous-system 100 user@PE1# exit
Konfigurieren Sie IBGP, einschließlich der
auto-discovery-only
Anweisung.[edit] user@PE1# edit protocols [edit protocols] user@PE1# set bgp group int type internal user@PE1# set bgp group int local-address 192.0.2.8 user@PE1# set bgp group int family l2vpn auto-discovery-only user@PE1# set bgp group int neighbor 192.0.2.9
Konfigurieren Sie MPLS, LDP und eine IGP.
[edit protocols] user@PE1# set mpls interface lo0.0 user@PE1# set mpls interface all user@PE1# set mpls interface fxp0.0 disable user@PE1# set isis level 1 disable user@PE1# set isis interface all user@PE1# set isis interface fxp0.0 disable user@PE1# set isis interface lo0.0 user@PE1# set ldp interface all user@PE1# set ldp interface fxp0.0 disable user@PE1# set ldp interface lo0.0 user@PE1# exit
Konfigurieren Sie die Routing-Instanzen.
Die
no-tunnel-services
Anweisung ist erforderlich, wenn Sie LSI-Schnittstellen für VPLS anstelle vonvt
Schnittstellen verwenden.[edit] user@PE1# edit routing-instances [edit routing-instances] user@PE1# set vpls100 instance-type vpls user@PE1# set vpls100 interface ge-0/1/0.100 user@PE1# set vpls100 route-distinguisher 192.0.2.8:100 user@PE1# set vpls100 l2vpn-id l2vpn-id:100:100 user@PE1# set vpls100 vrf-target target:100:100 user@PE1# set vpls100 protocols vpls no-tunnel-services user@PE1# set vpls200 instance-type vpls user@PE1# set vpls200 interface ge-0/1/0.200 user@PE1# set vpls200 route-distinguisher 192.0.2.8:200 user@PE1# set vpls200 l2vpn-id l2vpn-id:100:200 user@PE1# set vpls200 vrf-target target:100:208 user@PE1# set vpls200 protocols vpls no-tunnel-services
Wenn Sie mit der Konfiguration des Geräts fertig sind, bestätigen Sie die Konfiguration.
[edit] user@PE1# commit
Ergebnisse
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show interfaces
Befehle , , show protocols
show routing-options
und show routing-instances
eingeben. Wenn die Ausgabe nicht die gewünschte Konfiguration anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
user@PE1# show interfaces ge-0/1/0 { vlan-tagging; encapsulation flexible-ethernet-services; unit 100 { encapsulation vlan-vpls; vlan-id 100; input-vlan-map pop; output-vlan-map push; family vpls; } unit 200 { encapsulation vlan-vpls; vlan-id 200; family vpls; } } ge-0/1/1 { unit 0 { description "PE1 to PE2"; family inet { address 192.0.2.4/24; } family iso; family mpls; } } ge-0/3/0 { unit 0 { description "PE1 to RR"; family inet { address 192.0.2.7/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.8/24; } } }
user@PE1# show protocols mpls { interface lo0.0; interface all; interface fxp0 disable; } bgp { group int { type internal; local-address 192.0.2.8; family l2vpn { auto-discovery-only; } neighbor 192.0.2.9; } } isis { level 1 disable; interface all; interface lo0.0; interface fxp0 disable; } ldp { interface lo0.0; interface all; interface fxp0 disable; }
user@PE1# show routing-options router-id 192.0.2.8; autonomous-system 100;
user@PE1# show routing-instances vpls100 { instance-type vpls; interface ge-0/1/0.100; route-distinguisher 192.0.2.8:100; l2vpn-id l2vpn-id:100:100; vrf-target target:100:100; protocols { vpls { no-tunnel-services; } } } vpls200 { instance-type vpls; interface ge-0/1/0.200; route-distinguisher 192.0.2.8:200; l2vpn-id l2vpn-id:100:200; vrf-target target:100:208; protocols { vpls { no-tunnel-services; } } }
Gerät CE1
Schritt-für-Schritt-Anleitung
So konfigurieren Sie Gerät CE1:
Konfigurieren Sie Schnittstellenadressen und die maximale Übertragungseinheit (MTU) der Schnittstelle.
[edit] user@CE1# edit interfaces [edit interfaces] user@CE1# set ge-1/2/1 mtu 1400 user@CE1# set ge-1/2/1 unit 100 family inet address 203.0.113.3/24 user@CE1# set ge-1/2/1 unit 200 family inet address 203.0.113.2/24
Konfigurieren Sie VLANs.
[edit interfaces] user@CE1# set ge-1/2/1 vlan-tagging user@CE1# set ge-1/2/1 unit 100 vlan-id 100 user@CE1# set ge-1/2/1 unit 200 vlan-id 200 user@CE1# exit
Konfigurieren Sie eine IGP.
user@CE1# edit protocols [edit protocols] user@CE1# set ospf area 0.0.0.0 interface ge-1/2/1.100 user@CE1# set ospf area 0.0.0.0 interface ge-1/2/1.200 user@CE1# exit
Wenn Sie mit der Konfiguration des Geräts fertig sind, bestätigen Sie die Konfiguration.
[edit] user@CE1# commit
Ergebnisse
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show interfaces
Befehle und show protocols
eingeben. Wenn die Ausgabe nicht die gewünschte Konfiguration anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
user@CE1# show interfaces ge-1/2/1 { vlan-tagging; mtu 1400; unit 100 { vlan-id 100; family inet { address 203.0.113.3/24; } } unit 200 { vlan-id 200; family inet { address 203.0.113.2/24; } } }
user@CE1# show protocols ospf { area 0.0.0.0 { interface ge-1/2/1.100; interface ge-1/2/1.200; } }
Router PE2
Schritt-für-Schritt-Anleitung
So konfigurieren Sie Router PE2:
Konfigurieren Sie die Schnittstellen, die Schnittstellenkapselung und die Protokollfamilien.
[edit] user@PE2# edit interfaces [edit interfaces] user@PE2# set ge-1/1/0 encapsulation flexible-ethernet-services user@PE2# set ge-1/1/0 unit 100 encapsulation vlan-vpls user@PE2# set ge-1/1/0 unit 100 family vpls user@PE2# set ge-1/1/0 unit 200 encapsulation vlan-vpls user@PE2# set ge-1/1/0 unit 200 family vpls user@PE2# set ge-1/2/1 unit 0 description "PE2 to PE1" user@PE2# set ge-1/2/1 unit 0 family inet address 192.0.2.14/24 user@PE2# set ge-1/2/1 unit 0 family iso user@PE2# set ge-1/2/1 unit 0 family mpls user@PE2# set lo0 unit 0 family inet address 192.0.2.10/24
Konfigurieren Sie die VLANs.
[edit interfaces] user@PE2# set ge-1/1/0 vlan-tagging user@PE2# set ge-1/1/0 unit 100 vlan-id 100 user@PE2# set ge-1/1/0 unit 100 input-vlan-map pop user@PE2# set ge-1/1/0 unit 100 output-vlan-map push user@PE2# set ge-1/1/0 unit 200 vlan-id 200 user@PE2# exit
Konfigurieren Sie die protokollunabhängigen Eigenschaften.
Es wird empfohlen, dass die Router-ID mit der lokalen Adresse übereinstimmt. (Siehe die
local-address
Erklärung in Schritt 4.)[edit] user@PE2# edit routing-options [edit routing-options] user@PE2# set router-id 192.0.2.10 user@PE2# set autonomous-system 100
Konfigurieren Sie IBGP, einschließlich der
auto-discovery-only
Anweisung.[edit] user@PE2# edit protocols [edit protocols] user@PE2# set bgp group int type internal user@PE2# set bgp group int local-address 192.0.2.10 user@PE2# set bgp group int family l2vpn auto-discovery-only user@PE2# set bgp group int neighbor 192.0.2.9
Konfigurieren Sie MPLS, LDP und eine IGP.
[edit protocols] user@PE2# set mpls interface lo0.0 user@PE2# set mpls interface all user@PE2# set mpls interface fxp0.0 disable user@PE2# set isis level 1 disable user@PE2# set isis interface ge-1/2/1.0 user@PE2# set isis interface lo0.0 user@PE2# set ldp interface all user@PE2# set ldp interface fxp0.0 disable user@PE2# set ldp interface lo0.0 user@PE2# exit
Konfigurieren Sie die Routing-Instanzen.
Die
no-tunnel-services
Anweisung ist erforderlich, wenn Sie LSI-Schnittstellen für VPLS anstelle vonvt
Schnittstellen verwenden.[edit] user@PE2# edit routing-instances [edit routing-instances] user@PE2# set vpls100 instance-type vpls user@PE2# set vpls100 interface ge-1/1/0.100 user@PE2# set vpls100 route-distinguisher 192.0.2.10:100 user@PE2# set vpls100 l2vpn-id l2vpn-id:100:100 user@PE2# set vpls100 vrf-target target:100:100 user@PE2# set vpls100 protocols vpls no-tunnel-services user@PE2# set vpls200 instance-type vpls user@PE2# set vpls200 interface ge-1/1/0.200 user@PE2# set vpls200 route-distinguisher 192.0.2.10:200 user@PE2# set vpls200 l2vpn-id l2vpn-id:100:200 user@PE2# set vpls200 vrf-target target:100:208 user@PE2# set vpls200 protocols vpls no-tunnel-services
Wenn Sie mit der Konfiguration des Geräts fertig sind, bestätigen Sie die Konfiguration.
[edit] user@PE2# commit
Ergebnisse
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show interfaces
Befehle , , show protocols
show routing-options
und show routing-instances
eingeben. Wenn die Ausgabe nicht die gewünschte Konfiguration anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
user@PE2# show interfaces ge-1/1/0 { vlan-tagging; encapsulation flexible-ethernet-services; unit 100 { encapsulation vlan-vpls; vlan-id 100; input-vlan-map pop; output-vlan-map push; family vpls; } unit 200 { encapsulation vlan-vpls; vlan-id 200; family vpls; } } ge-1/2/1 { unit 0 { description "PE2 to PE1"; family inet { address 192.0.2.14/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.10/24; } } }
user@PE2# show protocols mpls { interface lo0.0; interface all; interface fxp0 disable; } bgp { group int { type internal; local-address 192.0.2.10; family l2vpn { auto-discovery-only; } neighbor 192.0.2.9; } } isis { level 1 disable; interface ge-1/2/1.0; interface lo0.0; } ldp { interface lo0.0; interface all; interface fxp0 disable; }
user@PE2# show routing-options router-id 192.0.2.10; autonomous-system 100;
user@PE2# show routing-instances vpls100 { instance-type vpls; interface ge-1/1/0.100; route-distinguisher 192.0.2.10:100; l2vpn-id l2vpn-id:100:100; vrf-target target:100:100; protocols { vpls { no-tunnel-services; } } } vpls200 { instance-type vpls; interface ge-1/1/0.200; route-distinguisher 192.0.2.10:200; l2vpn-id l2vpn-id:100:200; vrf-target target:100:208; protocols { vpls { no-tunnel-services; } } }
Gerät CE2
Schritt-für-Schritt-Anleitung
So konfigurieren Sie Gerät CE2:
Konfigurieren Sie VLAN-Schnittstellen.
[edit] user@CE2# edit interfaces ge-1/1/0 [edit interfaces ge-1/1/0] user@CE2# set vlan-tagging user@CE2# set mtu 1400 user@CE2# set unit 100 vlan-id 100 user@CE2# set unit 100 family inet address 203.0.113.15/24 user@CE2# set unit 200 vlan-id 200 user@CE2# set unit 200 family inet address 203.0.113.16/24 user@CE2# exit
Konfigurieren Sie OSPF auf den Schnittstellen.
[edit] user@CE2# edit protocols ospf area 0.0.0.0 [edit protocols ospf area 0.0.0.0] user@CE2# set interface ge-1/1/0.100 user@CE2# set interface ge-1/1/0.200 user@CE2# exit
Wenn Sie mit der Konfiguration des Geräts fertig sind, bestätigen Sie die Konfiguration.
[edit] user@CE2# commit
Ergebnisse
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show interfaces
Befehle und show protocols
eingeben. Wenn die Ausgabe nicht die gewünschte Konfiguration anzeigt, wiederholen Sie die Anweisungen in diesem Beispiel, um die Konfiguration zu korrigieren.
user@CE2# show interfaces ge-1/1/0 { vlan-tagging; mtu 1400; unit 100 { vlan-id 100; family inet { address 203.0.113.15/24; } } unit 200 { vlan-id 200; family inet { address 203.0.113.16/24; } } }
user@CE2# show protocols ospf { area 0.0.0.0 { interface ge-1/1/0.100; interface ge-1/1/0.200; } }
Router RR
Schritt-für-Schritt-Anleitung
So konfigurieren Sie den Router-RR:
Konfigurieren Sie die Schnittstellenadressen und die Protokollfamilien.
[edit] user@RR# edit interfaces [edit interfaces] user@RR# set ge-1/3/2 unit 0 description "RR to PE1" user@RR# set ge-1/3/2 unit 0 family inet address 192.0.2.17/24 user@RR# set ge-1/3/2 unit 0 family iso user@RR# set ge-1/3/2 unit 0 family mpls user@RR# set lo0 unit 0 family inet address 192.0.2.9/24 user@RR# exit
Konfigurieren Sie die autonomen Systeme und die Router-ID.
[edit] user@RR# edit routing-options [edit routing-options] user@RR# set autonomous-system 100 user@RR# set router-id 192.0.2.9 user@RR# exit
Konfigurieren Sie BGP, und legen Sie diesen Router als Routenreflektor fest. Die Routenreflexion ist für FEC 129 optional.
[edit] user@RR# edit protocols bgp group int [edit protocols bgp group int] user@RR# set type internal user@RR# set local-address 192.0.2.9 user@RR# set family l2vpn auto-discovery-only user@RR# set cluster 198.51.100.0 user@RR# set neighbor 192.0.2.8 user@RR# set neighbor 192.0.2.10 user@RR# exit
Konfigurieren Sie IS-IS für die IGP.
[edit] user@RR# edit protocols isis [edit protocols isis] user@RR# set level 1 disable user@RR# set interface all user@RR# set interface fxp0.0 disable user@RR# set interface lo0.0 user@RR# exit
Konfigurieren Sie LDP für das MPLS-Signalisierungsprotokoll.
[edit] user@RR# edit protocols ldp [edit protocols ldp] user@RR# set interface all user@RR# set interface fxp0.0 disable user@RR# set interface lo0.0 user@RR# exit
Wenn Sie mit der Konfiguration des Geräts fertig sind, bestätigen Sie die Konfiguration.
[edit] user@RR# commit
Ergebnisse
Bestätigen Sie im Konfigurationsmodus Ihre Konfiguration, indem Sie die show interfaces
Befehle , show protocols
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.
user@RR# show interfaces ge-1/3/2 { unit 0 { description "RR to PE1"; family inet { address 192.0.2.17/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.9/24;; } } }
user@RR# show protocols bgp { group int { type internal; local-address 192.0.2.9; family l2vpn { auto-discovery-only; } cluster 198.51.100.0; neighbor 192.0.2.8; neighbor 192.0.2.10; } } isis { level 1 disable; interface lo0.0; interface all; interface fxp0 disable; } ldp { interface lo0.0; interface all; interface fxp0 disable; }
user@RR# show routing-options router-id 192.0.2.9; autonomous-system 100;
Überprüfung
Verwenden Sie die folgenden Befehle, um den Vorgang zu überprüfen:
show route advertising-protocol bgp neighbor
show route receive-protocol bgp neighbor
show route table bgp.l2vpn.0
show route table vpls100.l2vpn.0
show route table vpls200.l2vpn.0
show vpls connections extensive
show vpls mac-table detail
AD
in der Ausgabe der Routing-Tabelle gibt die NLRI für die automatische Erkennung an.