示例:使用多宿主 EVPN 配置 PBB
此示例说明如何将提供商主干桥接 (PBB) 与以太网 VPN (EVPN) 集成。通过这种集成,核心中的控制平面操作得以简化,提供比常规 EVPN 更快的融合和可扩展性增强。PBB-EVPN 应用包括数据中心互连 (DCI) 和运营商以太网 E-LAN 服务。
要求
此示例使用以下硬件和软件组件:
连接到两个公共多宿主客户站点的四个提供商边缘 (PE) 设备,每个 PE 设备都连接到一个主机。
两台多宿主客户边缘 (CE) 设备。
在所有 PE 路由器上运行的 Junos OS 17.2R1 或更高版本。
准备工作:
配置设备接口。
在所有 PE 设备上配置 IGP,例如 OSPF。
在 PE 设备之间建立内部 BGP 会话。
在 PE 设备上启用 RSVP。
在 PE 设备之间配置 MPLS 和标签交换路径 (LSP)。
概述和拓扑
从 Junos OS 17.2R1 版开始,PBB 与以太网 VPN (EVPN) 集成,可显著减少跨核心的控制平面学习,从而允许大量第 2 层服务(如数据中心连接)以简化的方式传输网络。
在 PBB-EVPN 网络中,PBB 核心中的骨干核心网桥 (BCB) 设备将替换为 MPLS,同时保留 PBB 主干边缘网桥 (BEB) 的服务扩展属性。B 组件(提供商路由实例)使用 EVPN BGP 信令发出信号,并使用提供商边缘 (PE) 和提供商 (P) 设备封装在 MPLS 中。因此,PBB-EVPN 将 PBB 的巨大扩展特性与传统基本 MPLS 核心网络的简单性相结合,与常规 PBB 相比,可显著减少全网状态信息量。
![PBB with Active/Standby EVPN Multihoming](/documentation/us/en/software/junos/evpn-vxlan/images/g043729.png)
在图 1 中,PBB 与 EVPN 集成,其中 CE 设备在活动/备用模式下是多宿主的。设备 CE1 多宿主到设备 PE1、PE2 和 PE3,设备 CE2 多宿主到设备 PE3 和 PE4。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改与您的网络配置匹配所需的任何详细信息,将命令复制并粘贴到层次结构级别的 CLI [edit]
中,然后从配置模式进入 commit
。
CE1
set chassis aggregated-devices ethernet device-count 50 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 30 set interfaces ge-1/0/2 flexible-vlan-tagging set interfaces ge-1/0/2 encapsulation flexible-ethernet-services set interfaces ge-1/0/2 unit 1 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 1 vlan-id 20 set interfaces ge-1/0/5 flexible-vlan-tagging set interfaces ge-1/0/5 encapsulation flexible-ethernet-services set interfaces ge-1/0/5 unit 2 encapsulation vlan-bridge set interfaces ge-1/0/5 unit 2 vlan-id 30 set interfaces ge-1/0/6 gigether-options 802.3ad ae0 set interfaces ge-1/0/7 gigether-options 802.3ad ae0 set interfaces ge-1/0/8 flexible-vlan-tagging set interfaces ge-1/0/8 encapsulation flexible-ethernet-services set interfaces ge-1/0/8 unit 1 encapsulation vlan-bridge set interfaces ge-1/0/8 unit 1 vlan-id 20 set interfaces ge-1/0/9 flexible-vlan-tagging set interfaces ge-1/0/9 encapsulation flexible-ethernet-services set interfaces ge-1/0/9 unit 2 encapsulation vlan-bridge set interfaces ge-1/0/9 unit 2 vlan-id 30 set interfaces ge-1/1/4 gigether-options 802.3ad ae0 set interfaces ge-1/1/5 gigether-options 802.3ad ae0 set interfaces ge-1/1/6 gigether-options 802.3ad ae0 set interfaces ge-1/1/9 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 aggregated-ether-options minimum-links 1 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set bridge-domains bd10 domain-type bridge set bridge-domains bd10 vlan-id 10 set bridge-domains bd10 interface ae0.0 set bridge-domains bd10 interface xe-0/0/3.0 set bridge-domains bd20 domain-type bridge set bridge-domains bd20 vlan-id 20 set bridge-domains bd20 interface xe-0/0/3.1 set bridge-domains bd20 interface ge-1/0/8.1 set bridge-domains bd20 interface ge-1/0/2.1 set bridge-domains bd30 domain-type bridge set bridge-domains bd30 vlan-id 30 set bridge-domains bd30 interface xe-0/0/3.2 set bridge-domains bd30 interface ge-1/0/9.2 set bridge-domains bd30 interface ge-1/0/5.2
CE2
set chassis aggregated-devices ethernet device-count 50 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 0 family bridge filter output f_log 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 30 set interfaces ge-1/0/2 flexible-vlan-tagging set interfaces ge-1/0/2 encapsulation flexible-ethernet-services set interfaces ge-1/0/2 unit 0 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 0 vlan-id 10 set interfaces ge-1/0/2 unit 1 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 1 vlan-id 20 set interfaces ge-1/0/2 unit 2 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 2 vlan-id 30 set interfaces ge-1/1/4 flexible-vlan-tagging set interfaces ge-1/1/4 encapsulation flexible-ethernet-services set interfaces ge-1/1/4 unit 0 encapsulation vlan-bridge set interfaces ge-1/1/4 unit 0 vlan-id 10 set interfaces ge-1/1/4 unit 1 encapsulation vlan-bridge set interfaces ge-1/1/4 unit 1 vlan-id 20 set interfaces ge-1/1/4 unit 2 encapsulation vlan-bridge set interfaces ge-1/1/4 unit 2 vlan-id 30 set bridge-domains bd10 domain-type bridge set bridge-domains bd10 vlan-id 10 set bridge-domains bd10 interface ge-1/1/4.0 set bridge-domains bd10 interface ge-1/0/2.0 set bridge-domains bd10 interface xe-0/0/3.0 set bridge-domains bd20 domain-type bridge set bridge-domains bd20 vlan-id 20 set bridge-domains bd20 interface ge-1/1/4.1 set bridge-domains bd20 interface ge-1/0/2.1 set bridge-domains bd20 interface xe-0/0/3.1 set bridge-domains bd30 domain-type bridge set bridge-domains bd30 vlan-id 30 set bridge-domains bd30 interface xe-0/0/3.2 set bridge-domains bd30 interface ge-1/1/4.2 set bridge-domains bd30 interface ge-1/0/2.2
PE1
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-1/0/1 flexible-vlan-tagging set interfaces xe-1/0/1 encapsulation flexible-ethernet-services set interfaces xe-1/0/1 unit 0 encapsulation vlan-bridge set interfaces xe-1/0/1 unit 0 vlan-id 10 set interfaces xe-1/2/3 gigether-options 802.3ad ae13 set interfaces xe-1/3/0 gigether-options 802.3ad ae13 set interfaces ge-2/0/2 gigether-options 802.3ad ae12 set interfaces ge-2/0/3 gigether-options 802.3ad ae12 set interfaces ge-2/0/6 gigether-options 802.3ad ae0 set interfaces ge-2/0/7 gigether-options 802.3ad ae0 set interfaces ge-2/0/8 flexible-vlan-tagging set interfaces ge-2/0/8 encapsulation flexible-ethernet-services set interfaces ge-2/0/8 esi 00:22:22:22:22:22:22:22:22:22 set interfaces ge-2/0/8 esi single-active set interfaces ge-2/0/8 esi source-bmac 00:22:22:22:22:22 set interfaces ge-2/0/8 unit 0 encapsulation vlan-bridge set interfaces ge-2/0/8 unit 0 vlan-id 20 set interfaces ge-2/0/9 flexible-vlan-tagging set interfaces ge-2/0/9 encapsulation flexible-ethernet-services set interfaces ge-2/0/9 esi 00:33:33:33:33:33:33:33:33:33 set interfaces ge-2/0/9 esi single-active set interfaces ge-2/0/9 esi source-bmac 00:33:33:33:33:33 set interfaces ge-2/0/9 unit 0 encapsulation vlan-bridge set interfaces ge-2/0/9 unit 0 vlan-id 30 set interfaces ge-2/1/0 gigether-options 802.3ad ae14 set interfaces ge-2/1/5 gigether-options 802.3ad ae14 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi single-active set interfaces ae0 esi source-bmac 00:11:11:11:11:11 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set interfaces ae12 flexible-vlan-tagging set interfaces ae12 encapsulation flexible-ethernet-services set interfaces ae12 aggregated-ether-options minimum-links 1 set interfaces ae12 unit 0 vlan-id 1200 set interfaces ae12 unit 0 family inet address 172.16.0.1/16 set interfaces ae12 unit 0 family iso set interfaces ae12 unit 0 family mpls set interfaces ae13 flexible-vlan-tagging set interfaces ae13 encapsulation flexible-ethernet-services set interfaces ae13 aggregated-ether-options minimum-links 1 set interfaces ae13 unit 0 vlan-tags outer 1300 set interfaces ae13 unit 0 vlan-tags inner 13 set interfaces ae13 unit 0 family inet address 172.17.0.1/16 set interfaces ae13 unit 0 family iso set interfaces ae13 unit 0 family mpls set interfaces ae14 aggregated-ether-options minimum-links 1 set interfaces ae14 unit 0 family inet address 172.18.0.1/16 set interfaces ae14 unit 0 family iso set interfaces ae14 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.1/8 primary set interfaces lo0 unit 0 family iso 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 pe1tope2 primary direct_to_pe2 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 label-switched-path pe1tope3 primary direct_to_pe3 set protocols mpls label-switched-path pe1tope4 from 127.0.0.1 set protocols mpls label-switched-path pe1tope4 to 127.0.0.4 set protocols mpls label-switched-path pe1tope4 primary direct_to_pe4 set protocols mpls path direct_to_pe2 100.12.1.2 strict set protocols mpls path direct_to_pe3 100.13.1.3 strict set protocols mpls path direct_to_pe4 100.14.1.4 strict 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 bgp group ibgp neighbor 127.0.0.4 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:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 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 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 ae0.0 set routing-instances pbn1 bridge-domains bda interface xe-1/0/1.0 set routing-instances pbn1 bridge-domains bda interface ge-2/0/9.0 set routing-instances pbn1 bridge-domains bda interface ge-2/0/8.0 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
PE2
set chassis aggregated-devices ethernet device-count 50 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 ge-1/2/0 gigether-options 802.3ad ae12 set interfaces ge-1/2/1 gigether-options 802.3ad ae12 set interfaces ge-1/2/2 unit 0 family inet address 172.19.0.1/16 set interfaces ge-1/2/2 unit 0 family iso set interfaces ge-1/2/2 unit 0 family mpls set interfaces ge-1/3/1 unit 0 family inet address 172.20.0.1/16 set interfaces ge-1/3/1 unit 0 family iso set interfaces ge-1/3/1 unit 0 family mpls set interfaces ge-1/3/3 gigether-options 802.3ad ae0 set interfaces ge-1/3/5 flexible-vlan-tagging set interfaces ge-1/3/5 encapsulation flexible-ethernet-services set interfaces ge-1/3/5 esi 00:22:22:22:22:22:22:22:22:22 set interfaces ge-1/3/5 esi single-active set interfaces ge-1/3/5 esi source-bmac 00:22:22:22:22:23 set interfaces ge-1/3/5 unit 0 encapsulation vlan-bridge set interfaces ge-1/3/5 unit 0 vlan-id 20 set interfaces ge-1/3/6 flexible-vlan-tagging set interfaces ge-1/3/6 encapsulation flexible-ethernet-services set interfaces ge-1/3/6 esi 00:33:33:33:33:33:33:33:33:33 set interfaces ge-1/3/6 esi single-active set interfaces ge-1/3/6 esi source-bmac 00:33:33:33:33:34 set interfaces ge-1/3/6 unit 0 encapsulation vlan-bridge set interfaces ge-1/3/6 unit 0 vlan-id 30 set interfaces ge-1/3/9 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi single-active set interfaces ae0 esi source-bmac 00:11:11:11:11:12 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set interfaces ae0 unit 0 family bridge filter output f_log set interfaces ae12 flexible-vlan-tagging set interfaces ae12 encapsulation flexible-ethernet-services set interfaces ae12 aggregated-ether-options minimum-links 1 set interfaces ae12 unit 0 vlan-id 1200 set interfaces ae12 unit 0 family inet address 100.12.1.2/24 set interfaces ae12 unit 0 family iso set interfaces ae12 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.2/8 primary set interfaces lo0 unit 0 family iso 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 pe2tope1 primary direct_to_pe1 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 label-switched-path pe2tope3 primary direct_to_pe3 set protocols mpls label-switched-path pe2tope4 from 127.0.0.2 set protocols mpls label-switched-path pe2tope4 to 127.0.0.4 set protocols mpls label-switched-path pe2tope4 primary direct_to_pe4 set protocols mpls path direct_to_pe1 172.16.0.1 strict set protocols mpls path direct_to_pe3 100.23.1.3 strict set protocols mpls path direct_to_pe4 172.20.0.2 strict 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 bgp group ibgp neighbor 127.0.0.4 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface all 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:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 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 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 ae0.0 set routing-instances pbn1 bridge-domains bda interface xe-0/0/3.0 set routing-instances pbn1 bridge-domains bda interface ge-1/3/6.0 set routing-instances pbn1 bridge-domains bda interface ge-1/3/5.0 set routing-instances pbn1 bridge-domains bda bridge-options mac-statistics 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
PE3
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-0/0/0 gigether-options 802.3ad ae13 set interfaces xe-0/0/1 flexible-vlan-tagging set interfaces xe-0/0/1 encapsulation flexible-ethernet-services set interfaces xe-0/0/1 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/1 unit 0 vlan-id 10 set interfaces xe-0/0/2 gigether-options 802.3ad ae13 set interfaces ge-1/0/4 unit 0 family inet address 100.23.1.3/24 set interfaces ge-1/0/4 unit 0 family iso set interfaces ge-1/0/4 unit 0 family mpls set interfaces ge-1/0/6 gigether-options 802.3ad ae0 set interfaces ge-1/0/7 gigether-options 802.3ad ae0 set interfaces ge-1/0/8 flexible-vlan-tagging set interfaces ge-1/0/8 encapsulation flexible-ethernet-services set interfaces ge-1/0/8 esi 00:44:44:44:44:44:44:44:44:44 set interfaces ge-1/0/8 esi single-active set interfaces ge-1/0/8 esi source-bmac 00:44:44:44:44:44 set interfaces ge-1/0/8 unit 0 encapsulation vlan-bridge set interfaces ge-1/0/8 unit 0 vlan-id 10 set interfaces ge-1/1/5 unit 0 family inet address 172.21.0.1/16 set interfaces ge-1/1/5 unit 0 family iso set interfaces ge-1/1/5 unit 0 family mpls set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi single-active set interfaces ae0 esi source-bmac 00:11:11:11:11:13 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set interfaces ae13 flexible-vlan-tagging set interfaces ae13 encapsulation flexible-ethernet-services set interfaces ae13 aggregated-ether-options minimum-links 1 set interfaces ae13 unit 0 vlan-tags outer 1300 set interfaces ae13 unit 0 vlan-tags inner 13 set interfaces ae13 unit 0 family inet address 100.13.1.3/24 set interfaces ae13 unit 0 family iso set interfaces ae13 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 lo0 unit 0 family iso 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 pe3tope1 primary direct_to_pe1 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 label-switched-path pe3tope2 primary direct_to_pe2 set protocols mpls label-switched-path pe3tope4 from 127.0.0.3 set protocols mpls label-switched-path pe3tope4 to 127.0.0.4 set protocols mpls label-switched-path pe3tope4 primary direct_to_pe4 set protocols mpls path direct_to_pe1 172.17.0.1 strict set protocols mpls path direct_to_pe2 172.19.0.1 strict set protocols mpls path direct_to_pe4 172.21.0.2 strict 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 bgp group ibgp neighbor 127.0.0.4 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:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn traceoptions file pbbevpn.log set routing-instances pbbn1 protocols evpn traceoptions file size 500m set routing-instances pbbn1 protocols evpn traceoptions flag all set routing-instances pbbn1 protocols evpn control-word set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 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 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 ae0.0 set routing-instances pbn1 bridge-domains bda interface xe-0/0/1.0 set routing-instances pbn1 bridge-domains bda interface ge-1/0/8.0 set routing-instances pbn1 bridge-domains bda bridge-options mac-statistics 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
PE4
set chassis aggregated-devices ethernet device-count 50 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 ge-0/2/1 flexible-vlan-tagging set interfaces ge-0/2/1 encapsulation flexible-ethernet-services set interfaces ge-0/2/1 esi 00:44:44:44:44:44:44:44:44:44 set interfaces ge-0/2/1 esi single-active set interfaces ge-0/2/1 esi source-bmac 00:44:44:44:44:45 set interfaces ge-0/2/1 unit 0 encapsulation vlan-bridge set interfaces ge-0/2/1 unit 0 vlan-id 10 set interfaces ge-0/2/5 unit 0 family inet address 172.21.0.2/16 set interfaces ge-0/2/5 unit 0 family iso set interfaces ge-0/2/5 unit 0 family mpls set interfaces ge-0/2/9 gigether-options 802.3ad ae14 set interfaces ge-0/3/1 unit 0 family inet address 172.20.0.2/16 set interfaces ge-0/3/1 unit 0 family iso set interfaces ge-0/3/1 unit 0 family mpls set interfaces ge-0/3/3 gigether-options 802.3ad ae14 set interfaces ae14 aggregated-ether-options minimum-links 1 set interfaces ae14 unit 0 family inet address 100.14.1.4/24 set interfaces ae14 unit 0 family iso set interfaces ae14 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.4/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.4 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path pe4tope1 from 127.0.0.4 set protocols mpls label-switched-path pe4tope1 to 127.0.0.1 set protocols mpls label-switched-path pe4tope1 primary direct_to_pe1 set protocols mpls label-switched-path pe4tope2 from 127.0.0.4 set protocols mpls label-switched-path pe4tope2 to 127.0.0.2 set protocols mpls label-switched-path pe4tope2 primary direct_to_pe2 set protocols mpls label-switched-path pe4tope3 from 127.0.0.4 set protocols mpls label-switched-path pe4tope3 to 127.0.0.3 set protocols mpls label-switched-path pe4tope3 primary direct_to_pe3 set protocols mpls path direct_to_pe1 172.18.0.1 strict set protocols mpls path direct_to_pe2 172.20.0.1 strict set protocols mpls path direct_to_pe3 172.21.0.1 strict 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.4 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 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.4:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 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 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 bda interface ge-0/2/1.0 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
配置设备 CE1
分步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器。
要配置设备 CE1:
设置设备 CE1 上的聚合以太网接口数量。
[edit chassis] user@CE1# set aggregated-devices ethernet device-count 50
将设备 CE1 的网络服务设置为增强型互联网协议,并使用增强模式功能。
[edit chassis] user@CE1# set chassis network-services enhanced-ip
配置设备 CE1 的接口。
[edit interfaces] user@CE1# set interfaces xe-0/0/3 flexible-vlan-tagging user@CE1# set interfaces xe-0/0/3 encapsulation flexible-ethernet-services user@CE1# set interfaces xe-0/0/3 unit 0 encapsulation vlan-bridge user@CE1# set interfaces xe-0/0/3 unit 0 vlan-id 10 user@CE1# set interfaces xe-0/0/3 unit 1 encapsulation vlan-bridge user@CE1# set interfaces xe-0/0/3 unit 1 vlan-id 20 user@CE1# set interfaces xe-0/0/3 unit 2 encapsulation vlan-bridge user@CE1# set interfaces xe-0/0/3 unit 2 vlan-id 30 user@CE1# set interfaces ge-1/0/2 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/2 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/2 unit 1 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/2 unit 1 vlan-id 20 user@CE1# set interfaces ge-1/0/5 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/5 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/5 unit 2 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/5 unit 2 vlan-id 30 user@CE1# set interfaces ge-1/0/6 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/0/7 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/0/8 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/8 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/8 unit 1 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/8 unit 1 vlan-id 20 user@CE1# set interfaces ge-1/0/9 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/9 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/9 unit 2 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/9 unit 2 vlan-id 30 user@CE1# set interfaces ge-1/1/4 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/1/5 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/1/6 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/1/9 gigether-options 802.3ad ae0
在设备 CE1 上配置聚合以太网捆绑包。
[edit interfaces] user@CE1# set interfaces ae0 flexible-vlan-tagging user@CE1# set interfaces ae0 encapsulation flexible-ethernet-services user@CE1# set interfaces ae0 aggregated-ether-options minimum-links 1 user@CE1# set interfaces ae0 unit 0 encapsulation vlan-bridge user@CE1# set interfaces ae0 unit 0 vlan-id 10
在设备 CE1 上配置桥接域。
[edit bridge-domains] user@CE1# set bd10 domain-type bridge user@CE1# set bd10 vlan-id 10 user@CE1# set bd10 interface ae0.0 user@CE1# set bd10 interface xe-0/0/3.0 user@CE1# set bd20 domain-type bridge user@CE1# set bd20 vlan-id 20 user@CE1# set bd20 interface xe-0/0/3.1 user@CE1# set bd20 interface ge-1/0/8.1 user@CE1# set bd20 interface ge-1/0/2.1 user@CE1# set bd30 domain-type bridge user@CE1# set bd30 vlan-id 30 user@CE1# set bd30 interface xe-0/0/3.2 user@CE1# set bd30 interface ge-1/0/9.2 user@CE1# set bd30 interface ge-1/0/5.2
结果
在配置模式下,输入 show chassis
、 show interfaces
和 show bridge-domains
命令确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@CE1# show chassis aggregated-devices { ethernet { device-count 50; } } network-services enhanced-ip;
user@CE1# show interfaces xe-0/0/3 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 10; } unit 1 { encapsulation vlan-bridge; vlan-id 20; } unit 2 { encapsulation vlan-bridge; vlan-id 30; } } ge-1/0/2 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 1 { encapsulation vlan-bridge; vlan-id 20; } } ge-1/0/5 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 2 { encapsulation vlan-bridge; vlan-id 30; } } ge-1/0/6 { gigether-options { 802.3ad ae0; } } ge-1/0/7 { gigether-options { 802.3ad ae0; } } ge-1/0/8 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 1 { encapsulation vlan-bridge; vlan-id 20; } } ge-1/0/9 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 2 { encapsulation vlan-bridge; vlan-id 30; } } ge-1/1/4 { gigether-options { 802.3ad ae0; } } ge-1/1/5 { gigether-options { 802.3ad ae0; } } ge-1/1/6 { gigether-options { 802.3ad ae0; } } ge-1/1/9 { gigether-options { 802.3ad ae0; } } ae0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { minimum-links 1; } unit 0 { encapsulation vlan-bridge; vlan-id 10; } }
user@CE1# show bridge-domains bd10 { domain-type bridge; vlan-id 10; interface ae0.0; interface xe-0/0/3.0; } bd20 { domain-type bridge; vlan-id 20; interface xe-0/0/3.1; interface ge-1/0/8.1; interface ge-1/0/2.1; } bd30 { domain-type bridge; vlan-id 30; interface xe-0/0/3.2; interface ge-1/0/9.2; interface ge-1/0/5.2; }
如果完成设备配置,请从配置模式输入 commit
。
配置设备 PE1
分步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅 CLI 用户指南中的在配置模式下使用 CLI 编辑器。
要配置设备 PE1:
设置设备 PE1 上的聚合以太网接口数量。
[edit chassis] user@PE1# set aggregated-devices ethernet device-count 50
将设备 PE1 的网络服务设置为增强型互联网协议,并使用增强模式功能。
[edit chassis] user@PE1# set network-services enhanced-ip
配置设备 PE1 面向 CE 的接口。
[edit interfaces] user@PE1# set ge-2/0/6 gigether-options 802.3ad ae0 user@PE1# set ge-2/0/7 gigether-options 802.3ad ae0 user@PE1# set ge-2/0/8 flexible-vlan-tagging user@PE1# set ge-2/0/8 encapsulation flexible-ethernet-services user@PE1# set ge-2/0/8 unit 0 encapsulation vlan-bridge user@PE1# set ge-2/0/8 unit 0 vlan-id 20 user@PE1# set ge-2/0/9 flexible-vlan-tagging user@PE1# set ge-2/0/9 encapsulation flexible-ethernet-services user@PE1# set ge-2/0/9 unit 0 encapsulation vlan-bridge user@PE1# set ge-2/0/9 unit 0 vlan-id 30
在连接到设备 CE1 的设备 PE1 上配置聚合以太网捆绑包。
[edit interfaces] user@PE1# set ae0 flexible-vlan-tagging user@PE1# set ae0 encapsulation flexible-ethernet-services user@PE1# set ae0 unit 0 encapsulation vlan-bridge user@PE1# set ae0 unit 0 vlan-id 10
为面向 CE 的接口和连接到多宿主客户站点的聚合以太网捆绑包配置 EVPN 多宿主参数。
[edit interfaces] user@PE1# set ge-2/0/8 esi 00:22:22:22:22:22:22:22:22:22 user@PE1# set ge-2/0/8 esi single-active user@PE1# set ge-2/0/8 esi source-bmac 00:22:22:22:22:22 user@PE1# set ge-2/0/9 esi 00:33:33:33:33:33:33:33:33:33 user@PE1# set ge-2/0/9 esi single-active user@PE1# set ge-2/0/9 esi source-bmac 00:33:33:33:33:33 user@PE1# set ae0 esi 00:11:11:11:11:11:11:11:11:11 user@PE1# set ae0 esi single-active user@PE1# set ae0 esi source-bmac 00:11:11:11:11:11
注意:在此示例中,EVPN 多宿主在活动/备用模式下运行。要配置主动/主动 EVPN 多宿主,请在层次结构级别包含
active-active
语句[edit interfaces interface-name esi]
,而不是single-active
语句。配置连接到设备 PE2、PE3 和 PE4 的设备 PE1 接口。
[edit interfaces] user@PE1# set ge-2/0/2 gigether-options 802.3ad ae12 user@PE1# set ge-2/0/3 gigether-options 802.3ad ae12 user@PE1# set xe-1/2/3 gigether-options 802.3ad ae13 user@PE1# set xe-1/3/0 gigether-options 802.3ad ae13 user@PE1# set ge-2/1/0 gigether-options 802.3ad ae14 user@PE1# set ge-2/1/5 gigether-options 802.3ad ae14
在设备 PE1 上配置连接到设备 PE2、PE3 和 PE4 的聚合以太网捆绑包。
[edit interfaces] user@PE1# set ae12 flexible-vlan-tagging user@PE1# set ae12 encapsulation flexible-ethernet-services user@PE1# set ae12 aggregated-ether-options minimum-links 1 user@PE1# set ae12 unit 0 vlan-id 1200 user@PE1# set ae12 unit 0 family inet address 172.16.0.1/16 user@PE1# set ae12 unit 0 family iso user@PE1# set ae12 unit 0 family mpls user@PE1# set ae13 flexible-vlan-tagging user@PE1# set ae13 encapsulation flexible-ethernet-services user@PE1# set ae13 aggregated-ether-options minimum-links 1 user@PE1# set ae13 unit 0 vlan-tags outer 1300 user@PE1# set ae13 unit 0 vlan-tags inner 13 user@PE1# set ae13 unit 0 family inet address 172.17.0.1/16 user@PE1# set ae13 unit 0 family iso user@PE1# set ae13 unit 0 family mpls user@PE1# set ae14 aggregated-ether-options minimum-links 1 user@PE1# set ae14 unit 0 family inet address 172.18.0.1/16 user@PE1# set ae14 unit 0 family iso user@PE1# set ae14 unit 0 family mpls
配置连接到主机的设备 PE1 的接口。
[edit interfaces] user@PE1# set xe-1/0/1 flexible-vlan-tagging user@PE1# set xe-1/0/1 encapsulation flexible-ethernet-services user@PE1# set xe-1/0/1 unit 0 encapsulation vlan-bridge user@PE1# set xe-1/0/1 unit 0 vlan-id 10
配置设备 PE1 的环路接口。
[edit interfaces] user@PE1# set lo0 unit 0 family inet address 127.0.0.1/8 primary user@PE1# set lo0 unit 0 family iso
在设备 PE1 上配置客户主干端口 (CBP) 接口。
[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
在设备 PE1 上配置提供程序实例端口 (PIP)。
[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
配置设备 PE1 的路由器 ID 和自治系统编号。
[edit routing-options] user@PE1# set router-id 127.0.0.1 user@PE1# set autonomous-system 65221
在设备 PE1 的所有接口上配置 RSVP,管理接口除外。
[edit protocols] user@PE1# set rsvp interface all user@PE1# set rsvp interface fxp0.0 disable
在设备 PE1 的所有接口上配置 MPLS,管理接口除外。
[edit protocols] user@PE1# set mpls interface all user@PE1# set mpls interface fxp0.0 disable
配置从设备 PE1 到所有其他 PE 设备的 LSP。
[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 pe1tope2 primary direct_to_pe2 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 user@PE1# set mpls label-switched-path pe1tope3 primary direct_to_pe3 user@PE1# set mpls label-switched-path pe1tope4 from 127.0.0.1 user@PE1# set mpls label-switched-path pe1tope4 to 127.0.0.4 user@PE1# set mpls label-switched-path pe1tope4 primary direct_to_pe4
配置从设备 PE1 到所有其他 PE 设备的 MPLS 路径。
[edit protocols] user@PE1# set mpls path direct_to_pe2 100.12.1.2 strict user@PE1# set mpls path direct_to_pe3 100.13.1.3 strict user@PE1# set mpls path direct_to_pe4 100.14.1.4 strict
在系列 EVPN 下配置从设备 PE1 到所有其他 PE 设备的内部 BGP 会话。
[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 user@PE1# set bgp group ibgp neighbor 127.0.0.4
在 PE1 设备的所有接口上配置 OSPF,管理接口除外。
[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
在设备 PE1 上配置类型为虚拟交换机的客户路由实例(I 组件)。将 CBP 接口、路由识别符以及虚拟路由和转发 (VRF) 目标值分配给 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:1 user@PE1# set pbbn1 vrf-target target:100:1
从客户路由实例配置 PBB-EVPN 集成。将扩展的 I-SID 列表和桥接域分配给路由实例。
[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 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
在设备PE1上配置虚拟交换机类型的提供商路由实例。将 PBP 接口和桥接域分配给路由实例。
[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 ae0.0 user@PE1# set pbn1 bridge-domains bda interface xe-1/0/1.0 user@PE1# set pbn1 bridge-domains bda interface ge-2/0/9.0 user@PE1# set pbn1 bridge-domains bda interface ge-2/0/8.0
在客户路由实例中配置对等 PBBN 路由实例。
[edit routing-instances] user@PE1# set pbn1 pbb-options peer-instance pbbn1
配置客户路由实例中要受支持的服务组。
[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
结果
在配置模式下,输入 show chassis
、 show interfaces
、 show protocols
routing-options
和show routing-instances
命令来确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@PE1# show chassis aggregated-devices { ethernet { device-count 50; } } network-services enhanced-ip;
user@PE1# show interfaces xe-1/0/1 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 0 { encapsulation vlan-bridge; vlan-id 10; } } xe-1/2/3 { gigether-options { 802.3ad ae13; } } xe-1/3/0 { gigether-options { 802.3ad ae13; } } ge-2/0/2 { gigether-options { 802.3ad ae12; } } ge-2/0/3 { gigether-options { 802.3ad ae12; } } ge-2/0/6 { gigether-options { 802.3ad ae0; } } ge-2/0/7 { gigether-options { 802.3ad ae0; } } ge-2/0/8 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; esi { 00:22:22:22:22:22:22:22:22:22; single-active; source-bmac 00:22:22:22:22:22; } unit 0 { encapsulation vlan-bridge; vlan-id 20; } } ge-2/0/9 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; esi { 00:33:33:33:33:33:33:33:33:33; single-active; source-bmac 00:33:33:33:33:33; } unit 0 { encapsulation vlan-bridge; vlan-id 30; } } ge-2/1/0 { gigether-options { 802.3ad ae14; } } ge-2/1/5 { gigether-options { 802.3ad ae14; } } ae0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; esi { 00:11:11:11:11:11:11:11:11:11; single-active; source-bmac 00:11:11:11:11:11; } unit 0 { encapsulation vlan-bridge; vlan-id 10; } } ae12 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { minimum-links 1; } unit 0 { vlan-id 1200; family inet { address 172.16.0.1/16; } family iso; family mpls; } } ae13 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { minimum-links 1; } unit 0 { vlan-tags outer 1300 inner 13; family inet { address 172.17.0.1/16; } family iso; family mpls; } } ae14 { aggregated-ether-options { minimum-links 1; } unit 0 { family inet { address 172.18.0.1/16; } family iso; family mpls; } } 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; } } } lo0 { unit 0 { family inet { address 127.0.0.1/8 { primary; } } family iso; } } 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; primary direct_to_pe2; } label-switched-path pe1tope3 { from 127.0.0.1; to 127.0.0.3; primary direct_to_pe3; } label-switched-path pe1tope4 { from 127.0.0.1; to 127.0.0.4; primary direct_to_pe4; } path direct_to_pe2 { 100.12.1.2 strict; } path direct_to_pe3 { 100.13.1.3 strict; } path direct_to_pe4 { 100.14.1.4 strict; } 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; neighbor 127.0.0.4; } } 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:1; vrf-target target:100:1; protocols { evpn { pbb-evpn-core; extended-isid-list 1000; } } bridge-domains { bda { vlan-id 100; isid-list 1000; vlan-id-scope-local; } } } pbn1 { instance-type virtual-switch; interface pip0.0; bridge-domains { bda { domain-type bridge; vlan-id 10; interface ae0.0; interface xe-1/0/1.0; interface ge-2/0/9.0; interface ge-2/0/8.0; } } pbb-options { peer-instance pbbn1; } service-groups { sga { service-type elan; pbb-service-options { isid 1000 vlan-id-list 10; } } } }
如果完成设备配置,请从配置模式输入 commit
。
验证
确认配置工作正常。
验证 BGP 对等状态
目的
验证是否已在 PE 设备之间建立 BGP 会话。
行动
在操作模式下,运行 show bgp summary
命令。
user@PE1> show bgp summary Groups: 1 Peers: 3 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.evpn.0 13 13 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 127.0.0.2 65221 10 8 0 0 42 Establ bgp.evpn.0: 6/6/6/0 pbbn1.evpn.0: 3/3/3/0 __default_evpn__.evpn.0: 3/3/3/0 127.0.0.3 65221 8 8 0 0 40 Establ bgp.evpn.0: 4/4/4/0 pbbn1.evpn.0: 3/3/3/0 __default_evpn__.evpn.0: 1/1/1/0 127.0.0.4 65221 9 11 0 0 1:04 Establ bgp.evpn.0: 3/3/3/0 pbbn1.evpn.0: 3/3/3/0 __default_evpn__.evpn.0: 0/0/0/0
意义
在 PE 设备之间建立 BGP 会话。
验证 MAC 表条目
目的
验证在所有 PE 上的 MAC 表中获知的 rbeb
接口数。
行动
在操作模式下,运行 show bgp summary
命令。
user@PE1> show bridge mac-table count instance pbn1 bridge-domain bda 10 MAC address learned in routing instance pbn1 bridge domain bda MAC address count per interface within routing instance: Logical interface MAC count ae0.0:10 0 ge-2/0/8.0:10 10 ge-2/0/9.0:10 0 rbeb.32772 0 rbeb.32771 0 xe-1/0/0.0:10 0 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count 10 10
意义
对于 VLAN ID 10,已在设备 PE1 的 MAC 表中获知 10 个 MAC 地址。
验证 EVPN 数据库
目的
验证设备 PE4 上的 EVPN 数据库信息。
行动
在操作模式下,运行 show evpn database
命令。
user@PE1> show evpn database Instance: pbbn1 VLAN DomainId MAC address Active source Timestamp IP address 1000 00:11:11:11:11:11 127.0.0.1 Jan 26 12:09:29 1000 00:11:11:11:11:12 127.0.0.2 Jan 26 12:09:38 1000 00:1d:b5:a2:47:b0 127.0.0.1 Jan 26 12:09:10 1000 00:22:22:22:22:22 127.0.0.1 Jan 26 12:09:29 1000 00:23:9c:5e:a7:b0 Local Jan 26 12:08:02 1000 00:23:9c:f0:f9:b0 127.0.0.3 Jan 26 12:09:30 1000 00:33:33:33:33:33 127.0.0.1 Jan 26 12:09:29 1000 00:44:44:44:44:44 127.0.0.3 Jan 26 12:09:34 1000 00:44:44:44:44:45 Local Jan 26 12:09:28 1000 80:71:1f:c1:ed:b0 127.0.0.2 Jan 26 12:09:31
验证 EVPN 路由实例
目的
验证所有 PE 设备上的 EVPN 路由实例信息。
行动
在操作模式下,运行 show evpn routing-instance
命令。
user@PE1> show evpn routing-instance Instance: pbbn1 Route Distinguisher: 127.0.0.1:1 Per-instance MAC route label: 300080 Per-instance multicast route label: 300096 PBB EVPN Core enabled Control word enabled MAC database status Local Remote MAC advertisements: 4 6 MAC+IP advertisements: 0 0 Default gateway MAC advertisements: 0 0 Number of local interfaces: 4 (4 up) Interface name ESI Mode Status AC-Role ae0.0 00:11:11:11:11:11:11:11:11:11 single-active Up Root cbp0.0 00:00:00:00:00:00:00:00:00:00 single-homed Up Root ge-2/0/8.0 00:22:22:22:22:22:22:22:22:22 single-active Up Root ge-2/0/9.0 00:33:33:33:33:33:33:33:33:33 single-active Up Root Number of IRB interfaces: 0 (0 up) Number of bridge domains: 1 VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label SG sync IM core nexthop 1000 0 0 Extended Enabled 300096 Disabled Number of Bundle bridge domains: 0 Number of neighbors: 3 Address MAC MAC+IP AD IM ES Leaf-label 127.0.0.2 2 0 0 1 0 127.0.0.3 2 0 0 1 0 127.0.0.4 2 0 0 1 0 Number of ethernet segments: 3 ESI: 00:11:11:11:11:11:11:11:11:11 Status: Resolved by IFL ae0.0 Local interface: ae0.0, Status: Up/Blocking Designated forwarder: 127.0.0.2 Backup forwarder: 127.0.0.1 Backup forwarder: 127.0.0.3 Last designated forwarder update: Jan 26 12:43:42 Minimum ISID: 1000 ESI: 00:22:22:22:22:22:22:22:22:22 Status: Resolved by IFL ge-2/0/8.0 Local interface: ge-2/0/8.0, Status: Up/Forwarding Designated forwarder: 127.0.0.1 Backup forwarder: 127.0.0.2 Last designated forwarder update: Jan 26 12:43:42 Minimum ISID: 1000 ESI: 00:33:33:33:33:33:33:33:33:33 Status: Resolved by IFL ge-2/0/9.0 Local interface: ge-2/0/9.0, Status: Up/Forwarding Designated forwarder: 127.0.0.1 Backup forwarder: 127.0.0.2 Last designated forwarder update: Jan 26 12:43:42 Minimum ISID: 1000
user@PE2> show evpn routing-instance Instance: pbbn1 Route Distinguisher: 127.0.0.2:1 Per-instance MAC route label: 338721 Per-instance multicast route label: 338737 PBB EVPN Core enabled Control word enabled MAC database status Local Remote MAC advertisements: 2 8 MAC+IP advertisements: 0 0 Default gateway MAC advertisements: 0 0 Number of local interfaces: 4 (4 up) Interface name ESI Mode Status AC-Role ae0.0 00:11:11:11:11:11:11:11:11:11 single-active Up Root cbp0.0 00:00:00:00:00:00:00:00:00:00 single-homed Up Root ge-1/3/5.0 00:22:22:22:22:22:22:22:22:22 single-active Up Root ge-1/3/6.0 00:33:33:33:33:33:33:33:33:33 single-active Up Root Number of IRB interfaces: 0 (0 up) Number of bridge domains: 1 VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label SG sync IM core nexthop 1000 0 0 Extended Enabled 338737 Disabled Number of Bundle bridge domains: 0 Number of neighbors: 3 Address MAC MAC+IP AD IM ES Leaf-label 127.0.0.1 4 0 0 1 0 127.0.0.3 2 0 0 1 0 127.0.0.4 2 0 0 1 0 Number of ethernet segments: 3 ESI: 00:11:11:11:11:11:11:11:11:11 Status: Resolved by IFL ae0.0 Local interface: ae0.0, Status: Up/Forwarding Designated forwarder: 127.0.0.2 Backup forwarder: 127.0.0.1 Backup forwarder: 127.0.0.3 Last designated forwarder update: Jan 26 12:09:37 Minimum ISID: 1000 ESI: 00:22:22:22:22:22:22:22:22:22 Status: Resolved by IFL ge-1/3/5.0 Local interface: ge-1/3/5.0, Status: Up/Blocking Designated forwarder: 127.0.0.1 Backup forwarder: 127.0.0.2 Last designated forwarder update: Jan 26 12:09:33 Minimum ISID: 1000 ESI: 00:33:33:33:33:33:33:33:33:33 Status: Resolved by IFL ge-1/3/6.0 Local interface: ge-1/3/6.0, Status: Up/Blocking Designated forwarder: 127.0.0.1 Backup forwarder: 127.0.0.2 Last designated forwarder update: Jan 26 12:09:33 Minimum ISID: 1000
user@PE3> show evpn routing-instance Instance: pbbn1 Route Distinguisher: 127.0.0.3:1 Per-instance MAC route label: 338833 Per-instance multicast route label: 338849 PBB EVPN Core enabled Control word enabled MAC database status Local Remote MAC advertisements: 2 8 MAC+IP advertisements: 0 0 Default gateway MAC advertisements: 0 0 Number of local interfaces: 3 (3 up) Interface name ESI Mode Status AC-Role ae0.0 00:11:11:11:11:11:11:11:11:11 single-active Up Root cbp0.0 00:00:00:00:00:00:00:00:00:00 single-homed Up Root ge-1/0/8.0 00:44:44:44:44:44:44:44:44:44 single-active Up Root Number of IRB interfaces: 0 (0 up) Number of bridge domains: 1 VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label SG sync IM core nexthop 1000 0 0 Extended Enabled 338849 Disabled Number of Bundle bridge domains: 0 Number of neighbors: 3 Address MAC MAC+IP AD IM ES Leaf-label 127.0.0.1 4 0 0 1 0 127.0.0.2 2 0 0 1 0 127.0.0.4 2 0 0 1 0 Number of ethernet segments: 2 ESI: 00:11:11:11:11:11:11:11:11:11 Status: Resolved by IFL ae0.0 Local interface: ae0.0, Status: Up/Blocking Designated forwarder: 127.0.0.2 Backup forwarder: 127.0.0.1 Backup forwarder: 127.0.0.3 Last designated forwarder update: Jan 26 12:09:46 Minimum ISID: 1000 ESI: 00:44:44:44:44:44:44:44:44:44 Status: Resolved by IFL ge-1/0/8.0 Local interface: ge-1/0/8.0, Status: Up/Forwarding Designated forwarder: 127.0.0.3 Backup forwarder: 127.0.0.4 Last designated forwarder update: Jan 26 12:09:31 Minimum ISID: 1000
user@PE4> show evpn routing-instance Instance: pbbn1 Route Distinguisher: 127.0.0.4:1 Per-instance MAC route label: 301520 Per-instance multicast route label: 301536 PBB EVPN Core enabled Control word enabled MAC database status Local Remote MAC advertisements: 2 8 MAC+IP advertisements: 0 0 Default gateway MAC advertisements: 0 0 Number of local interfaces: 2 (2 up) Interface name ESI Mode Status AC-Role cbp0.0 00:00:00:00:00:00:00:00:00:00 single-homed Up Root ge-0/2/1.0 00:44:44:44:44:44:44:44:44:44 single-active Up Root Number of IRB interfaces: 0 (0 up) Number of bridge domains: 1 VLAN Domain ID Intfs / up IRB intf Mode MAC sync IM route label SG sync IM core nexthop 1000 0 0 Extended Enabled 301536 Disabled Number of Bundle bridge domains: 0 Number of neighbors: 3 Address MAC MAC+IP AD IM ES Leaf-label 127.0.0.1 4 0 0 1 0 127.0.0.2 2 0 0 1 0 127.0.0.3 2 0 0 1 0 Number of ethernet segments: 1 ESI: 00:44:44:44:44:44:44:44:44:44 Status: Resolved by IFL ge-0/2/1.0 Local interface: ge-0/2/1.0, Status: Up/Blocking Designated forwarder: 127.0.0.3 Backup forwarder: 127.0.0.4 Last designated forwarder update: Jan 26 12:43:52 Minimum ISID: 1000
意义
命令输出显示 PBB-EVPN 集成,其中 EVPN 处于主动/备用多宿主模式。如果在主动/主动模式下配置 EVPN 多宿主,则所有 ESI 的状态都将为 Up/Forwarding
。在主动/备用多宿主模式下,一个 ESI 处于该 Up/Forwarding
状态,所有其他 ESI 仍处于该 Up/Blocking
状态。