示例:采用多宿主技术的下一代组播 VPLS
此示例说明如何为使用多宿主的组播配置新一代 VPLS。它分为以下部分:
要求
下表列出了此配置的硬件和软件要求。
| 设备 |
组件 |
软件 |
|---|---|---|
| 四个 MX 系列 5G 通用路由平台 |
DPC40X-1GE-X、DPC 4X-10GE-X、DPC40X-1GE-R、DPC 4X-10GE-R |
Junos OS 9.3 或更高版本 |
| 两台 M320 多服务边缘路由器和 T Series 核心路由器 |
FPC 3、10GE Xenpak |
Junos OS 9.3 或更高版本 |
| 五台 EX 系列以太网交换机 |
EX4200、EX3200 |
Junos OS 9.4 或更高版本 |
概述和拓扑
图 1 显示了此新一代 VPLS 多宿主示例中使用的物理拓扑。
图 2 显示了下一代 VPLS 多宿主示例的逻辑拓扑。
实施前的网络状态和配置如下:
-
五台 PE 路由器加入名为 GOLD 的新一代 VPLS 域。
-
OSPF、BGP 和 RSVP 在 MPLS 核心接口上配置。
-
该
no-tunnel-services语句包含在 VPLS 路由实例中。此语句支持将标签交换接口 (LSI) 隧道接口用于 VPLS。 -
路由器 PE1 和路由器 PE2 使用模板配置了动态点对多点 LSP
vpls-GOLD-p2mp-template。 -
路由器 PE3 和路由器 PE4 配置为使用静态点对多点 LSP。
注意:不支持单跳点到多点 LSP,因此单跳点对多点 LSP 会关闭。
-
路由器 CE1 通过 EX4200 第 2 层交换机与路由器 PE1 和路由器 PE2 进行多宿主。
-
路由器 CE3 通过 EX4200 第 2 层交换机与路由器 PE3 和路由器 PE4 进行多宿主。
-
路由器 CE5 与路由器 PE5 单宿主。
-
路径外路由反射器已为 BGP 配置。该
family l2vpn语句包含在路由反射器配置中。 -
路由器 CE3 通过端口 203/2 连接到测试设备。测试设备以 10,000 pps 的速率生成到组 203.0.113.1 到 203.0.113.10 的组播流量。
-
路由器 CE1 和路由器 CE5 配置了静态互联网组管理协议 (IGMP) 加入,以便它们可以接收来自路由器 CE3 的组播流量。
-
第 2 层交换机配置了通往 PE 路由器的卡车端口和通往测试设备的接入端口。
以下是成功完成配置所需步骤的摘要:
-
在路由器 PE1、路由器 PE2、路由器 PE3 和路由器 PE4 上,为名为 GOLD 的 VPLS 路由实例配置唯一的路由识别符。
-
为多宿主 PE 路由器配置相同的站点 ID。将路由器 PE1 和路由器 PE2 的站点 ID 值均配置为 1。将路由器 PE3 和路由器 PE4 的站点 ID 值均配置为 3。
-
在 CE1 站点配置下配置多宿主。
-
在路由器 PE1 上配置站点优先级
Primary,然后在路由器 PE2 上配置站点优先级Backup。在这种情况下,路由器 PE1 具有到路由器 CE1 的主链路,路由器 PE2 具有到路由器 CE1 的备用链路。 -
在路由器 PE3 和路由器 PE4 上配置站点首选项。将路由器 PE3 配置为主路由器,将路由器 PE4 配置为备份路由器。
配置
本节提供为带多宿主的组播配置新一代 VPLS 的分步过程。
在任何配置会话中,最好定期验证是否可以使用命令提交 commit check 配置。
此示例由以下部分组成:
配置新一代 VPLS 多宿主
分步程序
-
在基于 BGP 的 VPLS 多宿主中,建议为每台多宿主路由器配置不同的路由识别符。当与主路由器的连接出现故障时,配置不同的路由识别符有助于加快融合速度。它还要求其他备用 PE 路由器维护额外的状态信息,以加快融合速度。
路径选择有两个级别:
-
首先是 BGP:BGP 使用路由识别符、站点 ID 和 VE 块偏移量的组合进行 BGP 路径选择。
-
第二个是在 VPLS 中: VPLS 使用站点 ID 来选择 VPLS 路径。
通过配置唯一路由识别符,BGP 路径选择的前缀都是唯一的。因此,将跳过 BGP 路径选择,而使用 VPLS 路径选择,后者仅查看站点 ID。
在路由器 PE1 上,路由器 PE2、路由器 PE3 和路由器 PE4 为
GOLD路由实例配置唯一的路由器识别符。user@PE1# set routing-instance GOLD route-distinguisher 192.0.2.1:1 user@PE2# set routing-instance GOLD route-distinguisher 192.0.2.2:10 user@PE3# set routing-instance GOLD route-distinguisher 192.0.2.3:1 user@PE4# set routing-instance GOLD route-distinguisher 192.0.2.4:10 -
-
在路由器 PE1 和 PE2 上为路由器 CE1 配置站点 ID
1。在路由器 PE3 和 PE4 上为路由器 CE3 配置站点 ID3。user@PE1# set routing-instance GOLD protocols vpls site CE1 site-identifier 1 user@PE2# set routing-instance GOLD protocols vpls site CE1 site-identifier 1 user@PE3# set routing-instance GOLD protocols vpls site CE3 site-identifier 3 user@PE4# set routing-instance GOLD protocols vpls site CE3 site-identifier 3 -
通过在路由器 PE1、路由器 PE2、路由器 PE3 和路由器 PE4 上的多宿主站点配置下包含
multi-homing语句来启用多宿主。user@PE1# set routing-instance GOLD protocols vpls site CE1 multi-homing user@PE2# set routing-instance GOLD protocols vpls site CE1 multi-homing user@PE3# set routing-instance GOLD protocols vpls site CE3 multi-homing user@PE4# set routing-instance GOLD protocols vpls site CE3 multi-homing -
在路由器 PE1 和路由器 PE3 上添加
site-preference primary语句,在路由器 PE2 和路由器 PE4 上添加语site-preference backup句。该site-preference primary语句将本地优先级设置为最高值 (65535),site-preference backup该语句将 BGP 本地优先级设置为 1。由于站点 ID 相同,路由器会选择最高的本地优先级值作为指定的转发器。user@PE1# set routing-instance GOLD protocols vpls site CE1 site-preference primary user@PE2# set routing-instance GOLD protocols vpls site CE1 site-preference backup user@PE3# set routing-instance GOLD protocols vpls site CE3 site-preference primary user@PE4# set routing-instance GOLD protocols vpls site CE3 site-preference backup
验证 VPLS 控制平面
分步程序
本节介绍可用于验证示例配置作的 show 命令。
在此示例中,流量模式为:
-
源连接到路由器 CE3,并为组 203.0.113.1 到 203.0.113.10 发送 10,000 pps。路由器 CE3 配置为汇聚点。
-
组播接收器连接到路由器 CE1 和路由器 CE5。测试设备会生成与协议无关的组播 (PIM) 加入消息。
-
路由器 PE3 和路由器 CE3 之间的链路以及路由器 PE1 和路由器 CE1 之间的链路均配置为 VPLS 多宿主的主设备。
-
所有 PE 路由器都有与路由反射器的 BGP 会话。
-
所有 PE 路由器都有一个标签交换路径 (LSP),该路径是创建至路由反射器的,以便 PE 路由器具有到表中的
inet.3路由反射器的路由,以便进行路由解析。
-
在路由器 PE1 上,使用此
show vpls connections命令验证 VPLS 连接是否位于Up路由器 PE1 和路由器 PE3 之间,以及路由器 PE1 和 PE5 之间。路由器 PE1 是 VPLS 多宿主配置选择的主链路。user@PE1# show vpls connections Layer-2 VPN connections: Legend for connection status (St) EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS EM -- encapsulation mismatch WE -- interface and instance encaps not same VC-Dn -- Virtual circuit down NP -- interface hardware not present CM -- control-word mismatch -> -- only outbound connection is up CN -- circuit not provisioned <- -- only inbound connection is up OR -- out of range Up -- operational OL -- no outgoing label Dn -- down LD -- local site signaled down CF -- call admission control failure RD -- remote site signaled down SC -- local and remote site ID collision LN -- local site not designated LM -- local site ID not minimum designated RN -- remote site not designated RM -- remote site ID not minimum designated XX -- unknown connection status IL -- no incoming label MM -- MTU mismatch MI -- Mesh-Group ID not availble BK -- Backup connection ST -- Standby connection Legend for interface status Up -- operational Dn -- down Instance: GOLD Local site: CE1 (1) connection-site Type St Time last up # Up trans 1 rmt RN 3 rmt Up Nov 16 11:22:44 2009 1 Remote PE: 192.0.2.3, Negotiated control-word: No Incoming label: 262147, Outgoing label: 262145 Local interface: lsi.1048835, Status: Up, Encapsulation: VPLS Description: Intf - vpls GOLD local site 1 remote site 3 5 rmt Up Nov 16 11:22:46 2009 1 Remote PE: 192.0.2.5, Negotiated control-word: No Incoming label: 262149, Outgoing label: 262161 Local interface: lsi.1048836, Status: Up, Encapsulation: VPLS Description: Intf - vpls GOLD local site 1 remote site 5 -
在路由器 PE2 上,使用命令
show vpls connections验证到路由器 PE3 和路由器 PE5 的 VPLS 连接是否处于 状态LN,表示本地路由器不是指定的转发器。路由器 PE2 配置为路由器 CE1 的备份链路。user@PE2# show vpls connections ... Instance: GOLD Local site: CE1 (1) connection-site Type St Time last up # Up trans 1 rmt LN 3 rmt LN 5 rmt LN -
在路由器 PE3 上,使用命令
show vpls connections验证与路由器 PE1 和路由器 PE5 的 VPLS 连接是否为Up。路由器 PE3 配置为路由器 CE3 的主链路。user@PE3# show vpls connections ... Instance: GOLD Local site: CE3 (3) connection-site Type St Time last up # Up trans 1 rmt Up Nov 16 11:22:01 2009 1 Remote PE: 192.0.2.1, Negotiated control-word: No Incoming label: 262145, Outgoing label: 262147 Local interface: lsi.1048832, Status: Up, Encapsulation: VPLS Description: Intf - vpls GOLD local site 3 remote site 1 3 rmt RN 5 rmt Up Nov 16 11:22:56 2009 1 Remote PE: 192.0.2.5, Negotiated control-word: No Incoming label: 262149, Outgoing label: 262163 Local interface: lsi.1048834, Status: Up, Encapsulation: VPLS Description: Intf - vpls GOLD local site 3 remote site 5 -
在路由器 PE4 上,使用命令
show vpls connections验证 VPLS 连接是否处于 状态LN,表示未指定本地站点。路由器 PE4 配置为路由器 CE3 的备份链路。user@PE4# show vpls connections ... Instance: GOLD Local site: CE3 (3) connection-site Type St Time last up # Up trans 1 rmt LN 3 rmt SC 5 rmt LN -
在路由器 PE1 上,使用命令
show route advertising-protocol验证路由器 PE1(多宿主主路由器)是否正在向路由反射器发送本地优先级值65535为 的 BGP 第 2 层 VPN 路由播发。路由器 PE3 使用本地优先级来选择路由器 PE1 作为指定转发器,而不是选择本地优先级1为 的路由器 PE2。user@PE1# show route advertising-protocol bgp 192.0.2.7 extensive GOLD.l2vpn.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) * 192.0.2.1:1:1:1/96 (1 entry, 1 announced) BGP group to-RR type Internal Route Distinguisher: 192.0.2.1:1 Label-base: 262145, range: 8 Nexthop: Self Flags: Nexthop Change Localpref: 65535 AS path: [65000] I Communities: target:65000:1 Layer2-info: encaps:VPLS, control flags:, mtu: 0, site preference: 65535 PMSI: Flags 0:RSVP-TE:label[0:0:0]:Session_13[192.0.2.1:0:9519:192.0.2.1] -
在路由器 PE2 上,使用命令
show route advertising-protocol验证路由器 PE2 是否配置为本地优先级为 的多宿主备份1。user@PE2# show route advertising-protocol bgp 192.0.2.7 extensive GOLD.l2vpn.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) * 192.0.2.2:10:1:1/96 (1 entry, 1 announced) BGP group to-RR type Internal Route Distinguisher: 192.0.2.2:10 Label-base: 262145, range: 8 Nexthop: Self Flags: Nexthop Change Localpref: 1 AS path: [65000] I Communities: target:65000:1 Layer2-info: encaps:VPLS, control flags:, mtu: 0, site preference: 1 -
在路由器 PE3 上,使用命令
show route receive-protocol验证路由器 PE3 是否从路由器 PE1 和路由器 PE2 的路由反射器接收具有不同本地优先级值的第 2 层 VPN 路由。BGP 路由选择基于连接到多宿主 PE 路由器的 VPLS 站点的接收路由
l2vpn。由于路由器 PE1 和路由器 PE2 上的路由区分符不同,路由器 PE3 和路由器 PE4 会将从路由器 PE1 和路由器 PE2 接收的路由视为不同的路由。路由器 PE3 和路由器 PE4 运行 BGP 路径选择算法,并选择路由器 PE1(播发具有较高本地优先级值的路由的路由器)作为指定转发器。user@PE3# show route receive-protocol bgp 192.0.2.7 bgp.l2vpn.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path 192.0.2.1:1:1:1/96 * 192.0.2.1 65535 I 192.0.2.2:10:1:1/96 * 192.0.2.2 1 I 192.0.2.4:10:3:1/96 * 192.0.2.4 1 I 192.0.2.5:10:5:1/96 * 192.0.2.5 100 I GOLD.l2vpn.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path 192.0.2.1:1:1:1/96 * 192.0.2.1 65535 I 192.0.2.2:10:1:1/96 * 192.0.2.2 1 I 192.0.2.4:10:3:1/96 * 192.0.2.4 1 I 192.0.2.5:10:5:1/96 * 192.0.2.5 100 I -
在路由器 PE3 上,使用命令
show route table验证路由器 PE3 是否已选择从路由器 PE3 到路由器 PE1 的静态点对多点 LSP 进行转发。请注意,路由器 PE2 没有任何提供商组播服务接口 (PMSI) 标志,因为未附加 PMSI 属性。
user@PE3# show route table GOLD.l2vpn.0 extensive GOLD.l2vpn.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) 192.0.2.1:1:1:1/96 (1 entry, 1 announced) *BGP Preference: 170/-65536 Route Distinguisher: 192.0.2.1:1 PMSI: Flags 0:RSVP-TE:label[0:0:0]:Session_13[192.0.2.1:0:9519:192.0.2.1] Next hop type: Indirect Next-hop reference count: 4 Source: 192.0.2.7 Protocol next hop: 192.0.2.1 Indirect next hop: 2 no-forward State: <Secondary Active Int Ext> Local AS: 65000 Peer AS: 65000 Age: 2:30:44 Metric2: 1 Task: BGP_65000.192.0.2.7+179 Announcement bits (1): 0-GOLD-l2vpn AS path: I (Originator) Cluster list: 192.0.2.7 AS path: Originator ID: 192.0.2.1 Communities: target:65000:1 Layer2-info: encaps:VPLS, control flags:, mtu: 0, site preference: 65535 Import Accepted Label-base: 262145, range: 8 Localpref: 65535 Router ID: 192.0.2.7 Primary Routing Table bgp.l2vpn.0 Indirect next hops: 1 Protocol next hop: 192.0.2.1 Metric: 3 Indirect next hop: 2 no-forward Indirect path forwarding next hops: 1 Next hop type: Router Next hop: 10.10.8.2 via xe-0/1/0.0 weight 0x1 192.0.2.1/32 Originating RIB: inet.3 Metric: 3 Node path count: 1 Forwarding nexthops: 1 Nexthop: 10.10.8.2 via xe-0/1/0.0 192.0.2.2:10:1:1/96 (1 entry, 1 announced) *BGP Preference: 170/-2 Route Distinguisher: 192.0.2.2:10 Next hop type: Indirect Next-hop reference count: 3 Source: 192.0.2.7 Protocol next hop: 192.0.2.2 Indirect next hop: 2 no-forward State: <Secondary Active Int Ext> Local AS: 65000 Peer AS: 65000 Age: 2:30:44 Metric2: 1 Task: BGP_65000.192.0.2.7+179 Announcement bits (1): 0-GOLD-l2vpn AS path: I (Originator) Cluster list: 192.0.2.7 AS path: Originator ID: 192.0.2.2 Communities: target:65000:1 Layer2-info: encaps:VPLS, control flags:, mtu: 0, site preference: 1 Import Accepted Label-base: 262145, range: 8 Localpref: 1 Router ID: 192.0.2.7 Primary Routing Table bgp.l2vpn.0 Indirect next hops: 1 Protocol next hop: 192.0.2.2 Metric: 3 Indirect next hop: 2 no-forward Indirect path forwarding next hops: 1 Next hop type: Router Next hop: 10.10.8.2 via xe-0/1/0.0 weight 0x1 192.0.2.2/32 Originating RIB: inet.3 Metric: 3 Node path count: 1 Forwarding nexthops: 1 Nexthop: 10.10.8.2 via xe-0/1/0.0 -
在路由器 PE3 上,使用命令
show vpls connections验证 VPLS 连接是否处于 状态Up。请注意,显示屏还显示本地接口以及使用的传入和传出标签值。
user@PE3# show vpls connections extensive ... Instance: GOLD Local site: CE3 (3) Number of local interfaces: 1 Number of local interfaces up: 1 IRB interface present: no ge-1/0/0.1 lsi.1048832 1 Intf - vpls GOLD local site 3 remote site 1 lsi.1048833 2 Intf - vpls GOLD local site 3 remote site 2 Interface flags: VC-Down lsi.1048834 5 Intf - vpls GOLD local site 3 remote site 5 Interface flags: VC-Down Label-base Offset Range Preference 262145 1 8 65535 connection-site Type St Time last up # Up trans 1 rmt Up Nov 16 11:22:01 2009 1 Remote PE: 192.0.2.1, Negotiated control-word: No Incoming label: 262145, Outgoing label: 262147 Local interface: lsi.1048832, Status: Up, Encapsulation: VPLS Description: Intf - vpls GOLD local site 3 remote site 1 RSVP-TE P2MP lsp: Egress branch LSP: 192.0.2.3:192.0.2.1:1:vpls:GOLD, State: Up Connection History: Nov 16 11:22:54 2009 PE route changed Nov 16 11:22:01 2009 status update timer Nov 16 11:22:01 2009 PE route changed Nov 16 11:22:01 2009 Out lbl Update 262147 Nov 16 11:22:01 2009 In lbl Update 262145 Nov 16 11:22:01 2009 loc intf up lsi.1048832 3 rmt RN 5 rmt RD Ingress RSVP-TE P2MP LSP: vpls-GOLD, Flood next-hop ID: 616
验证 VPLS 数据平面
分步程序
使用上述步骤验证控制平面后,即可验证数据平面。VPLS 多宿主方案中的数据平面作与常规的新一代 VPLS作相同。本节介绍 show 可用于验证数据平面的命令输出。
-
在路由器 PE3 上,使用命令
show mpls lsp验证静态 LSP 和子 LSP 的状态。路由器 PE2 配置了静态点到多点 LSP 和具有链路保护的子 LSP。单跳 LSP 不支持点对多点 LSP。在以下输出中,请注意从路由器 PE3 到路由器 PE4 的单跳点到多点 LSP 为
down。user@PE3# show mpls lsp p2mp ingress Ingress LSP: 1 sessions P2MP name: vpls-GOLD, P2MP branch count: 4 To From State Rt P ActivePath LSPname 192.0.2.5 192.0.2.3 Up 0 * to-pe5 192.0.2.1 192.0.2.3 Up 0 * to-pe1 192.0.2.4 192.0.2.3 Dn 0 * to-pe4 192.0.2.2 192.0.2.3 Up 0 * to-pe2 Total 4 displayed, Up 3, Down 1
-
在路由器 PE1 上,使用
show mpls lsp命令验证动态 LSP 的状态。路由器 PE1 正在使用配置了链路保护的动态点对多点 LSP 模板。请注意,LSP 状态为
Up,链路保护为desired。user@PE1# show mpls lsp p2mp ingress extensive Ingress LSP: 1 sessions P2MP name: 192.0.2.1:1:vpls:GOLD, P2MP branch count: 1 192.0.2.3 From: 192.0.2.1, State: Up, ActiveRoute: 0, LSPname: 192.0.2.3:192.0.2.1:1:vpls:GOLD ActivePath: (primary) P2MP name: 192.0.2.1:1:vpls:GOLD Link protection desired LoadBalance: Random Encoding type: Packet, Switching type: Packet, GPID: IPv4 *Primary State: Up Priorities: 7 0 OptimizeTimer: 50 SmartOptimizeTimer: 180 Reoptimization in 45 second(s). Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 3) 10.10.3.2 S 10.10.9.2 S 10.10.8.1 S Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt): 10.10.3.2(Label=488645) 192.0.2.4(flag=0x21) 10.10.9.2(flag=1 Label=299936) 10.10.8.1(Label=262145) 12 Nov 16 15:38:08.116 CSPF: computation result ignored[314 times] 11 Nov 16 11:23:44.856 Link-protection Up 10 Nov 16 11:23:32.696 CSPF: computation result ignored[3 times] 9 Nov 16 11:22:47.859 Record Route: 10.10.3.2(Label=488645) 192.0.2.4(flag=0x21) 10.10.9.2(flag=1 Label=299936) 10.10.8.1(Label=262145) 8 Nov 16 11:22:44.910 Record Route: 10.10.3.2(Label=488645) 192.0.2.4(flag=0x20) 10.10.9.2(Label=299936) 10.10.8.1(Label=262145) 7 Nov 16 11:22:44.910 Up 6 Nov 16 11:22:44.910 10.10.3.1: Down 5 Nov 16 11:22:44.866 Selected as active path 4 Nov 16 11:22:44.864 Record Route: 10.10.3.2(Label=488629) 192.0.2.4(flag=0x20) 10.10.9.2(Label=299920) 10.10.8.1(Label=3) 3 Nov 16 11:22:44.864 Up 2 Nov 16 11:22:44.852 Originate Call 1 Nov 16 11:22:44.852 CSPF: computation result accepted 10.10.3.2 10.10.9.2 10.10.8.1 Created: Mon Nov 16 11:22:45 2009 Total 1 displayed, Up 1, Down 0 -
在路由器 PE3 上,使用命令
monitor interface traffic验证指定转发器路由器 PE3 上点对多点 LSP 的组播复制行为。输出显示,
10,000在接口上ge-1/0/0从路由器 CE3 接收到 pps。流量已分别通过 xe-0/0/0 和 xe-0/1/0 转发至提供商 (P) 路由器 P2 和路由器 PE4。根据输出,您可以确定数据包的单个副本正在发送至路由器 P2 和路由器 PE4。user@PE3> monitor interface traffic PE3 Seconds: 8 Time: 11:58:40 Interface Link Input packets (pps) Output packets (pps) lc-0/0/0 Up 0 0 xe-0/0/0 Up 13570505 (0) 4507338866 (10000) lc-0/1/0 Up 0 0 xe-0/1/0 Up 292843 (1) 628972219 (10000) lc-0/2/0 Up 0 0 xe-0/2/0 Up 343292 (0) 206808 (1) lc-0/3/0 Up 0 0 xe-0/3/0 Down 0 (0) 0 (0) ge-1/0/0 Up 2703709733 (9999) 13203544 (1) lc-1/0/0 Up 0 0 ge-1/0/1 Down 50380341937 (0) 60024542111 (0) ge-1/0/2 Down 60652323068 (0) 84480825838 (0) ge-1/0/3 Down 81219536264 (0) 84614255165 (0) ge-1/0/4 Down 54379241112 (0) 83656815208 (0)
-
在路由器 P2 上,使用命令
monitor interface traffic验证组播数据包复制是否发生在连接到接收方的 PE 路由器附近。路由器 PE1 和路由器 PE5 连接到已加入此组播组的接收器。请注意,来自接口上
ge-0/1/0路由器 PE3 的传入组播数据包会复制两次,并在接口上ge-1/1/0发出。user@P2> monitor interface traffic P2 Seconds: 6 Time: 12:07:58 Interface Link Input packets (pps) Output packets (pps) ge-0/1/0 Up 661459806 (10000) 116236 (0) ge-1/1/0 Up 115956 (0) 1322690473 (20000) gr-2/1/0 Up 0 (0) 0 (0) ip-2/1/0 Up 0 (0) 0 (0)
-
在路由器 PE3 上,使用命令
show vpls flood验证有关泛洪下一跃点路由的信息。Junos OS 9.0 及更高版本将泛洪下一跃点路由标识为复合下一跃点。请注意,接口为
ge-1/0/0.1,下一跃点类型为composite,泛洪组合为flood-to-all。这意味着流量将泛洪到所有 PE 路由器。user@PE3# show vpls flood extensive Name: GOLD CEs: 1 VEs: 1 Flood route prefix: 0x30002/51 Flood route type: FLOOD_GRP_COMP_NH Flood route owner: __ves__ Flood group name: __ves__ Flood group index: 0 Nexthop type: comp Nexthop index: 606 Flooding to: Name Type NhType Index __all_ces__ Group comp 603 Composition: split-horizon Flooding to: Name Type NhType Index ge-1/0/0.1 CE ucst 578 Flood route prefix: 0x30003/51 Flood route type: FLOOD_GRP_COMP_NH Flood route owner: __all_ces__ Flood group name: __all_ces__ Flood group index: 1 Nexthop type: comp Nexthop index: 611 Flooding to: Name Type NhType Index __ves__ Group comp 594 Composition: flood-to-all Component p2mp NH (for all core facing interfaces): Index 616 Flooding to: Name Type NhType Index __all_ces__ Group comp 603 Composition: split-horizon Flooding to: Name Type NhType Index ge-1/0/0.1 CE ucst 578 Flood route prefix: 0x30001/51 Flood route type: FLOOD_GRP_COMP_NH Flood route owner: __re_flood__ Flood group name: __re_flood__ Flood group index: 65534 Nexthop type: comp Nexthop index: 598 Flooding to: Name Type NhType Index __ves__ Group comp 594 Composition: flood-to-all Component p2mp NH (for all core facing interfaces): Index 616 Flooding to: Name Type NhType Index __all_ces__ Group comp 603 Composition: split-horizon Flooding to: Name Type NhType Index ge-1/0/0.1 CE ucst 578 Name: __juniper_private1__ CEs: 0 VEs: 0 -
在路由器 PE3 上,使用命令
show vpls mac-table验证是否已学习 VPLS 远程端 PE 路由器的 MAC 地址,并将其添加到 MAC 地址表中。请注意,MAC 地址是在接口上
ge-1/0/0.1学习的。user@PE3# show vpls mac-table MAC flags (S -static MAC, D -dynamic MAC, SE -Statistics enabled, NM -Non configured MAC) Routing instance : GOLD Bridging domain : __GOLD__, VLAN : NA MAC MAC Logical address flags interface 00:14:f6:75:78:00 D ge-1/0/0.1 -
在路由器 PE3 上,使用命令
show route forwarding-table验证转发表是否包含带有两个标签的必需条目:一个用于 VPLS 服务,另一个用于下一跳接口。user@PE3> show route forwarding-table family vpls vpn GOLD Routing table: GOLD.vpls VPLS: Destination Type RtRef Next hop Type Index NhRef Netif default perm 0 dscd 574 1 lsi.1048832 intf 0 indr 1048575 4 10.10.7.1 Push 262147, Push 309680(top) 596 2 xe-0/0/0.0 lsi.1048836 intf 0 indr 1048574 4 10.10.7.1 Push 262179, Push 299856(top) 589 2 xe-0/0/0.0 00:10:db:e9:4e:b6/48 user 0 indr 1048574 4 10.10.7.1 Push 262179, Push 299856(top) 589 2 xe-0/0/0.0 00:12:1e:c6:98:00/48 user 0 indr 1048575 4 10.10.7.1 Push 262147, Push 309680(top) 596 2 xe-0/0/0.0 00:14:f6:75:78:00/48 user 0 ucst 578 4 ge-1/0/0.1 0x30002/51 user 0 comp 606 2 ge-1/0/0.1 intf 0 ucst 578 4 ge-1/0/0.1 0x30003/51 user 0 comp 611 2 0x30001/51 user 0 comp 598 2
结果
此示例的配置和验证部分已完成。以下部分供您参考。
路由器 PE1 的相关示例配置如下:
路由器 PE1
chassis {
dump-on-panic;
fpc 1 {
pic 3 {
tunnel-services {
bandwidth 1g;
}
}
}
network-services ethernet;
}
interfaces {
xe-0/1/0 {
unit 0 {
family inet {
address 10.10.2.1/30;
}
family mpls;
}
}
xe-0/2/0 {
unit 0 {
family inet {
address 10.10.3.1/30;
}
family mpls;
}
}
xe-0/3/0 {
unit 0 {
family inet {
address 10.10.1.1/30;
}
family mpls;
}
}
ge-1/0/0 {
vlan-tagging;
encapsulation vlan-vpls;
unit 1 {
encapsulation vlan-vpls;
vlan-id 1000;
family vpls;
}
}
lo0 {
unit 0 {
family inet {
address 192.0.2.1/32;
}
}
}
}
routing-options {
static {
route 172.0.0.0/8 next-hop 172.19.59.1;
}
autonomous-system 65000;
}
protocols {
rsvp {
interface all;
interface fxp0.0 {
disable;
}
interface xe-0/3/0.0 {
link-protection;
}
interface xe-0/2/0.0 {
link-protection;
}
interface xe-0/1/0.0 {
link-protection;
}
}
mpls {
label-switched-path to-RR {
to 192.0.2.7;
}
label-switched-path vpls-GOLD-p2mp-template {
template;
optimize-timer 50;
link-protection;
p2mp;
}
label-switched-path to-PE2 {
to 192.0.2.2;
}
label-switched-path to-PE3 {
to 192.0.2.3;
}
label-switched-path to-PE4 {
to 192.0.2.4;
}
label-switched-path to-PE5 {
to 192.0.2.5;
}
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
group to-RR {
type internal;
local-address 192.0.2.1;
family l2vpn {
signaling;
}
neighbor 192.0.2.7;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface all;
interface fxp0.0 {
disable;
}
}
}
}
routing-instances {
GOLD {
instance-type vpls;
interface ge-1/0/0.1;
route-distinguisher 192.0.2.1:1;
provider-tunnel {
rsvp-te {
label-switched-path-template {
vpls-GOLD-p2mp-template;
}
}
}
vrf-target target:65000:1;
protocols {
vpls {
site-range 8;
no-tunnel-services;
site CE1 {
site-identifier 1;
multi-homing;
site-preference primary;
interface ge-1/0/0.1;
}
}
}
}
}
路由器 PE2 的相关示例配置如下。
PE2 路由器
chassis {
dump-on-panic;
fpc 1 {
pic 3 {
tunnel-services {
bandwidth 1g;
}
}
}
network-services ethernet;
}
interfaces {
xe-0/1/0 {
unit 0 {
family inet {
address 10.10.2.2/30;
}
family mpls;
}
}
xe-0/2/0 {
unit 0 {
family inet {
address 10.10.5.1/30;
}
family mpls;
}
}
xe-0/3/0 {
unit 0 {
family inet {
address 10.10.4.1/30;
}
family mpls;
}
}
ge-1/0/3 {
vlan-tagging;
encapsulation vlan-vpls;
unit 1 {
encapsulation vlan-vpls;
vlan-id 1000;
family vpls;
}
}
fxp0 {
apply-groups [ re0 re1 ];
}
lo0 {
unit 0 {
family inet {
address 192.0.2.2/32;
}
}
}
}
routing-options {
static {
route 172.0.0.0/8 next-hop 172.19.59.1;
}
autonomous-system 65000;
}
protocols {
rsvp {
interface all;
interface fxp0.0 {
disable;
}
}
mpls {
label-switched-path to-RR {
to 192.0.2.7;
}
label-switched-path vpls-GOLD-p2mp-template {
template;
optimize-timer 50;
link-protection;
p2mp;
}
label-switched-path to-PE1 {
to 192.0.2.1;
}
label-switched-path to-PE3 {
to 192.0.2.3;
}
label-switched-path to-PE4 {
to 192.0.2.4;
}
label-switched-path to-PE5 {
to 192.0.2.5;
}
interface all;
interface fxp0.0 {
disable;
}
}
bgp {
group to-RR {
type internal;
local-address 192.0.2.2;
family l2vpn {
signaling;
}
neighbor 192.0.2.7;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface all;
interface fxp0.0 {
disable;
}
}
}
}
routing-instances {
GOLD {
instance-type vpls;
interface ge-1/0/3.1;
route-distinguisher 192.0.2.2:10;
provider-tunnel {
rsvp-te {
label-switched-path-template {
vpls-GOLD-p2mp-template;
}
}
}
vrf-target target:65000:1;
protocols {
vpls {
site-range 8;
no-tunnel-services;
site CE1 {
site-identifier 1;
multi-homing;
site-preference backup;
interface ge-1/0/3.1;
}
}
}
}