EN ESTA PÁGINA
Ejemplo: configuración de PBB con EVPN de host único
En este ejemplo se muestra cómo integrar el puente troncal del proveedor (PBB) con la VPN Ethernet (EVPN). Con esta integración, las operaciones del plano de control en el núcleo se simplifican, proporcionando mejoras de convergencia y escalabilidad más rápidas que el EVPN normal. Las aplicaciones PBB-EVPN incluyen interconexión del centro de datos (DCI) y servicios E-LAN Ethernet de operadora.
Requisitos
En este ejemplo se utilizan los siguientes componentes de hardware y software:
Tres dispositivos perimetrales de proveedor (PE), cada uno conectado a sitios de clientes de una sola base.
Cuatro dispositivos perimetrales de cliente (CE) de base única en los dispositivos PE.
Junos OS versión 17.2R1 o posterior ejecutándose en todos los enrutadores PE.
Antes de empezar:
Configure las interfaces del dispositivo.
Configure un IGP, como OSPF, en todos los dispositivos PE.
Establezca una sesión BGP interna entre los dispositivos PE.
Habilite RSVP en los dispositivos PE.
Configure MPLS y rutas de conmutación de etiquetas (LSP) entre los dispositivos PE.
Descripción general y topología
A partir de Junos OS versión 17.2R1, PBB se integra con Ethernet VPN (EVPN) para permitir una reducción significativa en el aprendizaje del plano de control en todo el núcleo, permitiendo que una gran cantidad de servicios de capa 2, como la conectividad del centro de datos, transiten la red de una manera simplificada.
En una red PBB-EVPN, el dispositivo de puente de núcleo troncal (BCB) en el núcleo de PBB se sustituye por MPLS, conservando las propiedades de escalado de servicio del puente de borde troncal (BEB) de PBB. El componente B (instancia de enrutamiento del proveedor) se señala mediante la señalización BGP de EVPN y se encapsula dentro de MPLS mediante dispositivos perimetrales del proveedor (PE) y del proveedor (P). Por lo tanto, PBB-EVPN combina la vasta propiedad de escalado de PBB con la simplicidad de una red central MPLS básica tradicional, lo que resulta en una reducción significativa en la cantidad de información de estado de toda la red, a diferencia del PBB regular.
En la figura 1, PBB está integrado con EVPN, donde los dispositivos CE son de base única en los dispositivos PE1, PE2 y PE3.
Configuración
Configuración rápida de CLI
Para configurar rápidamente este ejemplo, copie los siguientes comandos, péguelos en un archivo de texto, elimine los saltos de línea, cambie los detalles necesarios para que coincidan con su configuración de red, copie y pegue los comandos en la CLI en el nivel de jerarquía y, a continuación, ingrese commit
desde el [edit]
modo de configuración.
PE1
set chassis aggregated-devices ethernet device-count 16 set chassis network-services enhanced-ip set interfaces xe-1/0/0 flexible-vlan-tagging set interfaces xe-1/0/0 encapsulation flexible-ethernet-services set interfaces xe-1/0/0 unit 0 encapsulation vlan-bridge set interfaces xe-1/0/0 unit 0 vlan-id 10 set interfaces xe-1/0/0 unit 1 encapsulation vlan-bridge set interfaces xe-1/0/0 unit 1 vlan-id 20 set interfaces xe-1/2/2 flexible-vlan-tagging set interfaces xe-1/2/2 encapsulation flexible-ethernet-services set interfaces xe-1/2/2 unit 0 encapsulation vlan-bridge set interfaces xe-1/2/2 unit 0 vlan-id 10 set interfaces xe-1/2/2 unit 0 family bridge filter input BRI set interfaces xe-1/2/2 unit 1 encapsulation vlan-bridge set interfaces xe-1/2/2 unit 1 vlan-id 20 set interfaces xe-1/2/2 unit 2 encapsulation vlan-bridge set interfaces xe-1/2/2 unit 2 vlan-id 11 set interfaces xe-1/2/2 unit 2 family bridge set interfaces xe-1/2/2 unit 3 encapsulation vlan-bridge set interfaces xe-1/2/2 unit 3 vlan-id 21 set interfaces xe-1/2/2 unit 3 family bridge set interfaces ge-2/1/0 gigether-options 802.3ad ae6 set interfaces ge-2/1/1 unit 0 family inet address 10.0.0.1/8 set interfaces ge-2/1/1 unit 0 family iso set interfaces ge-2/1/1 unit 0 family mpls set interfaces ae6 encapsulation ethernet-bridge set interfaces ae6 unit 0 family bridge set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces irb unit 0 family inet address 10.0.0.1/8 set interfaces irb unit 0 family iso set interfaces irb unit 0 family mpls set interfaces lo0 unit 0 family inet address 127.0.0.1/8 primary set interfaces pip0 unit 0 family bridge interface-mode trunk set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups set routing-options router-id 127.0.0.1 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path PE1toPE2 from 127.0.0.1 set protocols mpls label-switched-path PE1toPE2 to 127.0.0.2 set protocols mpls label-switched-path PE1toPE3 from 127.0.0.1 set protocols mpls label-switched-path PE1toPE3 to 127.0.0.3 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.1 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.2 set protocols bgp group ibgp neighbor 127.0.0.3 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 pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.1:100 set routing-instances pbbn1 vrf-target target:100:100 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 protocols evpn extended-isid-list 2000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbbn1 bridge-domains bdb vlan-id 200 set routing-instances pbbn1 bridge-domains bdb isid-list 2000 set routing-instances pbbn1 bridge-domains bdb vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface xe-1/2/2.0 set routing-instances pbn1 bridge-domains bda interface xe-1/0/0.0 set routing-instances pbn1 bridge-domains bdb domain-type bridge set routing-instances pbn1 bridge-domains bdb vlan-id 20 set routing-instances pbn1 bridge-domains bdb interface xe-1/2/2.1 set routing-instances pbn1 bridge-domains bdb interface xe-1/0/0.1 set routing-instances pbn1 bridge-domains bdc domain-type bridge set routing-instances pbn1 bridge-domains bdc vlan-id 11 set routing-instances pbn1 bridge-domains bdc interface xe-1/2/2.2 set routing-instances pbn1 bridge-domains bdd domain-type bridge set routing-instances pbn1 bridge-domains bdd vlan-id 21 set routing-instances pbn1 bridge-domains bdd interface xe-1/2/2.3 set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 11 set routing-instances pbn1 service-groups sga pbb-service-options source-bmac 00:50:50:50:50:50 set routing-instances pbn1 service-groups sgb service-type elan set routing-instances pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 20 set routing-instances pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 21 set bridge-domains bd vlan-id none set bridge-domains bd interface ae6.0 set bridge-domains bd routing-interface irb.0
PE2
set chassis aggregated-devices ethernet device-count 3 set chassis network-services enhanced-ip set interfaces xe-0/0/0 flexible-vlan-tagging set interfaces xe-0/0/0 encapsulation flexible-ethernet-services set interfaces xe-0/0/0 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/0 unit 0 vlan-id 10 set interfaces xe-0/0/0 unit 1 encapsulation vlan-bridge set interfaces xe-0/0/0 unit 1 vlan-id 20 set interfaces xe-0/0/0 unit 2 encapsulation vlan-bridge set interfaces xe-0/0/0 unit 2 vlan-id 11 set interfaces xe-0/0/0 unit 2 family bridge set interfaces xe-0/0/0 unit 3 encapsulation vlan-bridge set interfaces xe-0/0/0 unit 3 vlan-id 21 set interfaces xe-0/0/0 unit 3 family bridge set interfaces ge-0/2/1 unit 0 family inet address 172.16.0.1/16 set interfaces ge-0/2/1 unit 0 family mpls set interfaces ge-0/2/9 gigether-options 802.3ad ae6 set interfaces ae6 encapsulation ethernet-bridge set interfaces ae6 unit 0 family bridge set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces irb unit 0 family inet address 10.0.0.2/8 set interfaces irb unit 0 family mpls set interfaces lo0 unit 0 family inet address 127.0.0.2/8 primary set interfaces pip0 unit 0 family bridge interface-mode trunk set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups set routing-options router-id 127.0.0.2 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path PE2toPE1 from 127.0.0.2 set protocols mpls label-switched-path PE2toPE1 to 127.0.0.1 set protocols mpls label-switched-path PE2toPE3 from 127.0.0.2 set protocols mpls label-switched-path PE2toPE3 to 127.0.0.3 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.2 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.1 set protocols bgp group ibgp neighbor 127.0.0.3 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 pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.2:100 set routing-instances pbbn1 vrf-target target:100:100 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 protocols evpn extended-isid-list 2000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbbn1 bridge-domains bdb vlan-id 200 set routing-instances pbbn1 bridge-domains bdb isid-list 2000 set routing-instances pbbn1 bridge-domains bdb vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface xe-0/0/0.0 set routing-instances pbn1 bridge-domains bdb domain-type bridge set routing-instances pbn1 bridge-domains bdb vlan-id 20 set routing-instances pbn1 bridge-domains bdb interface xe-0/0/0.1 set routing-instances pbn1 bridge-domains bdc domain-type bridge set routing-instances pbn1 bridge-domains bdc vlan-id 11 set routing-instances pbn1 bridge-domains bdc interface xe-0/0/0.2 set routing-instances pbn1 bridge-domains bdd domain-type bridge set routing-instances pbn1 bridge-domains bdd vlan-id 21 set routing-instances pbn1 bridge-domains bdd interface xe-0/0/0.3 set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 11 set routing-instances pbn1 service-groups sga pbb-service-options source-bmac 00:51:51:51:51:51 set routing-instances pbn1 service-groups sgb service-type elan set routing-instances pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 20 set routing-instances pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 21 set bridge-domains bd vlan-id none set bridge-domains bd interface ae6.0 set bridge-domains bd routing-interface irb.0
PE3
set chassis aggregated-devices ethernet device-count 16 set chassis network-services enhanced-ip set interfaces xe-0/0/3 flexible-vlan-tagging set interfaces xe-0/0/3 encapsulation flexible-ethernet-services set interfaces xe-0/0/3 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 0 vlan-id 10 set interfaces xe-0/0/3 unit 1 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 1 vlan-id 20 set interfaces xe-0/0/3 unit 2 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 2 vlan-id 11 set interfaces xe-0/0/3 unit 2 family bridge set interfaces xe-0/0/3 unit 3 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 3 vlan-id 21 set interfaces xe-0/0/3 unit 3 family bridge set interfaces ge-1/0/6 unit 0 family inet address 172.17.0.1/16 set interfaces ge-1/0/6 unit 0 family mpls set interfaces ge-1/1/4 unit 0 family inet address 172.16.0.2/16 set interfaces ge-1/1/4 unit 0 family mpls set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces lo0 unit 0 family inet address 127.0.0.3/8 primary set interfaces pip0 unit 0 family bridge interface-mode trunk set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups set routing-options router-id 127.0.0.3 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path PE3toPE1 from 127.0.0.3 set protocols mpls label-switched-path PE3toPE1 to 127.0.0.1 set protocols mpls label-switched-path PE3toPE2 from 127.0.0.3 set protocols mpls label-switched-path PE3toPE2 to 127.0.0.2 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.3 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.1 set protocols bgp group ibgp neighbor 127.0.0.2 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 pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.3:100 set routing-instances pbbn1 vrf-target target:100:100 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 protocols evpn extended-isid-list 2000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbbn1 bridge-domains bdb vlan-id 200 set routing-instances pbbn1 bridge-domains bdb isid-list 2000 set routing-instances pbbn1 bridge-domains bdb vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface xe-0/0/3.0 set routing-instances pbn1 bridge-domains bdb domain-type bridge set routing-instances pbn1 bridge-domains bdb vlan-id 20 set routing-instances pbn1 bridge-domains bdb interface xe-0/0/3.1 set routing-instances pbn1 bridge-domains bdc domain-type bridge set routing-instances pbn1 bridge-domains bdc vlan-id 11 set routing-instances pbn1 bridge-domains bdc interface xe-0/0/3.2 set routing-instances pbn1 bridge-domains bdd domain-type bridge set routing-instances pbn1 bridge-domains bdd vlan-id 21 set routing-instances pbn1 bridge-domains bdd interface xe-0/0/3.3 set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 11 set routing-instances pbn1 service-groups sga pbb-service-options source-bmac 00:52:52:52:52:52 set routing-instances pbn1 service-groups sgb service-type elan set routing-instances pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 20 set routing-instances pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 21
Procedimiento
Procedimiento paso a paso
El ejemplo siguiente requiere que navegue por varios niveles en la jerarquía de configuración. Para obtener información acerca de cómo navegar por la CLI, consulte Uso del editor de CLI en modo de configuración en la Guía del usuario de CLI.
Para configurar el dispositivo PE1:
Establezca el número de interfaces Ethernet agregadas en el dispositivo PE1.
[edit chassis] user@PE1# set aggregated-devices ethernet device-count 16
Configure los servicios de red del dispositivo PE1 en Protocolo de Internet mejorado y use las capacidades del modo mejorado.
[edit chassis] user@PE1# set chassis network-services enhanced-ip
Configure las interfaces orientadas a CE del dispositivo PE1.
[edit interfaces] user@PE1# set xe-1/0/0 flexible-vlan-tagging user@PE1# set xe-1/0/0 encapsulation flexible-ethernet-services user@PE1# set xe-1/0/0 unit 0 encapsulation vlan-bridge user@PE1# set xe-1/0/0 unit 0 vlan-id 10 user@PE1# set xe-1/0/0 unit 1 encapsulation vlan-bridge user@PE1# set xe-1/0/0 unit 1 vlan-id 20 user@PE1# set xe-1/2/2 flexible-vlan-tagging user@PE1# set xe-1/2/2 encapsulation flexible-ethernet-services user@PE1# set xe-1/2/2 unit 0 encapsulation vlan-bridge user@PE1# set xe-1/2/2 unit 0 vlan-id 10 user@PE1# set xe-1/2/2 unit 0 family bridge filter input BRI user@PE1# set xe-1/2/2 unit 1 encapsulation vlan-bridge user@PE1# set xe-1/2/2 unit 1 vlan-id 20 user@PE1# set xe-1/2/2 unit 2 encapsulation vlan-bridge user@PE1# set xe-1/2/2 unit 2 vlan-id 11 user@PE1# set xe-1/2/2 unit 2 family bridge user@PE1# set xe-1/2/2 unit 3 encapsulation vlan-bridge user@PE1# set xe-1/2/2 unit 3 vlan-id 21 user@PE1# set xe-1/2/2 unit 3 family bridge
Configure las interfaces que conectan el dispositivo PE1 con los demás dispositivos PE.
[edit interfaces] user@PE1# set ge-2/1/0 gigether-options 802.3ad ae6 user@PE1# set ge-2/1/1 unit 0 family inet address 10.0.0.1/8 user@PE1# set ge-2/1/1 unit 0 family iso user@PE1# set ge-2/1/1 unit 0 family mpls
Configure el paquete Ethernet agregado ae6.
[edit interfaces] user@PE1# set ae6 encapsulation ethernet-bridge user@PE1# set ae6 unit 0 family bridge
Configure la interfaz de circuito cerrado del dispositivo PE1.
[edit interfaces] user@PE1# set interfaces lo0 unit 0 family inet address 127.0.0.1/8 primary
Configure las interfaces de enrutamiento y puente integrados (IRB) para el dispositivo PE1.
[edit interfaces] user@PE1# set interfaces irb unit 0 family inet address 10.0.0.1/8 user@PE1# set interfaces irb unit 0 family iso user@PE1# set interfaces irb unit 0 family mpls
Configure las interfaces del puerto troncal del cliente (CBP) en el dispositivo PE1.
[edit interfaces] user@PE1# set cbp0 unit 0 family bridge interface-mode trunk user@PE1# set cbp0 unit 0 family bridge bridge-domain-type bvlan user@PE1# set cbp0 unit 0 family bridge isid-list all user@PE1# set cbp0 unit 1 family bridge interface-mode trunk user@PE1# set cbp0 unit 1 family bridge bridge-domain-type bvlan user@PE1# set cbp0 unit 1 family bridge isid-list all
Configure el puerto de instancia del proveedor (PIP) en el dispositivo PE1.
[edit interfaces] user@PE1# set pip0 unit 0 family bridge interface-mode trunk user@PE1# set pip0 unit 0 family bridge bridge-domain-type svlan user@PE1# set pip0 unit 0 family bridge isid-list all-service-groups user@PE1# set pip0 unit 1 family bridge interface-mode trunk user@PE1# set pip0 unit 1 family bridge bridge-domain-type svlan user@PE1# set pip0 unit 1 family bridge isid-list all-service-groups
Configure el ID del enrutador y el número de sistema autónomo para el dispositivo PE1.
[edit routing-options] user@PE1# set router-id 127.0.0.1 user@PE1# set autonomous-system 65221
Configure RSVP en todas las interfaces del dispositivo PE1, excluyendo la interfaz de administración.
[edit protocols] user@PE1# set rsvp interface all user@PE1# set rsvp interface fxp0.0 disable
Configure MPLS en todas las interfaces del dispositivo PE1, excluyendo la interfaz de administración.
[edit protocols] user@PE1# set mpls interface all user@PE1# set mpls interface fxp0.0 disable
Configure los LSP desde el dispositivo PE1 a todos los demás dispositivos PE.
[edit protocols] user@PE1# set mpls label-switched-path PE1toPE2 from 127.0.0.1 user@PE1# set mpls label-switched-path PE1toPE2 to 127.0.0.2 user@PE1# set mpls label-switched-path PE1toPE3 from 127.0.0.1 user@PE1# set mpls label-switched-path PE1toPE3 to 127.0.0.3
Configure una sesión BGP interna en EVPN de familia desde el dispositivo PE1 a todos los demás dispositivos PE.
[edit protocols] user@PE1# set bgp group ibgp type internal user@PE1# set bgp group ibgp local-address 127.0.0.1 user@PE1# set bgp group ibgp family evpn signaling user@PE1# set bgp group ibgp neighbor 127.0.0.2 user@PE1# set bgp group ibgp neighbor 127.0.0.3
Configure OSPF en todas las interfaces del dispositivo de PE1, excluyendo la interfaz de administración.
[edit protocols] 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
Configure una instancia de enrutamiento de cliente (componente I) en el dispositivo PE1 con el tipo de conmutador virtual. Asigne los valores de destino de la interfaz CBP, el diferenciador de ruta y el enrutamiento y reenvío virtual (VRF) a la instancia de enrutamiento PBBN.
[edit routing-instances] user@PE1# set pbbn1 instance-type virtual-switch user@PE1# set pbbn1 interface cbp0.0 user@PE1# set pbbn1 route-distinguisher 127.0.0.1:100 user@PE1# set pbbn1 vrf-target target:100:100
Configure la integración PBB-EVPN desde la instancia de enrutamiento del cliente. Asigne la lista de I-SID extendida y los dominios de puente a la instancia de enrutamiento.
[edit routing-instances] user@PE1# set pbbn1 protocols evpn pbb-evpn-core user@PE1# set pbbn1 protocols evpn extended-isid-list 1000 user@PE1# set pbbn1 protocols evpn extended-isid-list 2000 user@PE1# set pbbn1 bridge-domains bda vlan-id 100 user@PE1# set pbbn1 bridge-domains bda isid-list 1000 user@PE1# set pbbn1 bridge-domains bda vlan-id-scope-local user@PE1# set pbbn1 bridge-domains bdb vlan-id 200 user@PE1# set pbbn1 bridge-domains bdb isid-list 2000 user@PE1# set pbbn1 bridge-domains bdb vlan-id-scope-local
Configure una instancia de enrutamiento de proveedor en el dispositivo PE1 con el tipo de conmutador virtual. Asigne la interfaz PBP y los dominios de puente a la instancia de enrutamiento.
[edit routing-instances] user@PE1# set pbn1 instance-type virtual-switch user@PE1# set pbn1 interface pip0.0 user@PE1# set pbn1 bridge-domains bda domain-type bridge user@PE1# set pbn1 bridge-domains bda vlan-id 10 user@PE1# set pbn1 bridge-domains bda interface xe-1/2/2.0 user@PE1# set pbn1 bridge-domains bda interface xe-1/0/0.0 user@PE1# set pbn1 bridge-domains bdb domain-type bridge user@PE1# set pbn1 bridge-domains bdb vlan-id 20 user@PE1# set pbn1 bridge-domains bdb interface xe-1/2/2.1 user@PE1# set pbn1 bridge-domains bdb interface xe-1/0/0.1 user@PE1# set pbn1 bridge-domains bdc domain-type bridge user@PE1# set pbn1 bridge-domains bdc vlan-id 11 user@PE1# set pbn1 bridge-domains bdc interface xe-1/2/2.2 user@PE1# set pbn1 bridge-domains bdd domain-type bridge user@PE1# set pbn1 bridge-domains bdd vlan-id 21 user@PE1# set pbn1 bridge-domains bdd interface xe-1/2/2.3
Configure la instancia de enrutamiento PBBN del mismo nivel en la instancia de enrutamiento del cliente.
[edit routing-instances] user@PE1# set pbn1 pbb-options peer-instance pbbn1
Configure los grupos de servicios que se admitirán en la instancia de enrutamiento del cliente.
[edit routing-instances] user@PE1# set pbn1 service-groups sga service-type elan user@PE1# set pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 user@PE1# set pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 11 user@PE1# set pbn1 service-groups sga pbb-service-options source-bmac 00:50:50:50:50:50 user@PE1# set pbn1 service-groups sgb service-type elan user@PE1# set pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 20 user@PE1# set pbn1 service-groups sgb pbb-service-options isid 2000 vlan-id-list 21
Configure los dominios de puente en el dispositivo PE1.
[edit bridge-domains] user@PE1# set bd vlan-id none user@PE1# set bd interface ae6.0 user@PE1# set bd routing-interface irb.0
Resultados
Desde el modo de configuración, escriba los comandos , show interfaces
, show routing-instances
show routing-options
show protocols
, , y show bridge-domains
para confirmar la show chassis
configuración. Si el resultado no muestra la configuración deseada, repita las instrucciones de este ejemplo para corregir la configuración.
user@PE1# show chassis aggregated-devices { ethernet { device-count 16; } } network-services enhanced-ip;
user@PE1# show interfaces xe-1/0/0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 10; } unit 1 { encapsulation vlan-bridge; vlan-id 20; } } xe-1/2/2 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 10; family bridge { filter { input BRI; ## reference 'BRI' not found } } } unit 1 { encapsulation vlan-bridge; vlan-id 20; } unit 2 { encapsulation vlan-bridge; vlan-id 11; family bridge; } unit 3 { encapsulation vlan-bridge; vlan-id 21; family bridge; } } ge-2/1/0 { gigether-options { 802.3ad ae6; } } ge-2/1/1 { unit 0 { family inet { address 10.0.0.1/8; } family iso; family mpls; } } ae6 { encapsulation ethernet-bridge; unit 0 { family bridge; } } cbp0 { unit 0 { family bridge { interface-mode trunk; bridge-domain-type bvlan; isid-list all; } } unit 1 { family bridge { interface-mode trunk; bridge-domain-type bvlan; isid-list all; } } } irb { unit 0 { family inet { address 10.0.0.1/8; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 127.0.0.1/8 { primary; } } } } pip0 { unit 0 { family bridge { interface-mode trunk; bridge-domain-type svlan; isid-list all-service-groups; } } unit 1 { family bridge { interface-mode trunk; bridge-domain-type svlan; isid-list all-service-groups; } } }
user@PE1# show routing-options router-id 127.0.0.1; autonomous-system 65221;
user@PE1# show protocols rsvp { interface all; interface fxp0.0 { disable; } } mpls { label-switched-path PE1toPE2 { from 127.0.0.1; to 127.0.0.2; } label-switched-path PE1toPE3 { from 127.0.0.1; to 127.0.0.3; } interface all; interface fxp0.0 { disable; } } bgp { group ibgp { type internal; local-address 127.0.0.1; family evpn { signaling; } neighbor 127.0.0.2; neighbor 127.0.0.3; } } ospf { traffic-engineering; area 0.0.0.0 { interface all; interface fxp0.0 { disable; } } }
user@PE1# show routing-instances pbbn1 { instance-type virtual-switch; interface cbp0.0; route-distinguisher 127.0.0.1:100; vrf-target target:100:100; protocols { evpn { pbb-evpn-core; extended-isid-list [ 1000 2000 ]; } } bridge-domains { bda { vlan-id 100; isid-list 1000; vlan-id-scope-local; } bdb { vlan-id 200; isid-list 2000; vlan-id-scope-local; } } } pbn1 { instance-type virtual-switch; interface pip0.0; bridge-domains { bda { domain-type bridge; vlan-id 10; interface xe-1/2/2.0; interface xe-1/0/0.0; } bdb { domain-type bridge; vlan-id 20; interface xe-1/2/2.1; interface xe-1/0/0.1; } bdc { domain-type bridge; vlan-id 11; interface xe-1/2/2.2; } bdd { domain-type bridge; vlan-id 21; interface xe-1/2/2.3; } } pbb-options { peer-instance pbbn1; } service-groups { sga { service-type elan; pbb-service-options { isid 1000 vlan-id-list [ 10 11 ]; source-bmac 00:50:50:50:50:50; } } sgb { service-type elan; pbb-service-options { isid 2000 vlan-id-list [ 20 21 ]; } } } }
user@PE1# show bridge-domains bd { vlan-id none; interface ae6.0; routing-interface irb.0; }
Si ha terminado de configurar el dispositivo, ingrese commit
desde el modo de configuración.
Verificación
Confirme que la configuración funciona correctamente.
- Verificación del estado de emparejamiento BGP
- Comprobación de LSP MPLS
- Comprobación de la instancia de enrutamiento EVPN
- Comprobación de las entradas de la tabla de enrutamiento de la instancia de enrutamiento EVPN
- Verificación de la base de datos EVPN
- Verificación de las entradas de la tabla MAC
- Comprobación de las entradas de la tabla de enrutamiento inet.3
Verificación del estado de emparejamiento BGP
Propósito
Compruebe que la sesión BGP se haya establecido entre los dispositivos PE.
Acción
Desde el modo operativo, ejecute el show bgp summary
comando.
user@PE1> show bgp summary Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.evpn.0 8 8 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 127.0.0.2 65221 9 7 0 0 2:09 Establ bgp.evpn.0: 4/4/4/0 pbbn1.evpn.0: 4/4/4/0 __default_evpn__.evpn.0: 0/0/0/0 127.0.0.3 65221 7 7 0 0 1:25 Establ bgp.evpn.0: 4/4/4/0 pbbn1.evpn.0: 4/4/4/0 __default_evpn__.evpn.0: 0/0/0/0
Significado
Se establece una sesión BGP entre los dispositivos PE.
Comprobación de LSP MPLS
Propósito
Verifique el estado de LSP de MPLS en el dispositivo PE1.
Acción
Desde el modo operativo, ejecute el show mpls lsp
comando.
user@PE1> show mpls lsp Ingress LSP: 2 sessions To From State Rt P ActivePath LSPname 127.0.0.2 127.0.0.1 Up 0 * PE1toPE2 127.0.0.3 127.0.0.1 Up 0 * PE1toPE3 Total 2 displayed, Up 2, Down 0 Egress LSP: 2 sessions To From State Rt Style Labelin Labelout LSPname 127.0.0.1 127.0.0.3 Up 0 1 FF 3 - PE3toPE1 127.0.0.1 127.0.0.2 Up 0 1 FF 3 - PE2toPE1 Total 2 displayed, Up 2, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0
Comprobación de la instancia de enrutamiento EVPN
Propósito
Compruebe la información de la instancia de enrutamiento EVPN.
Acción
Desde el modo operativo, ejecute el show evpn instance extensive
comando.
user@PE1> show evpn instance extensive Instance: __default_evpn__ Route Distinguisher: 127.0.0.1:0 Number of bridge domains: 0 Number of neighbors: 0 Instance: pbbn1 Route Distinguisher: 127.0.0.1:100 Per-instance MAC route label: 16 Per-instance multicast route label: 17 PBB EVPN Core enabled Control word enabled MAC database status Local Remote MAC advertisements: 2 4 MAC+IP advertisements: 0 0 Default gateway MAC advertisements: 0 0 Number of local interfaces: 1 (1 up) Interface name ESI Mode Status AC-Role cbp0.0 00:00:00:00:00:00:00:00:00:00 single-homed Up Root Number of IRB interfaces: 0 (0 up) Number of bridge domains: 2 VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label SG sync IM core nexthop 1000 0 0 Extended Enabled 17 Disabled 2000 0 0 Extended Enabled 17 Disabled Number of Bundle bridge domains: 0 Number of neighbors: 2 Address MAC MAC+IP AD IM ES Leaf-label 127.0.0.2 2 0 0 2 0 127.0.0.3 2 0 0 2 0 Number of ethernet segments: 0
Significado
El resultado muestra la información de la pbbn1
instancia de enrutamiento, como la integración de PBB con EVPN, el modo de operación de EVPN de base única y la dirección IP de los dispositivos PE2 y PE3 como los negihbors.
Comprobación de las entradas de la tabla de enrutamiento de la instancia de enrutamiento EVPN
Propósito
Compruebe las entradas de la tabla de enrutamiento de la instancia de enrutamiento de EVPN.
Acción
Desde el modo operativo, ejecute el show route table pbbn1.evpn.0
comando.
user@PE1> show route table pbbn1.evpn.0 pbbn1.evpn.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2:127.0.0.1:100::1000::00:50:50:50:50:50/304 MAC/IP *[EVPN/170] 00:04:20 Indirect 2:127.0.0.1:100::2000::00:1d:b5:a2:47:b0/304 MAC/IP *[EVPN/170] 00:04:20 Indirect 2:127.0.0.2:100::1000::00:51:51:51:51:51/304 MAC/IP *[BGP/170] 00:02:50, localpref 100, from 127.0.0.2 AS path: I, validation-state: unverified > to 10.0.0.2 via irb.0, label-switched-path PE1toPE2 2:127.0.0.2:100::2000::00:23:9c:5e:a7:b0/304 MAC/IP *[BGP/170] 00:02:50, localpref 100, from 127.0.0.2 AS path: I, validation-state: unverified > to 10.0.0.2 via irb.0, label-switched-path PE1toPE2 2:127.0.0.3:100::1000::00:52:52:52:52:52/304 MAC/IP *[BGP/170] 00:02:05, localpref 100, from 127.0.0.3 AS path: I, validation-state: unverified > to 172.17.0.1 via ge-2/1/1.0, label-switched-path PE1toPE3 2:127.0.0.3:100::2000::5c:5e:ab:0d:3a:b8/304 MAC/IP *[BGP/170] 00:02:05, localpref 100, from 127.0.0.3 AS path: I, validation-state: unverified > to 172.17.0.1 via ge-2/1/1.0, label-switched-path PE1toPE3 3:127.0.0.1:100::1000::127.0.0.1/248 IM *[EVPN/170] 00:04:20 Indirect 3:127.0.0.1:100::2000::127.0.0.1/248 IM *[EVPN/170] 00:04:20 Indirect 3:127.0.0.2:100::1000::127.0.0.2/248 IM *[BGP/170] 00:02:50, localpref 100, from 127.0.0.2 AS path: I, validation-state: unverified > to 10.0.0.2 via irb.0, label-switched-path PE1toPE2 3:127.0.0.2:100::2000::127.0.0.2/248 IM *[BGP/170] 00:02:50, localpref 100, from 127.0.0.2 AS path: I, validation-state: unverified > to 10.0.0.2 via irb.0, label-switched-path PE1toPE2 3:127.0.0.3:100::1000::127.0.0.3/248 IM *[BGP/170] 00:02:05, localpref 100, from 127.0.0.3 AS path: I, validation-state: unverified > to 172.17.0.1 via ge-2/1/1.0, label-switched-path PE1toPE3 3:127.0.0.3:100::2000::127.0.0.3/248 IM *[BGP/170] 00:02:05, localpref 100, from 127.0.0.3 AS path: I, validation-state: unverified > to 172.17.0.1 via ge-2/1/1.0, label-switched-path PE1toPE3
Significado
El resultado muestra el uso de procesadores IRB para enrutar los LSP entre los dispositivos PE.
Verificación de la base de datos EVPN
Propósito
Verifique la información de la base de datos EVPN en los dispositivos PE.
Acción
Desde el modo operativo, ejecute el show evpn database
comando.
user@PE1> show evpn database Instance: pbbn1 VLAN DomainId MAC address Active source Timestamp IP address 2000 00:1d:b5:a2:47:b0 Local Apr 14 13:48:51 2000 00:23:9c:5e:a7:b0 127.0.0.2 Apr 14 13:53:04 2000 5c:5e:ab:0d:3a:b8 127.0.0.3 Apr 14 13:53:38 1000 00:50:50:50:50:50 Local Apr 14 13:48:51 1000 00:51:51:51:51:51 127.0.0.2 Apr 14 13:53:04 1000 00:52:52:52:52:52 127.0.0.3 Apr 14 13:53:38
user@PE2> show evpn database Instance: pbbn1 VLAN DomainId MAC address Active source Timestamp IP address 2000 00:1d:b5:a2:47:b0 127.0.0.1 Apr 14 13:53:04 2000 00:23:9c:5e:a7:b0 Local Apr 14 13:48:46 2000 5c:5e:ab:0d:3a:b8 127.0.0.3 Apr 14 13:53:37 1000 00:50:50:50:50:50 127.0.0.1 Apr 14 13:53:04 1000 00:51:51:51:51:51 Local Apr 14 13:48:46 1000 00:52:52:52:52:52 127.0.0.3 Apr 14 13:53:37
user@PE3> show evpn database Instance: pbbn1 VLAN DomainId MAC address Active source Timestamp IP address 1000 00:50:50:50:50:50 127.0.0.1 Apr 14 13:53:34 1000 00:51:51:51:51:51 127.0.0.2 Apr 14 13:53:27 1000 00:52:52:52:52:52 Local Apr 14 13:52:04 2000 00:1d:b5:a2:47:b0 127.0.0.1 Apr 14 13:53:34 2000 00:23:9c:5e:a7:b0 127.0.0.2 Apr 14 13:53:27 2000 5c:5e:ab:0d:3a:b8 Local
Verificación de las entradas de la tabla MAC
Propósito
Compruebe las entradas de la tabla MAC del puente.
Acción
Desde el modo operativo, ejecute el show bridge mac-table
comando.
user@PE1> show bridge mac-table MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC, P -Pinned MAC) Routing instance : default-switch Bridging domain : bd, VLAN : none MAC MAC Logical NH MAC address flags interface Index property 00:23:9c:5e:a7:f0 D ae6.0 MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC, P -Pinned MAC) Routing instance : pbbn1 Bridging domain : bda, VLAN : 100 MAC MAC Logical NH MAC address flags interface Index property 00:51:51:51:51:51 DC 1048576 00:52:52:52:52:52 DC 1048581 01:1e:83:00:03:e8 DC 1048578 MAC flags (S -static MAC, D -dynamic MAC, L -locally learned, C -Control MAC O -OVSDB MAC, SE -Statistics enabled, NM -Non configured MAC, R -Remote PE MAC, P -Pinned MAC) Routing instance : pbbn1 Bridging domain : bdb, VLAN : 200 MAC MAC Logical NH MAC address flags interface Index property 00:23:9c:5e:a7:b0 DC 1048576 01:1e:83:00:07:d0 DC 1048577 5c:5e:ab:0d:3a:b8 DC 1048581 MAC flags (S -static MAC, D -dynamic MAC, SE -Statistics enabled, NM -Non configured MAC, P -Pinned MAC) Routing instance : pbn1 Bridging domain : bda, ISID : 1000, VLAN : 10 MAC MAC Logical Remote address flags interface BEB address 00:00:00:00:0a:00 D xe-1/0/0.0 00:00:00:00:0a:01 D xe-1/0/0.0 00:00:00:00:0a:02 D xe-1/0/0.0 00:00:00:00:0a:03 D xe-1/0/0.0 00:00:00:00:0a:04 D xe-1/0/0.0 00:00:00:00:0a:05 D xe-1/0/0.0 00:00:00:00:0a:06 D xe-1/0/0.0 00:00:00:00:0a:07 D xe-1/0/0.0 00:00:00:00:0a:08 D xe-1/0/0.0 00:00:00:00:0a:09 D xe-1/0/0.0
Significado
El resultado muestra las direcciones MAC asociadas con el ae6
paquete Ethernet agregado.
Comprobación de las entradas de la tabla de enrutamiento inet.3
Propósito
Compruebe las entradas de la tabla de enrutamiento inet.3 en el dispositivo PE1.
Acción
Desde el modo operativo, ejecute el show route table inet.3
comando.
user@PE1> show route table inet.3 inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 127.0.0.2/8 *[RSVP/7/1] 00:11:15, metric 1 > to 10.0.0.2 via irb.0, label-switched-path PE1toPE2 127.0.0.3/8 *[RSVP/7/1] 00:09:48, metric 1 > to 172.17.0.1 via ge-2/1/1.0, label-switched-path PE1toPE3
Significado
Los LSP a los dispositivos PE2 y PE3 se enrutan mediante la interfaz IRB.