第 3 层 VPN 中的出口保护
本主题介绍了第 3 层 VPN 中出口保护中的概念和组件。其中介绍并提供了有关如何配置受保护、保护器和本地维修点 (PLR) 路由器的示例。
BGP 标记单播的出口保护
网络节点或链路故障发生时,使用传统路由表融合恢复服务需要一些时间。通过尽可能接近故障建立本地保护,本地维修程序可以提供更快的修复速度。对于 BGP 标记的单播可互连 IGP 区域、级别或自治系统 (AS) 的服务,可以快速保护出口节点。如果提供商路由器检测到出口路由器(AS 或区域边界路由器)已关闭,则会立即将发送至该路由器的信息流转发至将流量下游转发至目标的保护器路由器。
要为 BGP 标记的单播提供出口保护,保护器节点必须在故障发生之前为下游目标创建备份状态。该解决方案的基本理念是,保护器节点构建与受保护节点关联的转发状态,并将受保护节点分配的 MPLS 标签进一步下游中继到最终目标。
此功能支持应用程序 AS 间选项 C 和无缝 MPLS。
AS 间选项 C — BGP 标记单播通过将 AS 内部 LSP 拼接在一起提供端到端传输标签交换系列 (LSP)。AS 边界路由器将 EBGP 运行到其他 AS 边界路由器,以交换 /32 PE 回传路由的标签。IBGP 在每个 AS 内的提供商边缘路由器和 AS 边界路由器之间运行。在 图 1 中,流量从 CE1 流到 CE2。ASBR1 是受保护的 AS 边界路由器,ASBR2 是保护器,而设备 P1 是本地维修点 (PLR)。主路径从 PE1 选择到 PE2,而不是 ASBR1 和 ASBR3。当 ASBR1 发生故障时,路由器 P1 检测到 ASBR1 故障,并将流量转发至 ASBR2,ASBR2 提供备用服务并转发下游流量。

无缝 MPLS — BGP 标记单播通过拼接区域内/级别 LSP 提供端到端传输 LSP。区域边界路由器 (ABR) 将 BGP 标记的单播运行到其他 ABR,以交换 /32 PE 回传路由的标签。在 图 2 中,流量从设备 CE1 流向设备 CE2。ABR1 是受保护的 ABR,ABR2 是保护器,而 T1 是 PLR。主路径从 PE1 选择到 PE2,而不是 ABR1 和 ABR3。当 ABR1 发生故障时,路由器 T1 检测到 ABR1 故障,并将流量转发到 ABR2,ABR2 提供备用服务并转发下游流量。

在这些应用程序中,受保护节点通告需要保护的主 BGP 标记单播路由。启用快速保护后,BGP 会将标签路由通告,并以特殊地址作为下一跳跃。此特殊地址是通过 CLI 配置的上下文标识符。受保护的节点还会为上下文标识符通告 IGP 中的上下文标识符和 LDP 中的 NULL 标签。
备份节点为受保护路由通告标记为单播路由的备份 BGP 路由。保护器节点使用备份节点通告的标签将信息流转发至备份节点。
保护器节点通过交叉连接由受保护节点发起的标签以及由备份节点发起的标签来提供备份服务。如果受保护节点出现故障,保护器节点会将信息流转发至备份节点。保护器节点以高指标将相同的上下文标识符通告到 IGP 中。此外,还会为上下文标识符播发 LDP 中的真实标签。保护器节点侦听受保护节点和备份节点通告的 BGP 标记单播路由,并弹出上下文标签表和备份 FIB。当具有实际上下文 LDP 标签的信息流到达时,查找将在受保护节点的上下文中完成。保护器节点通常充当备份节点。
PLR 检测受保护节点故障,并将 MPLS 流量转发至保护器节点。高 IGP 指标以及保护器节点通告的 LDP 标签可确保 PLR 使用保护器节点作为 LDP 备份 LSP。
支持的保护类型有两种:主机代配保护器和集中式保护器。在协作类型中,保护器节点也是备份节点。在集中式类型中,备份节点与保护器节点不同。
为 BGP 标记单播配置出口保护
对于 BGP 标记的单播可互连 IGP 区域、级别或 AS 的服务,可以快速保护出口节点。如果提供商路由器检测到出口路由器(AS 或区域边界路由器)已关闭,则会立即将发送至该路由器的信息流转发至将流量下游转发至目标的保护器路由器。
为 BGP 标记的单播配置出口保护之前,请确保 AS 或区域中的所有路由器都运行 Junos OS 14.1 或更高版本。
要为 BGP 标记的单播配置出口保护:
另请参阅
示例:为 BGP 标记单播配置出口保护
此示例说明如何配置可在 AS 间选项 C 拓扑中的 PE 故障时可使用的 BGP 标记单播保护。
要求
此示例使用以下硬件和软件组件:
M 系列多服务边缘路由器、MX 系列 5G 通用路由平台或 T 系列核心路由器
Junos OS 版本 14.1 或更高版本
概述
网络节点或链路故障发生时,使用传统路由表融合恢复服务需要一些时间。通过尽可能接近故障建立本地保护,本地维修程序可以提供更快的修复速度。对于 BGP 标记的单播可互连 IGP 区域、级别或自治系统 (AS) 的服务,可以快速保护出口节点。如果提供商路由器检测到出口路由器(AS 或区域边界路由器)已关闭,则会立即将发送至该路由器的信息流转发至将流量下游转发至目标的保护器路由器。
此示例说明如何在第 3 层 VPN 中配置标记为单播的出口保护。
拓扑
在此示例中,通过在四个自治系统中配置两个客户边缘 (CE) 设备和六个服务提供商边缘 (PE) 设备来设置 AS 间选项 C 拓扑。CE 设备在 AS100 和 AS101 中配置。PE 设备在 AS200 和 AS300 中配置。
图 3 显示了此示例中使用的拓扑。

此示例的目的是保护 PE 路由器 R4。在路由器 R4 和路由器 R9 上配置了出口保护,以便在路由器 R4(或从 R5 到 R4 的链路)中断时,可以通过备份链路(R9 到 R8)路由流量。在此示例中,路由器 R4 是受保护的路由器,路由器 R9 是保护器路由器,而路由器 R5 是本地维修点 (PLR)。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,移除任何换行符,更改与网络配置匹配所需的任何详细信息,然后将命令复制粘贴到层次结构级别的 [edit]
CLI 中。
路由器 R0
set interfaces ge-0/0/0 unit 0 description toR1 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.1/30 set interfaces lo0 unit 0 family inet address 192.0.2.1/24 primary set routing-options router-id 192.0.2.1 set routing-options autonomous-system 100 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 metric 10
路由器 R1
set interfaces ge-0/0/0 unit 0 description toR0 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.2/30 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR2 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.5/30 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.2/24 set routing-options router-id 192.0.2.2 set routing-options autonomous-system 200 set protocols mpls label-switched-path ToR3 to 192.0.2.4 set protocols mpls label-switched-path ToR8 to 192.0.2.9 set protocols mpls interface all set protocols bgp group parent-vpn-peers type internal set protocols bgp group parent-vpn-peers local-address 192.0.2.2 set protocols bgp group parent-vpn-peers family inet unicast set protocols bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 set protocols bgp group parent-vpn-peers neighbor 192.0.2.4 set protocols bgp group parent-vpn-peers neighbor 192.0.2.9 set protocols bgp group toR6 type external set protocols bgp group toR6 multihop ttl 10 set protocols bgp group toR6 local-address 192.0.2.2 set protocols bgp group toR6 family inet-vpn unicast set protocols bgp group toR6 peer-as 300 set protocols bgp group toR6 neighbor 192.0.2.7 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 metric 10 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement child_vpn_routes term 1 from protocol bgp set policy-options policy-statement child_vpn_routes term 1 then accept set policy-options policy-statement child_vpn_routes term 2 then reject set policy-options policy-statement vpnexport term 1 from protocol ospf set policy-options policy-statement vpnexport term 1 then community add test_comm set policy-options policy-statement vpnexport term 1 then accept set policy-options policy-statement vpnexport term 2 then reject set policy-options policy-statement vpnimport term 1 from protocol bgp set policy-options policy-statement vpnimport term 1 from community test_comm set policy-options policy-statement vpnimport term 1 then accept set policy-options policy-statement vpnimport term 2 then reject set policy-options community text_comm members target:1:200 set routing-instances customer-provider-vpn instance-type vrf set routing-instances customer-provider-vpn interface ge-0/0/0.0 set routing-instances customer-provider-vpn route-distinguisher 192.0.2.4:1 set routing-instances customer-provider-vpn vrf-import vpnimport set routing-instances customer-provider-vpn vrf-export vpnexport set routing-instances customer-provider-vpn vrf-target target:200:1 set routing-instances customer-provider-vpn protocols ospf export child_vpn_routes set routing-instances customer-provider-vpn protocols ospf area 0.0.0.0 interface ge-0/0/0.0
路由器 R2
set interfaces ge-0/0/0 unit 0 description toR3 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.9/30 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR1 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.6/30 set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 description toR8 set interfaces ge-0/0/2 unit 0 family inet address 10.2.0.29/30 set interfaces ge-0/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.3/24 set routing-options router-id 192.0.2.3 set routing-options autonomous-system 200 set protocols mpls interface all set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 metric 10 set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 metric 10 set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 metric 10 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface ge-0/0/2.0 set protocols ldp interface lo0.0
路由器 R3
set interfaces ge-0/0/0 unit 0 description toR2 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.10/30 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR4 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.13/30 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.4/24 set routing-options router-id 192.0.2.4 set routing-options autonomous-system 200 set protocols mpls traffic-engineering bgp-igp-both-ribs set protocols mpls label-switched-path ToR1 to 192.0.2.2 set protocols mpls interface all set protocols bgp group toR4 type external set protocols bgp group toR4 family inet unicast set protocols bgp group toR4 family inet labeled-unicast rib inet.3 set protocols bgp group toR4 export send-pe set protocols bgp group toR4 neighbor 10.2.0.14 peer-as 300 set protocols bgp group parent-vpn-peers type internal set protocols bgp group parent-vpn-peers local-address 192.0.2.4 set protocols bgp group parent-vpn-peers family inet unicast set protocols bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 set protocols bgp group parent-vpn-peers export next-hop-self set protocols bgp group parent-vpn-peers neighbor 192.0.2.2 set protocols bgp group parent-vpn-peers neighbor 192.0.2.9 set protocols ospf traffic-engineering set protocols ospf export from-bgp set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 metric 10 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self term 1 then next-hop-self set policy-options policy-statement send-pe from route-filter 192.0.2.2/24 exact set policy-options policy-statement send-pe then accept
路由器 R4
set interfaces ge-0/0/0 unit 0 description toR5 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.17/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR3 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.14/30 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.5/24 set interfaces lo0 unit 0 family iso address 47.0005.80ff.f800.0000.0108.0001.0102.5507.2049.00 set routing-options router-id 192.0.2.5 set routing-options autonomous-system 300 set protocols mpls traffic-engineering bgp-igp-both-ribs set protocols mpls label-switched-path ToR6 to 192.0.2.7 set protocols mpls interface all set protocols mpls interface fxp.0 disable set protocols mpls egress-protection context-identifier 203.0.113.1 primary set protocols bgp group parent-vpn-peers type internal set protocols bgp group parent-vpn-peers local-address 192.0.2.5 set protocols bgp group parent-vpn-peers family inet unicast set protocols bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 set protocols bgp group parent-vpn-peers family inet labeled-unicast egress-protection context-identifier 203.0.113.1 set protocols bgp group parent-vpn-peers export next-hop-self set protocols bgp group parent-vpn-peers neighbor 192.0.2.7 set protocols bgp group parent-vpn-peers neighbor 192.0.2.10 set protocols bgp group toR3 type external set protocols bgp group toR3 family inet labeled-unicast rib inet.3 set protocols bgp group toR3 export send-pe set protocols bgp group toR3 peer-as 200 set protocols bgp group toR3 neighbor 10.2.0.13 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface ge-0/0/0.0 level 2 metric 10 set protocols isis interface lo0.0 passive set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self term 1 then next-hop-self set policy-options policy-statement send-pe from route-filter 192.0.2.7/24 exact set policy-options policy-statement send-pe then accept
路由器 R5
set interfaces ge-0/0/0 unit 0 description toR4 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.18/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR6 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.21/30 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces ge-0/0/2 unit 0 description toR9 set interfaces ge-0/0/2 unit 0 family inet address 10.2.0.38/30 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.6/24 set interfaces lo0 unit 0 family iso address 47.0005.80ff.f800.0000.0108.0001.0102.5507.2050.00 set routing-options router-id 192.0.2.6 set routing-options autonomous-system 300 set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols isis backup-spf-options per-prefix-calculation set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface ge-0/0/0.0 link-protection set protocols isis interface ge-0/0/0.0 level 2 metric 10 set protocols isis interface ge-0/0/1.0 link-protection set protocols isis interface ge-0/0/1.0 level 2 metric 10 set protocols isis interface ge-0/0/2.0 link-protection set protocols isis interface ge-0/0/2.0 level 2 metric 10 set protocols isis interface lo0.0 passive set protocols ldp track-igp-metric set protocols ldp interface all set protocols ldp interface fxp0.0 disable
路由器 R6
set interfaces ge-0/0/0 unit 0 description toR7 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.25/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR5 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.22/30 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.7/24 set interfaces lo0 unit 0 family iso address 47.0005.80ff.f800.0000.0108.0001.0102.5507.2048.00 set routing-options router-id 192.0.2.7 set routing-options autonomous-system 300 set protocols mpls label-switched-path ToR4 to 192.0.2.5 set protocols mpls label-switched-path ToR9 to 192.0.2.10 set protocols mpls interface all set protocols bgp group parent-vpn-peers type internal set protocols bgp group parent-vpn-peers local-address 192.0.2.7 set protocols bgp group parent-vpn-peers family inet unicast set protocols bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 set protocols bgp group parent-vpn-peers neighbor 192.0.2.5 set protocols bgp group parent-vpn-peers neighbor 192.0.2.10 set protocols bgp group toR1 type external set protocols bgp group toR1 multihop ttl 10 set protocols bgp group toR1 local-address 192.0.2.7 set protocols bgp group toR1 family inet-vpn unicast set protocols bgp group toR1 peers-as 200 set protocols bgp group toR1 neighbor 192.0.2.2 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface ge-0/0/1.0 level 2 metric 10 set protocols isis interface lo0.0 passive set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement child-vpn-routes term 1 from protocol bgp set policy-options policy-statement child-vpn-routes term 1 then accept set policy-options policy-statement child-vpn-routes term 2 then reject set policy-options policy-statement vpnexport term 1 from protocol ospf set policy-options policy-statement vpnexport term 1 then community add test_comm set policy-options policy-statement vpnexport term 1 then accept set policy-options policy-statement vpnexport term 2 then reject set policy-options policy-statement vpnimport term 1 from protocol bgp set policy-options policy-statement vpnimport term 1 from community test_comm set policy-options policy-statement vpnimport term 1 then accept set policy-options policy-statement vpnimport term 2 then reject set policy-options community test_comm members target:1:300 set routing-instances customer-provider-vpn instance-type vrf set routing-instances customer-provider-vpn interface ge-0/0/0.0 set routing-instances customer-provider-vpn route-distinguisher 192.0.2.5:1 set routing-instances customer-provider-vpn vrf-import vpnimport set routing-instances customer-provider-vpn vrf-export vpnexport set routing-instances customer-provider-vpn vrf-target target:300:1 set routing-instances customer-provider-vpn protocols ospf export child-vpn-routes set routing-instances customer-provider-vpn protocols ospf area 0.0.0.0 interface ge-0/0/0.0
路由器 R7
set interfaces ge-0/0/0 unit 0 description toR6 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.26/30 set interfaces ge-0/0/0 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.8/24 primary set routing-options router-id 192.0.2.8 set routing-options autonomous-system 101 set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 metric 10
路由器 R8
set interfaces ge-0/0/0 unit 0 description toR9 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.33/30 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR2 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.30/30 set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.9/24 set routing-options router-id 192.0.2.9 set routing-options autonomous-system 200 set protocols mpls traffic-engineering bgp-igp-both-ribs set protocols mpls label-switched-path ToR1 to 192.0.2.2 set protocols mpls interface all set protocols bgp group toR9 type external set protocols bgp group toR9 family inet unicast set protocols bgp group toR9 family inet labeled-unicast rib inet.3 set protocols bgp group toR9 export send-pe set protocols bgp group toR9 neighbor 10.2.0.34 peer-as 300 set protocols bgp group parent-vpn-peers type internal set protocols bgp group parent-vpn-peers local-address 192.0.2.9 set protocols bgp group parent-vpn-peers family inet unicast set protocols bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 set protocols bgp group parent-vpn-peers export next-hop-self set protocols bgp group parent-vpn-peers neighbor 192.0.2.2 set protocols bgp group parent-vpn-peers neighbor 192.0.2.4 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface lo0.0 passive set protocols ospf area 0.0.0.0 interface ge-0/0/1.0 metric 10 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement from-bgp from protocol bgp set policy-options policy-statement from-bgp then metric add 100 set policy-options policy-statement from-bgp then accept set policy-options policy-statement next-hop-self term 1 then next-hop-self set policy-options policy-statement send-pe from route-filter 192.0.2.2/24 exact set policy-options policy-statement send-pe then accept
路由器 R9
set interfaces ge-0/0/0 unit 0 description toR8 set interfaces ge-0/0/0 unit 0 family inet address 10.2.0.34/30 set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description toR5 set interfaces ge-0/0/1 unit 0 family inet address 10.2.0.37/30 set interfaces ge-0/0/1 unit 0 family iso set interfaces ge-0/0/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.0.2.10/24 set interfaces lo0 unit 0 family iso address 47.0005.80ff.f800.0000.0108.0001.0102.5507.2062.00 set routing-options router-id 192.0.2.10 set routing-options autonomous-system 300 set protocols mpls traffic-engineering bgp-igp-both-ribs set protocols mpls label-switched-path ToR6 to 192.0.2.7 set protocols mpls interface all set protocols mpls egress-protection context-identifier 203.0.113.1 protector set protocols bgp group parent-vpn-peers type internal set protocols bgp group parent-vpn-peers local-address 192.0.2.10 set protocols bgp group parent-vpn-peers family inet unicast set protocols bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 set protocols bgp group parent-vpn-peers family inet labeled-unicast egress-protection set protocols bgp group parent-vpn-peers export next-hop-self set protocols bgp group parent-vpn-peers neighbor 192.0.2.7 set protocols bgp group parent-vpn-peers neighbor 192.0.2.5 set protocols bgp group toR8 type external set protocols bgp group toR8 family inet labeled-unicast rib inet.3 set protocols bgp group toR8 export send-pe set protocols bgp group toR8 neighbor 10.2.0.33 peer-as 200 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface ge-0/0/1.0 level 2 metric 10 set protocols isis interface lo0.0 passive set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set policy-options policy-statement next-hop-self term 1 then next-hop-self set policy-options policy-statement send-pe from route-filter 192.0.2.7/24 exact set policy-options policy-statement send-pe then accept
在第 3 层 VPN 中配置出口保护
逐步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅 CLI 用户指南中的配置模式下使用 CLI 编辑器。
要配置标记为单播出口保护:
配置每个路由器上的接口,例如:
[edit interfaces] user@R4# set ge-0/0/0 unit 0 description toR5 user@R4# set ge-0/0/0 unit 0 family inet address 10.2.0.17/30 user@R4# set ge-0/0/0 unit 0 family iso user@R4# set ge-0/0/0 unit 0 family mpls
user@R4# set ge-0/0/1 unit 0 description toR3 user@R4# set ge-0/0/1 unit 0 family inet address 10.2.0.14/30 user@R4# set ge-0/0/1 unit 0 family mpls
user@R4# set lo0 unit 0 family inet address 192.0.2.5/24 user@R4# set lo0 unit 0 family iso address 47.0005.80ff.f800.0000.0108.0001.0102.5507.2049.00
为每个路由器配置路由器 ID 和自治系统 (AS) 编号,例如:
[edit routing-options] user@R4# set router-id 192.0.2.5 user@R4# set autonomous-system 300
在此示例中,路由器 ID 选择与路由器上配置的环路地址相同。
在每个路由器上配置协议,例如:
[edit protocols] user@R4# set mpls traffic-engineering bgp-igp-both-ribs user@R4# set mpls label-switched-path ToR6 to 192.0.2.7 user@R4# set mpls interface all user@R4# set mpls interface fxp.0 disable user@R4# set bgp group parent-vpn-peers type internal user@R4# set bgp group parent-vpn-peers local-address 192.0.2.5 user@R4# set bgp group parent-vpn-peers family inet unicast user@R4# set bgp group parent-vpn-peers family inet labeled-unicast rib inet.3 user@R4# set bgp group parent-vpn-peers export next-hop-self user@R4# set bgp group parent-vpn-peers neighbor 192.0.2.7 user@R4# set bgp group parent-vpn-peers neighbor 192.0.2.10 user@R4# set bgp group toR3 type external user@R4# set bgp group toR3 family inet labeled-unicast rib inet.3 user@R4# set bgp group toR3 export send-pe user@R4# set bgp group toR3 peer-as 200 user@R4# set bgp group toR3 neighbor 10.2.0.13 user@R4# set isis level 1 disable user@R4# set isis level 2 wide-metrics-only user@R4# set isis interface ge-0/0/0.0 level 2 metric 10 user@R4# set isis interface lo0.0 passive user@R4# set ldp interface ge-0/0/0.0 user@R4# set ldp interface ge-0/0/1.0 user@R4# set ldp interface lo0.0
在所有 PE 路由器和 AS 边界路由器(路由器 R1、R3、R4、R6、R8 和 R9)上配置路由策略,例如:
user@R4# set policy-options policy-statement next-hop-self term 1 then next-hop-self user@R4# set policy-options policy-statement send-pe from route-filter 192.0.2.7/24 exact user@R4# set policy-options policy-statement send-pe then accept
在路由器 R1 和 R6 上配置 VPN 路由实例。
user@R1# set routing-instances customer-provider-vpn instance-type vrf user@R1# set routing-instances customer-provider-vpn interface ge-0/0/0.0 user@R1# set routing-instances customer-provider-vpn route-distinguisher 192.0.2.4:1 user@R1# set routing-instances customer-provider-vpn vrf-import vpnimport user@R1# set routing-instances customer-provider-vpn vrf-export vpnexport user@R1# set routing-instances customer-provider-vpn vrf-target target:200:1 user@R1# set routing-instances customer-provider-vpn protocols ospf export child_vpn_routes user@R1# set routing-instances customer-provider-vpn protocols ospf area 0.0.0.0 interface ge-0/0/0.0
和
user@R6# set routing-instances customer-provider-vpn instance-type vrf user@R6# set routing-instances customer-provider-vpn interface ge-0/0/0.0 user@R6# set routing-instances customer-provider-vpn route-distinguisher 192.0.2.5:1 user@R6# set routing-instances customer-provider-vpn vrf-import vpnimport user@R6# set routing-instances customer-provider-vpn vrf-export vpnexport user@R6# set routing-instances customer-provider-vpn vrf-target target:300:1 user@R6# set routing-instances customer-provider-vpn protocols ospf export child-vpn-routes user@R6# set routing-instances customer-provider-vpn protocols ospf area 0.0.0.0 interface ge-0/0/0.0
为路由器 R4 配置出口保护,将路由器 R4 设置为受保护的路由器,并将路由器 R9 设置为保护器。
user@R4# set protocols mpls egress-protection context-identifier 203.0.113.1 primary user@R4# set protocols bgp group parent-vpn-peers family inet labeled-unicast egress-protection context-identifier 203.0.113.1
和
user@R9# set protocols mpls egress-protection context-identifier 203.0.113.1 protector user@R9# set protocols bgp group parent-vpn-peers family inet labeled-unicast egress-protection
结果
在配置模式下,输入 show interfaces
、 show routing-options
、 、 show policy-options
show protocols
(如果适用)和show routing-instances
(如果适用)命令来确认您的配置。
如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@R4# show interfaces ge-0/0/0 { unit 0 { description toR5; family inet { address 10.2.0.17/30; } family iso; family mpls; } } ge-0/0/1 { unit 0 { description toR3; family inet { address 10.2.0.14/30; } family mpls; } } lo0 { unit 0 { family inet { address 192.0.2.5/24; } family iso { address 47.0005.80ff.f800.0000.0108.0001.0102.5507.2049.00; } } }
user@R4# show routing-options router-id 192.0.2.5; autonomous-system 300;
user@R4# show protocols mpls { traffic-engineering bgp-igp-both-ribs; label-switched-path ToR6 { to 192.0.2.7; } interface all; interface fxp0.0 { disable; } egress-protection { context-identifier 203.0.113.1 { primary; } } } bgp { group parent-vpn-peers { type internal; local-address 192.0.2.5; family inet { unicast; labeled-unicast { rib { inet.3; } egress-protection { context-identifier { 203.0.113.1; } } } } export next-hop-self; neighbor 192.0.2.7; neighbor 192.0.2.10; } group toR3 { type external; family inet { unicast; labeled-unicast { rib { inet.3; } } } export send-pe; peer-as 200; neighbor 10.2.0.13; } } isis { level 1 disable; level 2 wide-metrics-only; interface ge-0/0/0.0 { level 2 metric 10; } interface lo0.0 { passive; } } ldp { interface ge-0/0/0.0; interface ge-0/0/1.0; interface lo0.0; }
user@R4# show policy-options policy-statement next-hop-self { term 1 { then { next-hop self; } } } policy-statement send-pe { from { route-filter 192.0.2.7/24 exact; } then accept; }
如果完成对路由器的配置,请从配置模式进入 commit
。
使用每个路由器的相应接口名称和地址,对本示例中的每台路由器重复该过程。
验证
验证出口保护是否已启用
目的
验证受保护路由器 R4 上是否启用了出口保护。
行动
在路由器 R4 上运行 show bgp neighbor 以验证是否启用了出口保护。
user@R4> show bgp neighbor Peer: 192.0.2.10+45824 AS 300 Local: 192.0.2.5+27630 AS 300 Type: Internal State: Established Flags: <Sync> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Export: [ next-hop-self ] Options: <Preference LocalAddress AddressFamily Refresh> Address families configured: inet-unicast inet-labeled-unicast Local Address: 192.0.2.5 Holdtime: 90 Preference: 170 NLRI configured with egress-protection: inet-labeled-unicast Egress-protection NLRI inet-labeled-unicast context-identifier: 203.0.113.1 Number of flaps: 0 ...
将受保护 ASBR 的状态验证为“主要”
目的
验证受保护的 AS 边界路由器(路由器 R4)的状态是否为“主设备”。
行动
在路由器 R4 上运行 show mpls context-identifier 。
user@R4> show mpls context-identifier ID Type Metric ContextTable 203.0.113.1 primary 1 Total 1, Primary 1, Protector 0
第 3 层 VPN 边缘保护出口保护概述
通常,多宿主客户边缘 (CE) 路由器的第 3 层 VPN 服务恢复取决于入口提供商边缘 (PE) 路由器,以检测出口 PE 链路或节点故障,并将流量切换到备份 PE 路由器。为了实现更快的恢复,在出口 PE 节点出现故障时,可使用 PE 路由器的保护器机制立即执行服务的本地恢复。此机制要求本地维修点 (PLR) 的路由器将 VPN 流量重定向至保护器 PE 路由器,以便快速重新路由流量。
以下拓扑介绍了出口保护的概念。

在此拓扑中:
路由器 PE3 充当 PE2 第 3 层 VPN 路由实例或子网的保护器。
CE 路由器是 VPN 的一部分,其中路由器 CE1 与路由器 PE1 和路由器 PE2 多宿主。同样,路由器 CE2 与路由器 PE2 和 PE3 进行了多宿主。
路由器 PE1 可以是路由器 CE1 上下文标识符的发起人,而路由器 PE2 是该上下文标识符的保护器。同样,PE2 可以是路由器 CE2 上下文标识符的发起人,而路由器 PE3 是该上下文标识符的保护器。
路由器 PE4 采用的工作路径可能通过 PLR>PE2(用于路由器 CE1 和路由器 CE2)。路由器 CE1 的备份路径通过 PLR>PE1。路由器 CE2 的备份路径通过 PLR>PE3。正常情况下,信息流通过工作路径。
当路由器 PE4 检测到 PE2 节点或链路故障时,流量将从工作路径重新路由到受保护路径。在正常的故障转移过程中,故障检测和恢复依赖于控制平面,因此速度相对较慢。
通常,如果核心网络存在链路或节点故障,出口 PE 路由器必须依靠入口 PE 路由器来检测故障并切换到备份路径,因为无法为出口故障提供本地维修选项。
要为出口 PE 链路或节点故障提供本地维修解决方案,可使用一种称为出口保护的机制来修复并快速恢复连接。如果配置了出口保护,PLR 路由器将检测 PE2 链路或节点故障,并使用备份 LDP 信号标签交换系列 (LSP) 通过保护器路由器 PE3 重新路由流量。PLR 路由器使用每前缀无环路替代路由通过路由器 PE3 对备份下一跳跃进行编程,并且流量使用备用路径转发至路由器 CE1 和 CE2。此恢复在 PLR 路由器检测到路由器 PE2 出口节点或链路故障后快速完成。
双保护机制也可用于出口保护,其中两个 PE 路由器可同时充当其各自上下文 ID 路由或下一跳跃的主 PE 路由器和保护器 PE 路由器。
路由器功能
在 图 4 中,以下路由器执行以下功能:
受保护 PE 路由器
受保护的 PE 2 执行以下功能:
更新第 3 层 VPN 前缀 BGP 下一跳跃的上下文标识符。
将上下文标识符通告至 IS-IS 域。
保护器 PE 路由器
保护器 PE 路由器 PE3 执行以下功能:
使用高指标将上下文标识符通告 IS-IS 域。高 IGP 指标(可配置)和 LDP 标签可确保 PLR 路由器在出口 PE 路由器故障时使用 LDP 信号备份 LSP。
为受保护 PE 路由器 (PE2) 构建路由查找上下文标签表和备份转发表。
注意:保护器 PE 路由器不应位于转发到主 PE 路由器的路径中。
PLR 路由器
作为本地维修点 (PLR) 的路由器执行以下功能:
计算每前缀无环路替代路由。要使此计算发挥作用,语句和
backup-spf-options per-prefix-calculation
语句的node-link-protection
配置在层次结构级别是必需的[edit protocols isis]
。通过 PE3 路由器(保护器 PE)安装上下文标识符的备份下一跳跃。
检测 PE 路由器故障,并将传输 LSP 流量重定向至保护器。
PLR 路由器必须直接连接到保护器路由器(在此情况下,PE3)。如果没有,无环路替代路由将无法找到保护器的备份路径。此限制在 Junos OS 版本 13.3 和更高版本中删除。
保护器和保护模型
保护器是恢复出口 PE 节点故障的新角色或功能。对于需要出口节点保护的 VPN 前缀,可由备份出口 PE 路由器或参与 VPN 控制平面的其他任何节点扮演此角色。保护器的位置和作用有两个保护模型:
主机托管保护器 — 在此型号中,保护器 PE 路由器和备份 PE 路由器配置在同一路由器上完成。保护器与受保护前缀的备份 PE 路由器共同定位,并且与发起受保护前缀的多宿主站点有直接连接。如果出口 PE 出现故障,保护器将从 PLR 路由器接收信息流,并将流量路由到多宿主站点。
集中式保护器 — 在此型号中,保护器 PE 路由器和备份 PE 路由器不同。集中式保护器可能无法直接连接到多宿主站点。如果出口 PE 链路或节点故障,集中式保护器会使用为备份出口 PE 路由器通告的 VPN 标签将流量重新路由到备份出口 PE 路由器,该标签将接管向多宿主站点发送流量的角色。
网络可以使用两种保护模型或两者的组合,具体取决于需求。
作为出口节点保护的特殊场景,如果路由器既是保护程序,又是 PLR,则会安装备份下一跳跃以保护传输 LSP。特别是,它不需要绕过 LSP 进行本地维修。
在主机托管保护器模型中,PLR 或保护器通过备份 AC 直接连接到 CE,而在集中式保护器模型中,PLR 或保护器具有连接到备份 PE 的 MPLS 隧道。无论哪种情况,PLR 或保护器都将安装下一跃点备份,并带有标签,然后在表格中 context label
查找,即 。 __context__.mpls.0
当出口节点发生故障时,PLR 或保护器会在 PFE 中将流量切换到此备份下一跃点。数据包的外部标签(传输 LSP 标签)弹出,内部标签(由出口节点分配的第 3 层 VPN 标签)被查找 __context__.mpls.0
,从而将数据包直接转发至 CE(在托管保护器模型中)或备份 PE(集中式保护器模型中)。
有关出口 PE 故障保护的详细信息,请参阅互联网草案 draft-minto-2547-出口节点快速保护-00、 2547 出口 PE 快速故障保护。。
IGP 广告模型
出口保护可用性在内部网关协议 (IGP) 中通告。标签协议和受限最短路径优先 (CSPF) 使用此信息进行出口保护。
对于第 3 层 VPN,IGP 通告可以为以下类型:
上下文标识符作为存根链路(Junos OS 11.4 R3 和更高版本中支持)。将存根节点连接到中转节点的链路是存根链路。
上下文标识符为存根别名节点(Junos OS 13.3 和更高版本中支持)。
上下文标识符为存根代理节点(Junos OS 13.3 和更高版本中支持)。
默认情况下,会使用存根链路。要启用增强的本地修复点 (PLR) 功能(其中 PLR 在出口故障时重新路由服务流量),请配置存根别名节点或存根代理节点,如下所示:
[edit protocols mpls egress-protection context-identifier 192.0.2.6] user@host# set advertise-mode ? Possible completions: stub-alias Alias stub-proxy Proxy
这两种方法可以根据网络部署的需求提供不同的优势。
作为 Stub Alias 节点的上下文标识符
在剩余别名方法中,LSP 端点地址具有显式备份出口节点,可在受保护 LSP 的倒数第二跳节点上学习或配置备份。借助此模型,受保护 LSP 倒数第二个跳跃节点设置绕过 LSP 隧道,通过避免主出口节点来备份出口节点。此模型需要在核心节点中升级 Junos OS,但足够灵活才能支持所有流量工程约束。
PLR 会了解到上下文 ID 具有保护器。当主上下文 ID 关闭时,数据包将通过预先编程的备份路径重新路由至保护器。上下文 ID 和保护器映射在 PLR 上配置或学习,并在 IGP 中从保护器发出信号。PLR 上称为 inet.5 的路由表提供已配置或 IGP 学习的详细信息。
IS-IS 通过 IP 地址 TLV 将上下文 ID 通告到 TED 中。IS-IS 将此 TLV 作为扩展信息导入 TED。IS-IS 将 inet.5 路由中的保护器 TLV 路由通告为上下文 ID,而协议下一跳跃则是保护器的路由器 ID。如果保护器 TLV 有标签,则标签会添加到 inet.5 路由表中的路由中,供 LDP 使用。
CSPF 考虑用于通道端点计算的 IP 地址 TLV。
使用存根别名模型时,保护器 LSP 设置不需要更改任何节点。但是,要实现节点保护,请绕过 LSP 设置,PHN 和保护器路由器需要更改。
当 RSVP 设置旁路进行节点保护 LSP 时,如果 PLR 是 LSP 的倒数第二跳跃,RSVP 还会执行保护器查找。如果保护器可用于 LSP 目标,则使用 CSPF 计算受限的路径,该路径不包括出口 PE,如果尚未设置环境 ID,则会将旁路 LSP 目标设置为上下文 ID。将绕过 LSP 设置到上下文 ID 时,PLR 会取消所有保护选项。
如果网络支持 100% LFA 覆盖范围,但不支持 100% 的每个前缀 LFA 覆盖范围,则 LDP 非常有用。LDP 使用保护器设置备份路径,其上下文标签由保护器通告至服务点。
在 100% LFA 覆盖范围不可用的网络中,使用基于 RSVP 的隧道备份 LSP FLA 很有用。
在稳定状态下,转发与 PLR 中任何其他受保护的 LSP 相同。在保护器中,为上下文 ID 通告和发出信号的非空标签的表下一跃点指向 MPLS 上下文表,其中对等方的标签进行编程。
故障期间,PLR 使用旁路 LSP 将传输标签换成上下文 ID,或者交换标签上下文标签(上下文 ID 的保护器通告标签),然后将传输标签推送至保护器 lo0 接口地址。
作为 Stub 代理节点的上下文标识符
上下文标识符为存根代理节点(Junos OS 13.3 和更高版本中支持)。存根节点仅显示在 AS 路径末端,这意味着它不提供传输服务。在此模式下,称为虚拟或代理模式,LSP 端点地址表示为具有双向链路的节点,其中包含 LSP 的主出口节点和备份出口节点。借助此表示,LSP 主出口点的倒数第二跳跃可以像 PLR 一样设置旁路通道,通过避免主出口节点来备份出口。此模型的优势在于无需在核心节点上升级 Junos OS,从而帮助运营商部署此技术。
上下文 ID 表示为信息流工程 (TE) 和 IGP 数据库中的节点。主 PE 设备会将上下文节点通告到 IGP 和 TE 数据库中。主 PE 设备和受保护 PE 设备支持带宽和 TE 指标与上下文节点的一个链路。Junos OS 不会通告 TE 链路的其他 TE 特性。
在 IS-IS 中,主 PE 路由器通告代理节点以及与主路由器和保护器路由器的链路。主路由器和保护器路由器将链路通告至代理节点。代理节点将构建以下信息。
系统 ID — 基于上下文 ID 的二进制编码十进制。
主机名称 — 保护器名称:上下文 ID
LSP-ID — <系统 ID>.00
PDU 类型 — 基于配置的级别 2 和级别 1
LSP 属性:
过载 — 1
IS_TYPE_L1(0x01) |2 级 PDU 的IS_TYPE_L2(0x02)
级别 1 的IS_TYPE_L1
多area — 否
所有其他属性 — 0
代理节点仅包含区域、MT、主机名称、路由器 ID、协议和 IS reachabilty TLV。区域、MT、身份验证和协议 TLV 与主交换机相同。IS 可访问性 TLV 包含两个链路,称为 Cnode-主要链路和 Cnode-protector-link。这两个链路都包含 TE TLV。以下 TE-link-TLV 在上下文链接中通告:
IPv4 接口或邻接方地址
最大带宽
TE 默认度量
链路(本地或远程)标识符
子 TLV 值:
带宽 — 零
TE 指标 — 最大 TE 指标
接口地址 — 上下文 ID
保护器邻接方地址 — 保护器路由器 ID
主邻接方地址 — 受保护的路由器 ID
链路本地 ID 保护器 — 0x80fffff1
链路本地 ID 主 - 0x80fffff2
链路远程 ID 保护器 — 从保护方那里学习
链路远程 ID 主 - 从主设备学习
与上下文节点的受保护 PE 链路(主要通告链接并提供以下详细信息):
带宽 — 最大
TE 指标 — 1
接口地址 — 路由器 ID
上下文邻接方地址 — 上下文 ID
将本地 ID 链接到上下文节点 — 自动生成(类似于虚假链路)
将远程 ID 链接到上下文节点 — 0x80fffff2
保护器 PE 与上下文节点的链接:
保护器将未编号的传输链路通告至上下文节点的最大可路由链路指标以及最大 TE 指标和零带宽。未通告其他 TE 特征。
未编号链接的通告具有以下属性:
带宽 — 0
TE 指标 — 最大 TE 指标
接口地址 — 路由器 ID
上下文邻接方地址 — 上下文 ID
将本地 ID 链接到上下文节点 — 自动生成(类似于假链路)
将远程 ID 链接到上下文节点 — 0x80fffff1
在 RSVP 中,行为更改仅在保护器和主路由器中。RSVP 将 LSP 和旁路 LSP 终止至上下文 ID。如果上下文 ID 是保护器,则会发出非空标签信号。否则,将基于配置或请求的标签类型。RSVP 会验证自身路径中的显式路由对象 (ERO)和上下文 ID。RSVP 使用两个记录路由对象 (RRO) 对象发送 Resv 消息,一个用于上下文 ID,一个用于自身。这模拟倒数第二跳跃节点 (PHN), 与上下文 ID LSP 的主保护器一起执行节点保护。作为快速重新路由 (FRR) 必需的旁路,LSP 必须通过保护器绕过上下文 ID 并将其合并回保护器 LSP PHN 设置,方法是避免主设备。
保护器还会终止上下文 ID 的备份 LSP,以便在故障期间使受保护的 LSP 保持活力,直到入口节点使 LSP 辞职。新的 LSP 通过保护器重新建立,但是此 LSP 不用于服务流量,因为服务协议不使用上下文 ID。即使主设备出现,LSP 也会遍历保护器。只有重新优化才能通过初选让 LSP 辞职。在存根代理模式下,不支持受约束的旁路 LSP。
由于 IGP 中通告的膨胀指标,LDP 无法使用存根代理方法。
关于转发状态,用于保护连接到另一个 PE 的一个或多个分段的 PE 路由器称为保护器 PE。保护器 PE 必须了解其保护的分段的转发状态,以抵御受保护的主要 PE。
对于给定分段,如果保护器 PE 未直接连接到与该分段关联的 CE 设备,则还必须至少从一个备份 PE 学习转发状态。这种情况只有在出口 PE 故障保护的情况下才会出现。
保护器 PE 在主 PE 上下文中维护给定分段的转发状态。保护器 PE 可能仅对主 PE 上的一个分段或主 PE 上的所有分段保持状态。
示例:为第 3 层 VPN 服务配置 MPLS 出口保护
此示例介绍在客户边缘 (CE) 路由器多宿主使用多个 PE 路由器的情况下,用于保护第 3 层 VPN 服务免受出口提供商边缘 (PE) 路由器故障侵害的本地维修机制。
此示例中使用了以下术语:
发起方 PE 路由器 — 带有受保护路由实例或子网的 PE 路由器,用于分配主要第 3 层 VPN 路由器。
备份 PE 路由器 — 宣布备份第 3 层 VPN 路由的 PE 路由器。
保护器 PE 路由器 — 将由发起方 PE 路由器分发的 VPN 标签交叉连接到由备份 PE 路由器发起的标签的路由器。保护器 PE 路由器也可作为备份 PE 路由器。
传输 LSP — 用于 BGP 下一跳跃的 LDP 信号标签交换系列 (LSP)。
PLR — 作为本地维修点 (PLR) 的路由器,可将第 3 层 VPN 流量重定向至保护器 PE 路由器,以实现快速恢复和重新路由。
无环路替代路由 — 一种技术,通过预先计算 IGP 所有主要路由的备份路由,为内部网关协议 (IGP) 添加 IP 快速重新路由功能。在本文档中,IGP 是 IS-IS。
多宿主 - 使您能够将 CE 设备连接到多个 PE 路由器的技术。如果与主 PE 路由器的连接发生故障,信息流可自动切换至备份 PE 路由器。
上下文标识符 — 用于识别需要保护的 VPN 前缀的 IPv4 地址。标识符传播到 PE 和 PLR 核心路由器,使受保护的出口 PE 路由器能够将出口保护信号发送至保护器 PE 路由器。
双重保护 — 一种保护机制,两个 PE 路由器可同时充当其各自上下文 ID 路由或下一跳跃的主 PE 路由器和保护器 PE 路由器。例如,在两个 PE 路由器 PE1 和 PE2 之间 PE1 可以是上下文标识符 203.0.113.1 的主 PE 路由器,也是上下文标识符 203.0.113.2 的保护器 同样,PE2 路由器可以是上下文标识符 203.0.113.1 和上下文标识符 203.0.113.2 的主 PE 路由器的保护器。
示例:为第 3 层 VPN 服务配置出口保护
此示例说明如何配置出口保护,以便快速恢复第 3 层 VPN 服务。
要求
此示例使用以下硬件和软件组件
MX 系列 5G 通用路由平台
通道 PIC 或增强型 IP 网络服务模式的配置(在层次结构级别上
[edit chassis]
使用network-services enhanced-ip
语句)。在设备上运行的 Junos OS 11.4R3 或更高版本
开始之前:
配置设备接口。请参阅 Junos OS 网络接口配置指南。
在所有 PE 和 PLR 路由器上配置以下路由协议。
MPLS、LSP 和 LDP。请参阅 Junos OS MPLS 应用程序配置指南。
BGP 和 IS-IS。请参阅 Junos OS 路由协议配置指南。
配置第 3 层 VPN。请 参阅 Junos OS VPN 配置指南。
概述
一般情况下,如果出口 PE 路由器出现故障(对于多宿主客户边缘 [CE] 路由器),第 3 层 VPN 服务恢复取决于入口 PE 路由器检测出口 PE 节点故障,并将流量切换到备份 PE 路由器以用于多宿主 CE 站点。
Junos OS 版本 11.4R3 或更高版本使您能够为第 3 层 VPN 服务配置出口保护,在 CE 站点多宿主于一个 PE 路由器的情况下,保护服务免遭出口 PE 节点故障。该机制允许在出口节点故障时立即进行本地维修。作为本地维修点 (PLR) 的路由器将 VPN 流量重定向至保护器 PE 路由器,以便快速恢复服务,实现可与 MPLS 快速重新路由相媲美的快速保护。
用于配置出口保护的语句包括:
egress-protection
—在 [edit protocols mpls] 层次结构级别配置时,此语句指定了第 3 层 VPN 和边缘保护虚拟电路的保护者信息和上下文标识符:[edit protocols mpls] egress-protection { context-identifier context-id { primary | protector; metric igp-metric-value; } }
在
[edit protocols bgp group group-name family inet-vpn unicast]
下层、[edit protocols bgp group group-name family inet6-vpn unicast]
或[edit protocols bgp group group-name family iso-vpn unicast]
层次结构级别配置时,出口保护语句指定了上下文标识符,以启用对已配置的 BGP VPN 网络层可访问性信息 (NLRI) 的出口保护。[edit protocols bgp] group internal { type internal; local-address ip-address; family <inet-vpn|inet6-vpn|iso-vpn> { unicast { egress-protection { context-identifier { context-id-ip-address; } } } } }
在
[edit routing-instances]
层次结构级别配置时,语egress-protection
句将保留受保护 PE 路由器的上下文标识符。此配置仅必须在主 PE 路由器中完成,并用于下一跳跃的出站 BGP 更新。
[edit routing-instance] routing-instance-name { egress-protection { context-identifier { context-id-ip-address; } } }
在
[edit routing-instances routing-instance-name]
层级配置context-identifier
语句可为每个 VRF 实例提供客户边缘 VRF 级别上下文 ID 粒度。context-identifier
—此语句指定了用于定义参与出口保护 LSP 的 PE 路由器对的 IPV4 地址。上下文标识符用于将标识符分配给保护器 PE 路由器。标识符传播至参与网络的其他 PE 路由器,使受保护出口 PE 路由器能够将出口保护 LSP 信号发送至保护器 PE 路由器。
配置
CLI 快速配置
此示例仅显示与在受保护路由器、PE2、保护器路由器、PE3 和 PLR 路由器上配置第 3 层 VPN 服务的出口 PE 保护相关的样本配置。
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,移除任何换行符,更改与网络配置匹配所需的任何详细信息,然后将命令复制粘贴到层次结构级别的 [edit]
CLI 中。
PE2(受保护 PE 路由器)
set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols mpls egress-protection context-identifier 192.0.2.6 primary set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.245.194 set protocols bgp group ibgp family inet-vpn unicast egress-protection context-identifier 192.0.2.6
PE3(保护器 PE 路由器)
set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols mpls egress-protection context-identifier 192.0.2.6 protector set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.245.196 set protocols bgp group ibgp family inet-vpn unicast egress-protection keep-import remote-vrf set policy-options policy-statement remote-vrf from community rsite1 set policy-options policy-statement remote-vrf from community rsite24 set policy-options policy-statement remote-vrf then accept set policy-options community rsite1 members target:1:1 set policy-options community rsite24 members target:100:1023
PLR 路由器
set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols isis level 1 disable set protocols isis interface all node-link-protection set protocols isis backup-spf-options per-prefix-calculation set protocols ldp track-igp-metric set protocols ldp interface all set protocols ldp interface fxp0.0 disable
配置受保护 PE 路由器 (PE2)
逐步过程
要配置受保护 PE 路由器,PE2:
在接口上配置 MPLS。
[edit protocols mpls] user@PE2# set interface all user@PE2#set interface fxp0.0 disable
配置出口保护和上下文标识符。
注意:上下文标识符类型必须设置为
primary
。[edit protocols mpls] user@PE2# set egress-protection context-identifier 192.0.2.6 primary
为配置的 BGP NRLI 配置出口保护。
注意:在层次结构级别上配置的
[edit protocols bgp group group-name family inet-vpn]
上下文标识符应与在层次结构级别上配置的[edit protocols mpls]
上下文标识符匹配。[edit protocols bgp] user@PE2# set group ibgp type internal user@PE2# set group ibgp local-address 10.255.245.194 user@PE2# set group ibgp family inet-vpn unicast egress-protection context-identifier 192.0.2.6
注意:在层级配置上下文标识符
[edit routing-instances routing-instance-name]
可为每个虚拟路由和转发 (VRF) 实例提供 CE VRF 级别上下文 ID 粒度。完成设备配置后,提交配置。
[edit] user@PE2# commit
结果
发出 show protocols 命令来确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@PE2# show protocols mpls { interface all; interface fxp0.0 { disable; } egress-protection { context-identifier 192.0.2.6 { primary; } } } bgp { group ibgp { type internal; local-address 10.255.245.194; family inet-vpn { unicast { egress-protection { context-identifier { 192.0.2.6; } } } } } }
配置保护器 PE 路由器 (PE3)
逐步过程
要配置保护器 PE 路由器,PE3:
在接口上配置 MPLS。
[edit protocols mpls] user@PE3# set interface all user@PE3#set mpls interface fxp0.0 disable
配置出口保护和上下文标识符。
[edit protocols mpls] user@PE3#set egress-protection context-identifier 192.0.2.6 protector
配置 IPv4 第 3 层 VPN NRLI 参数。
[edit protocols bgp] user@PE3# set group ibgp type internal user@PE3# set group ibgp local-address 10.255.245.196 user@PE3# set group ibgp family inet-vpn unicast egress-protection keep-import remote-vrf
配置路由策略选项。
[edit policy-options] user@PE3# set policy-statement remote-vrf from community rsite1 user@PE3# set policy-statement remote-vrf from community rsite24 user@PE3# set policy-statement remote-vrf then accept user@PE3# set community rsite1 members target:1:1 user@PE3# set community rsite24 members target:100:1023
完成设备配置后,提交配置。
[edit] user@PE3# commit
结果
发出 show protocols
和 show policy-options
命令来确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@PE3# show protocols mpls { interface all; interface fxp0.0 { disable; } egress-protection { context-identifier 192.0.2.6 { protector; } } } bgp { group ibgp { type internal; local-address 10.255.245.196; family inet-vpn { unicast { egress-protection { keep-import remote-vrf; } } } } }
user@PE3# show policy-options policy-statement remote-vrf { from community [ rsite1 rsite24 ]; then accept; } community rsite1 members target:1:1; community rsite24 members target:100:1023;
配置 PLR 路由器
逐步过程
要将路由器配置为本地维修点 (PLR):
在接口上配置 MPLS。
[edit protocols mpls] user@PLR# set interface all user@PLR# set interface fxp0.0 disable
配置每前缀-LFA 计算以及链路保护。
[edit protocols isis] user@PLR# set backup-spf-options per-prefix-calculation user@PLR# set level 1 disable user@PLR# set interface all node-link-protection user@PLR# set interface fxp0.0 disable
配置 LDP 以使用内部网关协议 (IGP) 路由指标,而不是默认 LDP 路由指标(默认 LDP 路由指标为 1)。
[edit protocols ldp] user@PLR# set track-igp-metric user@PLR# set interface all user@PLR# set interface fxp0.0 disable
结果
发出 命令以 show protocols
确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@PLR# show protocols mpls { interface all; interface fxp0.0 { disable; } } isis { backup-spf-options per-prefix-calculation; level 1 disable; interface all { node-link-protection; } } ldp { track-igp-metric; interface all; interface fxp0.0 { disable; } }
验证
确认配置工作正常。
验证出口保护详细信息
目的
检查出口保护配置。
行动
user@PE3> show mpls egress-protection details Instance Type Protection-Type rsite1 remote-vrf Protector RIB __192.0.2.6-rsite1__.inet.0, Context-Id 192.0.2.6, Enhanced-lookup Route Target 1:1 rsite24 remote-vrf Protector RIB __192.0.2.6-rsite24__.inet.0, Context-Id 192.0.2.6, Enhanced-lookup Route Target 100:1023
意义
Instance
指示路由实例名称。 Type
显示了 VRF 的类型。它可以是 local-vrf
或 remote-vrf
. RIB
(路由信息库)表示创建的边缘保护路由表。 Context-Id
显示了与 RIB 关联的上下文 ID。 Route Target
显示了与路由实例关联的路由目标。
验证路由实例
目的
验证路由实例。
行动
user@PE3> show route instance site1 detail site1: Router ID: 198.51.100.1 Type: vrf State: Active Interfaces: lt-1/3/0.8 Route-distinguisher: 10.255.255.11:150 Vrf-import: [ site1-import ] Vrf-export: [ __vrf-export-site1-internal__ ] Vrf-export-target: [ target:100:250 ] Fast-reroute-priority: low Vrf-edge-protection-id: 192.0.2.6 Tables: site1.inet.0 : 27 routes (26 active, 0 holddown, 0 hidden) site1.iso.0 : 0 routes (0 active, 0 holddown, 0 hidden) site1.inet6.0 : 0 routes (0 active, 0 holddown, 0 hidden) site1.mdt.0 : 0 routes (0 active, 0 holddown, 0 hidden)
意义
Vrf-edge-protection-id
显示了使用路由实例在保护器 PE 路由器中配置的出口保护。
验证 BGP NRLI
目的
检查 BGP VPN 网络层可访问性信息的详细信息。
行动
user@PE3> show bgp neighbor Peer: 10.255.55.1+179 AS 65535 Local: 10.255.22.1+59264 AS 65535 Type: Internal State: Established Flags: <ImportEval Sync> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Options: <Preference LocalAddress KeepAll AddressFamily Rib-group Refresh> Address families configured: inet-vpn-unicast Local Address: 10.255.22.1 Holdtime: 90 Preference: 170 NLRI configured with egress-protection: inet-vpn-unicast Egress-protection NLRI inet-vpn-unicast, keep-import: [ VPN-A-remote ] Number of flaps: 0
意义
NLRI configured with egress-protection
显示了配置了出口保护的 BGP 系列。 egress-protection NLRI inet-vpn-unicast, keep-import: [remote-vrf]
显示了 BGP 组的出口保护路由策略。
示例:使用 RSVP 和 LDP 配置第 3 层 VPN 出口保护
此示例说明如何在客户多宿主到服务提供商时,在第 3 层 VPN 出口配置快速服务恢复。此外,此示例还包括增强的本地修复点 (PLR) 功能,其中 PLR 可在出口故障时重新路由服务流量。
从 Junos OS 版本 13.3 开始,提供增强型 PLR 功能,其中 PLR 可在出口故障时重新路由服务流量。作为此增强功能的一部分,PLR 路由器不再需要直接连接到保护器路由器。以前,如果 PLR 没有直接连接到保护器路由器,则无环路替代路由无法找到保护器的备份路径。
要求
配置此示例之前,无需设备初始化以外的特殊配置。
此示例需要 Junos OS 版本 13.3 或更高版本。
概述
在此示例中,客户边缘 (CE) 设备是 VPN 的一部分,其中设备 CE1 采用设备 PE2 和设备 PE3 进行多宿主。
设备 PE3 充当第 3 层 VPN 路由实例或子网的保护器。
设备 PE1 是设备 CE1 上下文标识符的发起人,设备 PE2 是该上下文标识符的主要路由器,而设备 PE3 是该上下文标识符的保护器。
设备 P1 用作本地维修点 (PLR)。因此,设备 P1 可将第 3 层 VPN 流量重定向至保护器 PE 路由器,以实现快速恢复和重新路由。
工作路径通过 P1>PE2。备份路径通过 P1>PE3。正常情况下,信息流通过工作路径。检测到设备 PE2 节点或链路故障时,流量将从工作路径重新路由到受保护路径。在正常的故障转移过程中,故障检测和恢复依赖于控制平面,因此速度相对较慢。通常,如果核心网络存在链路或节点故障,出口 PE 路由器必须依靠入口 PE 路由器来检测故障并切换到备份路径,因为无法为出口故障提供本地维修选项。要为出口 PE 链路或节点故障提供本地维修解决方案,此示例中使用称为出口保护的机制来修复并快速恢复连接。由于已配置出口保护,因此 PLR 路由器会检测设备 PE2 链路或节点故障,并使用备份 LDP 信号标签交换系列 (LSP) 通过保护器设备 PE3 重新路由流量。PLR 路由器使用每前缀无环路替代路由通过设备 PE3 对备份下一跃点进行编程,并且流量将使用备用路径转发至设备 CE2。此恢复在 PLR 路由器检测到设备 PE2 出口节点或链路故障后快速完成。双保护机制也可用于出口保护,其中两个 PE 路由器可同时充当其各自上下文 ID 路由或下一跳跃的主 PE 路由器和保护器 PE 路由器。
除了出口保护,此示例还演示了增强型 PLR 功能,其中 PLR 可在出口故障期间重新路由服务流量。Junos OS 版本 13.3 和更高版本支持此增强功能。在此示例中,设备 P1 (PLR) 直接连接到设备 PE3(保护器)。新的配置语句 advertise-mode
允许您设置内部网关协议 (IGP) 通告出口保护可用性的方法。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,移除任何换行符,更改与网络配置匹配所需的任何详细信息,然后将命令复制粘贴到层次结构级别的 [edit]
CLI 中。
设备 CE1
set interfaces ge-1/2/0 unit 0 description to_PE1 set interfaces ge-1/2/0 unit 0 family inet address 10.1.0.1/24 set interfaces lo0 unit 0 family inet address 172.16.0.1/32 set protocols ospf area 0.0.0.0 interface ge-1/2/0.0
设备 CE2
set interfaces ge-1/2/2 unit 0 description to_PE2 set interfaces ge-1/2/2 unit 0 family inet address 10.8.0.2/24 set interfaces ge-1/2/0 unit 0 description to_PE3 set interfaces ge-1/2/0 unit 0 family inet address 10.9.0.2/24 set interfaces lo0 unit 0 family inet address 172.16.0.2/32 set protocols ospf area 0.0.0.0 interface ge-1/2/2.0 set protocols ospf area 0.0.0.0 interface ge-1/2/0.0
设备 P1
set interfaces ge-1/2/1 unit 0 description to_PE1 set interfaces ge-1/2/1 unit 0 family inet address 10.2.0.2/24 set interfaces ge-1/2/1 unit 0 family iso set interfaces ge-1/2/1 unit 0 family mpls set interfaces ge-1/2/0 unit 0 description to_PE2 set interfaces ge-1/2/0 unit 0 family inet address 10.4.0.1/24 set interfaces ge-1/2/0 unit 0 family iso set interfaces ge-1/2/0 unit 0 family mpls set interfaces ge-1/2/2 unit 0 description to_PE3 set interfaces ge-1/2/2 unit 0 family inet address 10.5.0.1/24 set interfaces ge-1/2/2 unit 0 family iso set interfaces ge-1/2/2 unit 0 family mpls set interfaces lo0 unit 0 family inet address 172.16.0.3/32 set interfaces lo0 unit 0 family iso address 49.0002.0172.0016.0003.00 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls interface all set protocols isis backup-spf-options per-prefix-calculation set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface all node-link-protection set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp track-igp-metric set protocols ldp interface all set protocols ldp interface fxp0.0 disable
设备 PE1
set interfaces ge-1/2/0 unit 0 description to_CE1 set interfaces ge-1/2/0 unit 0 family inet address 10.1.0.2/24 set interfaces ge-1/2/1 unit 0 description to_P1 set interfaces ge-1/2/1 unit 0 family inet address 10.2.0.1/24 set interfaces ge-1/2/1 unit 0 family iso set interfaces ge-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 172.16.183.55/32 set interfaces lo0 unit 0 family iso address 49.0002.1720.1618.3055.00 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path toPrimary192.0.2.6 to 192.0.2.6 set protocols mpls label-switched-path toPrimary192.0.2.6 egress-protection set protocols mpls interface all set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 172.16.183.55 set protocols bgp group ibgp family inet-vpn unicast set protocols bgp group ibgp neighbor 172.16.183.56 set protocols bgp group ibgp neighbor 172.16.183.59 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp track-igp-metric set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-instances vpn1 instance-type vrf set routing-instances vpn1 interface ge-1/2/0.0 set routing-instances vpn1 route-distinguisher 172.16.183.55:10 set routing-instances vpn1 vrf-target target:10:10 set routing-instances vpn1 routing-options static route 100.0.0.0/24 next-hop 10.1.0.1 set routing-instances vpn1 protocols ospf area 0.0.0.0 interface ge-1/2/0.0 set routing-options autonomous-system 64510
设备 PE2
set interfaces ge-1/2/0 unit 0 description to_P1 set interfaces ge-1/2/0 unit 0 family inet address 10.4.0.2/24 set interfaces ge-1/2/0 unit 0 family iso set interfaces ge-1/2/0 unit 0 family mpls set interfaces ge-1/2/2 unit 0 description to_CE2 set interfaces ge-1/2/2 unit 0 family inet address 10.8.0.1/24 set interfaces ge-1/2/1 unit 0 description to_PE3 set interfaces ge-1/2/1 unit 0 family inet address 10.7.0.1/24 set interfaces ge-1/2/1 unit 0 family iso set interfaces ge-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 172.16.183.56/32 set interfaces lo0 unit 0 family iso address 49.0002.1720.1618.3056.00 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path toPE1 to 172.16.183.55 set protocols mpls label-switched-path toPrimary192.0.2.6 to 192.0.2.6 set protocols mpls label-switched-path toPrimary192.0.2.6 egress-protection set protocols mpls interface all set protocols mpls egress-protection context-identifier 192.0.2.6 primary set protocols mpls egress-protection context-identifier 192.0.2.6 advertise-mode stub-proxy set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 172.16.183.56 set protocols bgp group ibgp family inet-vpn unicast egress-protection context-identifier 192.0.2.6 set protocols bgp group ibgp neighbor 172.16.183.55 set protocols bgp group ibgp neighbor 172.16.183.59 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp track-igp-metric set protocols ldp interface all set protocols ldp interface fxp0.0 disable set routing-options autonomous-system 64510
设备 PE3
set interfaces ge-1/2/2 unit 0 description to_P1 set interfaces ge-1/2/2 unit 0 family inet address 10.5.0.2/24 set interfaces ge-1/2/2 unit 0 family iso set interfaces ge-1/2/2 unit 0 family mpls set interfaces ge-1/2/0 unit 0 description to_CE2 set interfaces ge-1/2/0 unit 0 family inet address 10.9.0.1/24 set interfaces ge-1/2/1 unit 0 description to_PE2 set interfaces ge-1/2/1 unit 0 family inet address 10.7.0.2/24 set interfaces ge-1/2/1 unit 0 family iso set interfaces ge-1/2/1 unit 0 family mpls set interfaces lo0 unit 0 family inet address 172.16.183.59/32 set interfaces lo0 unit 0 family iso address 49.0002.1720.1618.3059.00 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path toPE1 to 172.16.183.55 set protocols mpls interface all set protocols mpls egress-protection context-identifier 192.0.2.6 protector set protocols mpls egress-protection context-identifier 192.0.2.6 advertise-mode stub-proxy set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 172.16.183.59 set protocols bgp group ibgp family inet-vpn unicast egress-protection keep-import remote-vrf set protocols bgp group ibgp neighbor 172.16.183.55 set protocols bgp group ibgp neighbor 172.16.183.56 set protocols isis level 1 disable set protocols isis level 2 wide-metrics-only set protocols isis interface all set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 set protocols ldp track-igp-metric set protocols ldp interface all set policy-options policy-statement remote-vrf from community rsite1 set policy-options policy-statement remote-vrf from community rsite24 set policy-options policy-statement remote-vrf then accept set policy-options community rsite1 members target:1:1 set policy-options community rsite24 members target:100:1023 set routing-options autonomous-system 64510
程序
逐步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅 CLI 用户指南中的配置模式下使用 CLI 编辑器。
要配置设备 P1(PLR):
配置设备接口。
[edit interfaces] user@P1# set ge-1/2/1 unit 0 description to_PE1 user@P1# set ge-1/2/1 unit 0 family inet address 10.2.0.2/24 user@P1# set ge-1/2/1 unit 0 family iso user@P1# set ge-1/2/1 unit 0 family mpls user@P1# set ge-1/2/0 unit 0 description to_PE2 user@P1# set ge-1/2/0 unit 0 family inet address 10.4.0.1/24 user@P1# set ge-1/2/0 unit 0 family iso user@P1# set ge-1/2/0 unit 0 family mpls user@P1# set ge-1/2/2 unit 0 description to_PE3 user@P1# set ge-1/2/2 unit 0 family inet address 10.5.0.1/24 user@P1# set ge-1/2/2 unit 0 family iso user@P1# set ge-1/2/2 unit 0 family mpls user@P1# set lo0 unit 0 family inet address 172.16.0.3/32 user@P1# set lo0 unit 0 family iso address 49.0002.0172.0016.0003.00
配置 IS-IS。
配置每前缀-LFA 计算以及节点链路保护。
[edit protocols isis] user@P1# set backup-spf-options per-prefix-calculation user@P1# set level 1 disable user@P1# set level 2 wide-metrics-only user@P1# set interface all node-link-protection user@P1# set interface fxp0.0 disable user@P1# set interface lo0.0
启用 MPLS。
[edit protocols mpls ] user@P1# set interface all
启用 RSVP。
[edit protocols rsvp] user@P1# set interface all user@P1# set interface fxp0.0 disable
启用 LDP。
[edit protocols ldp] user@P1# set track-igp-metric user@P1# set interface all user@P1# set interface fxp0.0 disable
逐步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅 CLI 用户指南中的配置模式下使用 CLI 编辑器。
要配置设备 PE1:
配置设备接口。
[edit interfaces] user@PE1# set ge-1/2/0 unit 0 description to_CE1 user@PE1# set ge-1/2/0 unit 0 family inet address 10.1.0.2/24 user@PE1# set ge-1/2/1 unit 0 description to_P1 user@PE1# set ge-1/2/1 unit 0 family inet address 10.2.0.1/24 user@PE1# set ge-1/2/1 unit 0 family iso user@PE1# set ge-1/2/1 unit 0 family mpls user@PE1# set lo0 unit 0 family inet address 172.16.183.55/32 user@PE1# set lo0 unit 0 family iso address 49.0002.1720.1618.3055.00
启用 RSVP。
[edit protocols rsvp] user@PE1# set interface all user@PE1# set interface fxp0.0 disable
配置 MPLS。
[edit protocols mpls] user@PE1# set label-switched-path toPrimary192.0.2.6 to 192.0.2.6 user@PE1# set label-switched-path toPrimary192.0.2.6 egress-protection user@PE1# set interface all
配置 IBGP。
[edit protocols bgp group ibgp] user@PE1# set type internal user@PE1# set local-address 172.16.183.55 user@PE1# set family inet-vpn unicast user@PE1# set neighbor 172.16.183.56 user@PE1# set neighbor 172.16.183.59
配置 IS-IS。
[edit protocols isis] user@PE1# set level 1 disable user@PE1# set level 2 wide-metrics-only user@PE1# set interface all user@PE1# set interface fxp0.0 disable user@PE1# set interface lo0.0
启用 LDP。
[edit protocols ldp] user@PE1# set track-igp-metric user@PE1# set interface all user@PE1# set interface fxp0.0 disable
配置路由实例。
[edit routing-instances vpn1] user@PE1# set instance-type vrf user@PE1# set interface ge-1/2/0.0 user@PE1# set route-distinguisher 172.16.183.55:10 user@PE1# set vrf-target target:10:10 user@PE1# set routing-options static route 100.0.0.0/24 next-hop 10.1.0.1 user@PE1# set protocols ospf area 0.0.0.0 interface ge-1/2/0.0
配置自治系统 (AS) 编号。
[edit routing-options] user@PE1# set autonomous-system 64510
逐步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅CLI 用户指南中的配置模式下使用 CLI 编辑器。
要配置设备 PE2:
配置设备接口。
[edit interfaces] user@PE2# set ge-1/2/0 unit 0 description to_P1 user@PE2# set ge-1/2/0 unit 0 family inet address 10.4.0.2/24 user@PE2# set ge-1/2/0 unit 0 family iso user@PE2# set ge-1/2/0 unit 0 family mpls user@PE2# set ge-1/2/2 unit 0 description to_CE2 user@PE2# set ge-1/2/2 unit 0 family inet address 10.8.0.1/24 user@PE2# set ge-1/2/1 unit 0 description to_PE3 user@PE2# set ge-1/2/1 unit 0 family inet address 10.7.0.1/24 user@PE2# set ge-1/2/1 unit 0 family iso user@PE2# set ge-1/2/1 unit 0 family mpls user@PE2# set lo0 unit 0 family inet address 172.16.183.56/32 user@PE2# set lo0 unit 0 family iso address 49.0002.1720.1618.3056.00
启用 RSVP。
[edit protocols rsvp] user@PE2# set interface all user@PE2# set interface fxp0.0 disable
配置 MPLS。
[edit protocols mpls] user@PE2# set label-switched-path toPE1 to 172.16.183.55 user@PE2# set label-switched-path toPrimary192.0.2.6 to 192.0.2.6 user@PE2# set label-switched-path toPrimary192.0.2.6 egress-protection user@PE2# set interface all user@PE2# set egress-protection context-identifier 192.0.2.6 primary user@PE2# set egress-protection context-identifier 192.0.2.6 advertise-mode stub-proxy
配置 IBGP。
[edit protocols bgp group ibgp] user@PE2# set type internal user@PE2# set local-address 172.16.183.56 user@PE2# set family inet-vpn unicast egress-protection context-identifier 192.0.2.6 user@PE2# set neighbor 172.16.183.55 user@PE2# set neighbor 172.16.183.59
配置 IS-IS。
[edit protocols isis] user@PE2# set level 1 disable user@PE2# set level 2 wide-metrics-only user@PE2# set interface all user@PE2# set interface fxp0.0 disable user@PE2# set interface lo0.0
启用 LDP。
[edit protocols ldp] user@PE2# set track-igp-metric user@PE2# set interface all user@PE2# set interface fxp0.0 disable
配置 AS 编号。
[edit routing-options] user@PE2# set autonomous-system 64510
逐步过程
以下示例要求您在配置层次结构中导航各个级别。有关导航 CLI 的信息,请参阅 CLI 用户指南中的配置模式下使用 CLI 编辑器。
要配置设备 PE3:
配置设备接口。
[edit interfaces] user@PE3# set ge-1/2/2 unit 0 description to_P1 user@PE3# set ge-1/2/2 unit 0 family inet address 10.5.0.2/24 user@PE3# set ge-1/2/2 unit 0 family iso user@PE3# set ge-1/2/2 unit 0 family mpls user@PE3# set ge-1/2/0 unit 0 description to_CE2 user@PE3# set ge-1/2/0 unit 0 family inet address 10.9.0.1/24 user@PE3# set ge-1/2/1 unit 0 description to_PE2 user@PE3# set ge-1/2/1 unit 0 family inet address 10.7.0.2/24 user@PE3# set ge-1/2/1 unit 0 family iso user@PE3# set ge-1/2/1unit 0 family mpls user@PE3# set lo0 unit 0 family inet address 172.16.183.59/32 user@PE3# set lo0 unit 0 family iso address 49.0002.1720.1618.3059.00
启用 RSVP。
[edit protocols rsvp] user@PE3# set interface all user@PE3# set interface fxp0.0 disable
配置 MPLS。
[edit protocols mpls] user@PE3# set label-switched-path toPE1 to 172.16.183.55 user@PE3# set interface all user@PE3# set egress-protection context-identifier 192.0.2.6 protector user@PE3# set egress-protection context-identifier 192.0.2.6 advertise-mode stub-proxy
配置 IBGP。
[edit protocols bgp group ibgp] user@PE3# set type internal user@PE3# set local-address 172.16.183.59 user@PE3# set family inet-vpn unicast egress-protection keep-import remote-vrf user@PE3# set neighbor 172.16.183.55 user@PE3# set neighbor 172.16.183.56
配置 IS-IS。
[edit protocols isis] user@PE3# set level 1 disable user@PE3# set level 2 wide-metrics-only user@PE3# set interface all user@PE3# set interface fxp0.0 disable user@PE3# set interface lo0.0
启用 LDP。
[edit protocols ldp] user@PE3# set track-igp-metric user@PE3# set interface all
配置路由策略。
[edit policy-options] user@PE3# set policy-statement remote-vrf from community rsite1 user@PE3# set policy-statement remote-vrf from community rsite24 user@PE3# set policy-statement remote-vrf then accept user@PE3# set community rsite1 members target:1:1 user@PE3# set community rsite24 members target:100:1023
配置 AS 编号。
[edit routing-options] user@PE3# set autonomous-system 64510
结果
在配置模式下,输入 show interfaces
和 show protocols
命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
设备 P1
user@P1# show interfaces ge-1/2/0 { unit 0 { description to_PE2; family inet { address 10.4.0.1/24; } family iso; family mpls; } } ge-1/2/1 { unit 0{ description to_PE1; family inet { address 10.2.0.2/24; } family iso; family mpls; } } ge-1/2/2 { unit 0 { description to_PE3; family inet { address 10.5.0.1/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 172.16.0.3/32; } family iso { address 49.0002.0172.0016.0003.00; } } }
user@P1# show protocols rsvp { interface all; interface fxp0.0 { disable; } } mpls { interface all; } isis { backup-spf-options per-prefix-calculation; level 1 disable; level 2 wide-metrics-only; interface all { node-link-protection; } interface fxp0.0 { disable; } interface lo0.0; } ldp { track-igp-metric; interface all; interface fxp0.0 { disable; } }
设备 PE1
user@PE1# show interfaces ge-1/2/0 { unit 0 { description to_CE1; family inet { address 10.1.0.2/24; } } } ge-1/2/1 { unit 0 { description to_P1; family inet { address 10.2.0.1/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 172.16.183.55/32; } family iso { address 49.0002.1720.1618.3055.00; } } }
user@PE1# show protocols rsvp { interface all; interface fxp0.0 { disable; } } mpls { label-switched-path toPE2Primary192.0.2.6 { to 192.0.2.6; egress-protection; } interface all; } bgp { group ibgp { type internal; local-address 172.16.183.55; family inet-vpn { unicast; } neighbor 172.16.183.56; neighbor 172.16.183.59; } } isis { level 1 disable; level 2 wide-metrics-only; interface all; interface fxp0.0 { disable; } interface lo0.0; } ldp { track-igp-metric; interface all; interface fxp0.0 { disable; } }
user@PE1# show routing-instances vpn1 { instance-type vrf; interface ge-1/2/0.0; route-distinguisher 172.16.183.55:10; vrf-target target:10:10; routing-options { static { route 100.0.0.0/24 next-hop 10.1.0.1; } } protocols { ospf { area 0.0.0.0 { interface ge-1/2/0.0; } } } }
user@PE1# show routing-options autonomous-system 64510;
设备 PE2
user@PE2# show interfaces ge-1/2/0 { unit 0 { description to_P1; family inet { address 10.4.0.2/24; } family iso; family mpls; } } ge-1/2/1 { unit 0 { description to_PE3; family inet { address 10.7.0.1/24; } family iso; family mpls; } } ge-1/2/2 { unit 0 { description to_CE2; family inet { address 10.8.0.1/24; } } } lo0 { unit 0 { family inet { address 172.16.183.56/32; } family iso { address 49.0002.1720.1618.3056.00; } } }
user@PE2# show protocols rsvp { interface all; interface fxp0.0 { disable; } } mpls { label-switched-path toPE1 { to 172.16.183.55; } label-switched-path toPE2Primary192.0.2.6 { to 192.0.2.6; egress-protection; } interface all; egress-protection { context-identifier 192.0.2.6 { primary; advertise-mode stub-proxy; } } } bgp { group ibgp { type internal; local-address 172.16.183.56; family inet-vpn { unicast { egress-protection { context-identifier { 192.0.2.6; } } } } neighbor 172.16.183.55; neighbor 172.16.183.59; } } isis { level 1 disable; level 2 wide-metrics-only; interface all; interface fxp0.0 { disable; } interface lo0.0; } ldp { track-igp-metric; interface all; interface fxp0.0 { disable; } }
user@PE2# show routing-options autonomous-system 64510;
设备 PE3
user@PE3# show interfaces ge-1/2/0 { unit 0 { description to_CE2; family inet { address 10.9.0.1/24; } } } ge-1/2/1 { unit 0 { description to_PE2; family inet { address 10.7.0.2/24; } family iso; family mpls; } } ge-1/2/2 { unit 0 { description to_P1; family inet { address 10.5.0.2/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 172.16.183.59/32; } family iso { address 49.0002.1720.1618.3059.00; } } }
user@PE3# show protocols rsvp { interface all; interface fxp0.0 { disable; } } mpls { label-switched-path toPE1 { to 172.16.183.55; } interface all; egress-protection { context-identifier 192.0.2.6 { protector; advertise-mode stub-proxy; } } } bgp { group ibgp { type internal; local-address 172.16.183.59; family inet-vpn { unicast { egress-protection { keep-import remote-vrf; } } } neighbor 172.16.183.55; neighbor 172.16.183.56; } } isis { level 1 disable; level 2 wide-metrics-only; interface all; interface fxp0.0 { disable; } interface lo0.0; } ldp { track-igp-metric; interface all; }
user@PE3# show policy-options policy-statement remote-vrf { from community [ rsite1 rsite24 ]; then accept; } community rsite1 members target:1:1; community rsite24 members target:100:1023;
user@PE3# show routing-options autonomous-system 64510;
如果完成设备配置,请从配置模式进入 commit
。
验证
确认配置工作正常。
验证保护器节点
目的
在保护器节点 (设备 PE3) 上,检查有关配置的出口保护上下文标识符的信息。
行动
user@PE3> show mpls context-identifer detail protector ID: 192.0.2.6 Type: protector, Metric: 16777215, Mode: proxy Context table: __PE3:192.0.2.6__.mpls.0 Context LSPs: toPE2Primary192.0.2.6, from: 172.16.183.55 toPE2Primary192.0.2.6, from: 172.16.183.56 Total 1, Primary 0, Protector 1
意义
设备 PE3 是从设备 PE1 (172.16.183.55) 和设备 PE2 (172.16.183.56) 配置的两个 LSP 的保护器节点。
验证主节点
目的
在主节点 (设备 PE2) 上,检查有关配置的出口保护上下文标识符的信息。
行动
user@PE2> show mpls context-identifer detail primary ID: 192.0.2.6 Type: primary, Metric: 1, Mode: proxy Total 1, Primary 1, Protector 0
意义
设备 PE2 是主节点。
检查上下文标识符路由
目的
检查有关串联标识符 (192.0.2.6) 的信息。
行动
user@PE1> show route 192.0.2.6 inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.0.2.6/24 *[IS-IS/18] 00:53:39, metric 21 > to 10.2.0.2 via ge-1/2/1.0 inet.3: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.0.2.6/24 *[LDP/9] 00:53:39, metric 21 > to 10.2.0.2 via ge-1/2/1.0, Push 299808 user@PE2> show route 192.0.2.6 inet.0: 13 destinations, 14 routes (13 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.0.2.6/24 *[MPLS/1] 3d 02:53:37, metric 1 Receive [IS-IS/18] 00:06:08, metric 16777224 > to 10.7.0.2 via ge-1/2/1.0 user@PE3> show route 192.0.2.6 inet.0: 13 destinations, 14 routes (13 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.0.2.6/24 *[MPLS/2] 3d 02:53:36, metric 16777215 Receive [IS-IS/18] 3d 02:53:28, metric 11 > to 10.7.0.1 via ge-1/2/1.0 user@P1> show route 192.0.2.6 inet.0: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.0.2.6/24 *[IS-IS/18] 00:53:40, metric 11 > to 10.4.0.2 via ge-1/2/0.0 inet.3: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.0.2.6/24 *[LDP/9] 00:53:40, metric 11 > to 10.4.0.2 via ge-1/2/0.0
验证出口保护
目的
在设备 PE3 上,检查路由表中的路由。
行动
user@PE3> show mpls egress-protection detail Instance Type Protection-Type rsite1 remote-vrf Protector Route Target 1:1 rsite24 remote-vrf Protector Route Target 100:1023
意义
Instance
表示公共组名称。 Type
显示了 VRF 的类型。它可以是 local-vrf
或 remote-vrf
. Route Target
显示与路由实例关联的路由目标。
验证设备 PE1 上的路由实例
目的
在设备 PE1 上,检查路由表中的路由。
行动
user@PE1> show route instance vpn1 detail vpn1: Router ID: 10.1.0.2 Type: vrf State: Active Interfaces: ge-1/2/0.0 Route-distinguisher: 172.16.183.55:10 Vrf-import: [ __vrf-import-vpn1-internal__ ] Vrf-export: [ __vrf-export-vpn1-internal__ ] Vrf-import-target: [ target:10:10 ] Vrf-export-target: [ target:10:10 ] Fast-reroute-priority: low Tables: vpn1.inet.0 : 4 routes (4 active, 0 holddown, 0 hidden)
验证 LSP
目的
在所有设备上,检查 LSP 信息。
行动
user@PE1> show mpls lsp extensive Ingress LSP: 1 sessions 192.0.2.6 From: 172.16.183.55, State: Up, ActiveRoute: 0, LSPname: toPE2Primary192.0.2.6 ActivePath: (primary) LSPtype: Static Configured, Penultimate hop popping LoadBalance: Random Encoding type: Packet, Switching type: Packet, GPID: IPv4 *Primary State: Up Priorities: 7 0 SmartOptimizeTimer: 180 Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 16777234) 10.2.0.2 S 10.5.0.2 S 192.0.2.6 S (link-id=2) Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID): 10.2.0.2 10.5.0.2 17 Jun 10 13:13:04.973 CSPF: computation result accepted 10.2.0.2 10.5.0.2 192.0.2.6(link-id=2) 16 Jun 10 13:12:36.155 CSPF failed: no route toward 192.0.2.6[4 times] 15 Jun 10 13:11:26.269 CSPF: link down/deleted: 0.0.0.0(172.16.183.59:2147618818)(PE3.00/172.16.183.59)->0.0.0.0(192.0.2.6:2)(PE2-192.0.2.6.00/192.0.2.6) 14 Jun 10 13:10:11.771 Selected as active path 13 Jun 10 13:10:11.770 Record Route: 10.2.0.2 10.5.0.2 12 Jun 10 13:10:11.770 Up 11 Jun 10 13:10:11.634 Originate Call 10 Jun 10 13:10:11.634 CSPF: computation result accepted 10.2.0.2 10.5.0.2 192.0.2.6(link-id=2) 9 Jun 10 13:10:11.623 Clear Call 8 Jun 10 13:10:11.622 Deselected as active 7 Jun 7 11:23:08.224 Selected as active path 6 Jun 7 11:23:08.224 Record Route: 10.2.0.2 10.5.0.2 5 Jun 7 11:23:08.223 Up 4 Jun 7 11:23:08.116 Originate Call 3 Jun 7 11:23:08.116 CSPF: computation result accepted 10.2.0.2 10.5.0.2 192.0.2.6(link-id=2) 2 Jun 7 11:22:38.132 CSPF failed: no route toward 192.0.2.6 1 Jun 7 11:22:08.607 CSPF: could not determine self[8 times] Created: Fri Jun 7 11:18:46 2013 Total 1 displayed, Up 1, Down 0 Egress LSP: 2 sessions 172.16.183.55 From: 172.16.183.59, LSPstate: Up, ActiveRoute: 0 LSPname: toPE1, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: - Resv style: 1 FF, Label in: 3, Label out: - Time left: 126, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 10941 protocol 0 PATH rcvfrom: 10.2.0.2 (ge-1/2/1.0) 105 pkts Adspec: received MTU 1500 PATH sentto: localclient RESV rcvfrom: localclient Record route: 10.5.0.2 10.2.0.2 <self> 172.16.183.55 From: 172.16.183.56, LSPstate: Up, ActiveRoute: 0 LSPname: toPE1, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: - Resv style: 1 FF, Label in: 3, Label out: - Time left: 156, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 59956 protocol 0 PATH rcvfrom: 10.2.0.2 (ge-1/2/1.0) 105 pkts Adspec: received MTU 1500 PATH sentto: localclient RESV rcvfrom: localclient Record route: 10.4.0.2 10.2.0.2 <self> Total 2 displayed, Up 2, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 ----- user@PE2> show mpls lsp extensive Ingress LSP: 2 sessions 192.0.2.6 From: 172.16.183.56, State: Up, ActiveRoute: 0, LSPname: toPE2Primary192.0.2.6 ActivePath: (primary) LSPtype: Static Configured, Penultimate hop popping LoadBalance: Random Encoding type: Packet, Switching type: Packet, GPID: IPv4 *Primary State: Up Priorities: 7 0 SmartOptimizeTimer: 180 Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 16777224) 10.7.0.2 S 192.0.2.6 S (link-id=2) Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID): 10.7.0.2 16 Jun 10 13:13:07.220 CSPF: computation result accepted 10.7.0.2 192.0.2.6(link-id=2) 15 Jun 10 13:12:38.250 CSPF failed: no route toward 192.0.2.6[4 times] 14 Jun 10 13:11:26.258 CSPF: link down/deleted: 0.0.0.0(172.16.183.59:2147618818)(PE3.00/172.16.183.59)->0.0.0.0(192.0.2.6:2)(PE2-192.0.2.6.00/192.0.2.6) 13 Jun 10 13:10:11.746 Selected as active path 12 Jun 10 13:10:11.743 Record Route: 10.7.0.2 11 Jun 10 13:10:11.742 Up 10 Jun 10 13:10:11.680 Originate Call 9 Jun 10 13:10:11.680 CSPF: computation result accepted 10.7.0.2 192.0.2.6(link-id=2) 8 Jun 10 13:10:11.674 Clear Call 7 Jun 10 13:10:11.669 Deselected as active 6 Jun 7 11:23:09.370 Selected as active path 5 Jun 7 11:23:09.370 Record Route: 10.7.0.2 4 Jun 7 11:23:09.369 Up 3 Jun 7 11:23:09.349 Originate Call 2 Jun 7 11:23:09.349 CSPF: computation result accepted 10.7.0.2 192.0.2.6(link-id=2) 1 Jun 7 11:22:40.140 CSPF failed: no route toward 192.0.2.6[9 times] Created: Fri Jun 7 11:18:46 2013 172.16.183.55 From: 172.16.183.56, State: Up, ActiveRoute: 0, LSPname: toPE1 ActivePath: (primary) LSPtype: Static Configured, Penultimate hop popping LoadBalance: Random Encoding type: Packet, Switching type: Packet, GPID: IPv4 *Primary State: Up Priorities: 7 0 SmartOptimizeTimer: 180 Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20) 10.4.0.1 S 10.2.0.1 S Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID): 10.4.0.1 10.2.0.1 13 Jun 10 13:10:11.794 Selected as active path 12 Jun 10 13:10:11.793 Record Route: 10.4.0.1 10.2.0.1 11 Jun 10 13:10:11.793 Up 10 Jun 10 13:10:11.679 Originate Call 9 Jun 10 13:10:11.679 CSPF: computation result accepted 10.4.0.1 10.2.0.1 8 Jun 10 13:10:11.660 Clear Call 7 Jun 10 13:10:11.645 Deselected as active 6 Jun 7 11:22:40.031 Selected as active path 5 Jun 7 11:22:40.024 Record Route: 10.4.0.1 10.2.0.1 4 Jun 7 11:22:40.012 Up 3 Jun 7 11:22:39.687 Originate Call 2 Jun 7 11:22:39.687 CSPF: computation result accepted 10.4.0.1 10.2.0.1 1 Jun 7 11:22:10.235 CSPF failed: no route toward 172.16.183.55[8 times] Created: Fri Jun 7 11:18:45 2013 Total 2 displayed, Up 2, Down 0 Egress LSP: 0 sessions Total 0 displayed, Up 0, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 user@PE3> show mpls lsp extensive Ingress LSP: 1 sessions 172.16.183.55 From: 172.16.183.59, State: Up, ActiveRoute: 0, LSPname: toPE1 ActivePath: (primary) LSPtype: Static Configured, Penultimate hop popping LoadBalance: Random Encoding type: Packet, Switching type: Packet, GPID: IPv4 *Primary State: Up Priorities: 7 0 SmartOptimizeTimer: 180 Computed ERO (S [L] denotes strict [loose] hops): (CSPF metric: 20) 10.5.0.1 S 10.2.0.1 S Received RRO (ProtectionFlag 1=Available 2=InUse 4=B/W 8=Node 10=SoftPreempt 20=Node-ID): 10.5.0.1 10.2.0.1 13 Jun 10 13:10:11.708 Selected as active path 12 Jun 10 13:10:11.703 Record Route: 10.5.0.1 10.2.0.1 11 Jun 10 13:10:11.703 Up 10 Jun 10 13:10:11.599 Originate Call 9 Jun 10 13:10:11.599 CSPF: computation result accepted 10.5.0.1 10.2.0.1 8 Jun 10 13:10:11.558 Clear Call 7 Jun 10 13:10:11.555 Deselected as active 6 Jun 7 11:22:41.829 Selected as active path 5 Jun 7 11:22:41.828 Record Route: 10.5.0.1 10.2.0.1 4 Jun 7 11:22:41.827 Up 3 Jun 7 11:22:41.767 Originate Call 2 Jun 7 11:22:41.767 CSPF: computation result accepted 10.5.0.1 10.2.0.1 1 Jun 7 11:22:12.289 CSPF failed: no route toward 172.16.183.55[8 times] Created: Fri Jun 7 11:18:45 2013 Total 1 displayed, Up 1, Down 0 Egress LSP: 2 sessions 192.0.2.6 From: 172.16.183.55, LSPstate: Up, ActiveRoute: 0 LSPname: toPE2Primary192.0.2.6, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: - Resv style: 1 FF, Label in: 299920, Label out: 3 Time left: 141, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 17060 protocol 0 Attrib flags: Non-PHP OOB PATH rcvfrom: 10.5.0.1 (ge-1/2/2.0) 105 pkts Adspec: received MTU 1500 PATH sentto: localclient RESV rcvfrom: localclient Record route: 10.2.0.1 10.5.0.1 <self> 192.0.2.6 From: 172.16.183.56, LSPstate: Up, ActiveRoute: 0 LSPname: toPE2Primary192.0.2.6, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: - Resv style: 1 FF, Label in: 299936, Label out: 3 Time left: 152, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 59957 protocol 0 Attrib flags: Non-PHP OOB PATH rcvfrom: 10.7.0.1 (ge-1/2/1.0) 106 pkts Adspec: received MTU 1500 PATH sentto: localclient RESV rcvfrom: localclient Record route: 10.7.0.1 <self> Total 2 displayed, Up 2, Down 0 Transit LSP: 0 sessions Total 0 displayed, Up 0, Down 0 user@P1> show mpls lsp extensive Ingress LSP: 0 sessions Total 0 displayed, Up 0, Down 0 Egress LSP: 0 sessions Total 0 displayed, Up 0, Down 0 Transit LSP: 3 sessions 192.0.2.6 From: 172.16.183.55, LSPstate: Up, ActiveRoute: 0 LSPname: toPE2Primary192.0.2.6, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: 299920 Resv style: 1 FF, Label in: 299904, Label out: 299920 Time left: 141, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 17060 protocol 0 Attrib flags: Non-PHP OOB PATH rcvfrom: 10.2.0.1 (ge-1/2/1.0) 106 pkts Adspec: received MTU 1500 sent MTU 1500 PATH sentto: 10.5.0.2 (ge-1/2/2.0) 105 pkts RESV rcvfrom: 10.5.0.2 (ge-1/2/2.0) 105 pkts Explct route: 10.5.0.2 192.0.2.6 (link-id=2) Record route: 10.2.0.1 <self> 10.5.0.2 172.16.183.55 From: 172.16.183.59, LSPstate: Up, ActiveRoute: 0 LSPname: toPE1, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: 3 Resv style: 1 FF, Label in: 299888, Label out: 3 Time left: 158, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 10941 protocol 0 PATH rcvfrom: 10.5.0.2 (ge-1/2/2.0) 106 pkts Adspec: received MTU 1500 sent MTU 1500 PATH sentto: 10.2.0.1 (ge-1/2/1.0) 105 pkts RESV rcvfrom: 10.2.0.1 (ge-1/2/1.0) 105 pkts Explct route: 10.2.0.1 Record route: 10.5.0.2 <self> 10.2.0.1 172.16.183.55 From: 172.16.183.56, LSPstate: Up, ActiveRoute: 0 LSPname: toPE1, LSPpath: Primary Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: 3 Resv style: 1 FF, Label in: 299920, Label out: 3 Time left: 141, Since: Mon Jun 10 13:10:11 2013 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 59956 protocol 0 PATH rcvfrom: 10.4.0.2 (ge-1/2/0.0) 105 pkts Adspec: received MTU 1500 sent MTU 1500 PATH sentto: 10.2.0.1 (ge-1/2/1.0) 105 pkts RESV rcvfrom: 10.2.0.1 (ge-1/2/1.0) 105 pkts Explct route: 10.2.0.1 Record route: 10.4.0.2 <self> 10.2.0.1 Total 3 displayed, Up 3, Down 0
验证 BGP NRLI
目的
检查 BGP VPN 网络层可访问性信息的详细信息。
行动
user@PE3> show bgp neighbor Peer: 172.16.183.55+179 AS 64510 Local: 172.16.183.59+61747 AS 64510 Type: Internal State: Established Flags: <Sync> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Options: <Preference LocalAddress AddressFamily Rib-group Refresh> Address families configured: inet-vpn-unicast Local Address: 172.16.183.59 Holdtime: 90 Preference: 170 NLRI configured with egress-protection: inet-vpn-unicast Egress-protection NLRI inet-vpn-unicast, keep-import: [ remote-vrf ] Number of flaps: 0 Peer ID: 172.16.183.55 Local ID: 172.16.183.59 Active Holdtime: 90 Keepalive Interval: 30 Group index: 0 Peer index: 0 BFD: disabled, down NLRI for restart configured on peer: inet-vpn-unicast NLRI advertised by peer: inet-vpn-unicast NLRI for this session: inet-vpn-unicast Peer supports Refresh capability (2) Stale routes from peer are kept for: 300 Peer does not support Restarter functionality NLRI that restart is negotiated for: inet-vpn-unicast NLRI of received end-of-rib markers: inet-vpn-unicast Peer supports 4 byte AS extension (peer-as 64510) Peer does not support Addpath Table bgp.l3vpn.0 RIB State: BGP restart is complete RIB State: VPN restart is complete Send state: not advertising Active prefixes: 0 Received prefixes: 0 Accepted prefixes: 0 Suppressed due to damping: 0 Last traffic (seconds): Received 25 Sent 21 Checked 11 Input messages: Total 32046 Updates 7 Refreshes 0 Octets 609365 Output messages: Total 32050 Updates 0 Refreshes 5 Octets 609010 Output Queue[0]: 0 Peer: 172.16.183.56+62754 AS 64510 Local: 172.16.183.59+179 AS 64510 Type: Internal State: Established Flags: <Sync> Last State: OpenConfirm Last Event: RecvKeepAlive Last Error: None Options: <Preference LocalAddress AddressFamily Rib-group Refresh> Address families configured: inet-vpn-unicast Local Address: 172.16.183.59 Holdtime: 90 Preference: 170 NLRI configured with egress-protection: inet-vpn-unicast Egress-protection NLRI inet-vpn-unicast, keep-import: [ remote-vrf ] Number of flaps: 1 Last flap event: TransportError Peer ID: 172.16.183.56 Local ID: 172.16.183.59 Active Holdtime: 90 Keepalive Interval: 30 Group index: 0 Peer index: 1 BFD: disabled, down NLRI for restart configured on peer: inet-vpn-unicast NLRI advertised by peer: inet-vpn-unicast NLRI for this session: inet-vpn-unicast Peer supports Refresh capability (2) Stale routes from peer are kept for: 300 Peer does not support Restarter functionality NLRI that restart is negotiated for: inet-vpn-unicast Peer supports 4 byte AS extension (peer-as 64510) Peer does not support Addpath Table bgp.l3vpn.0 RIB State: BGP restart is complete RIB State: VPN restart is complete Send state: not advertising Active prefixes: 0 Received prefixes: 0 Accepted prefixes: 0 Suppressed due to damping: 0 Last traffic (seconds): Received 19 Sent 8 Checked 34 Input messages: Total 10025 Updates 0 Refreshes 2 Octets 190523 Output messages: Total 10024 Updates 0 Refreshes 2 Octets 190504 Output Queue[0]: 0
意义
NLRI configured with egress-protection
显示了配置了出口保护的 BGP 系列。 egress-protection NLRI inet-vpn-unicast, keep-import: [remote-vrf]
显示了 BGP 组的出口保护路由策略。
验证流量工程数据库
目的
在所有设备上,检查 TED。
行动
user@PE1> show ted database TED database: 9 ISIS nodes 5 INET nodes ID Type Age(s) LnkIn LnkOut Protocol P1.00(172.16.0.3) Rtr 44 3 3 IS-IS(2) To: P1.02, Local: 10.2.0.2, Remote: 0.0.0.0 Local interface index: 149, Remote interface index: 0 To: PE2.02, Local: 10.4.0.1, Remote: 0.0.0.0 Local interface index: 150, Remote interface index: 0 To: PE3.03, Local: 10.5.0.1, Remote: 0.0.0.0 Local interface index: 133, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol P1.02 Net 111 2 2 IS-IS(2) To: PE1.00(172.16.183.55), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2-192.0.2.6.00(192.0.2.6) Rtr 345 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 1, Remote interface index: 2147618817 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2, Remote interface index: 2147618818 ID Type Age(s) LnkIn LnkOut Protocol PE1.00(172.16.183.55) Rtr 487 1 1 IS-IS(2) To: P1.02, Local: 10.2.0.1, Remote: 0.0.0.0 Local interface index: 148, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2.00(172.16.183.56) Rtr 353 3 3 IS-IS(2) To: PE2.02, Local: 10.4.0.2, Remote: 0.0.0.0 Local interface index: 155, Remote interface index: 0 To: PE3.02, Local: 10.7.0.1, Remote: 0.0.0.0 Local interface index: 153, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618817, Remote interface index: 1 ID Type Age(s) LnkIn LnkOut Protocol PE2.02 Net 59 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.00(172.16.183.59) Rtr 435 3 3 IS-IS(2) To: PE3.02, Local: 10.7.0.2, Remote: 0.0.0.0 Local interface index: 154, Remote interface index: 0 To: PE3.03, Local: 10.5.0.2, Remote: 0.0.0.0 Local interface index: 158, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618818, Remote interface index: 2 ID Type Age(s) LnkIn LnkOut Protocol PE3.02 Net 706 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.03 Net 583 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 user@PE2> show ted database TED database: 9 ISIS nodes 5 INET nodes ID Type Age(s) LnkIn LnkOut Protocol P1.00(172.16.0.3) Rtr 44 3 3 IS-IS(2) To: PE2.02, Local: 10.4.0.1, Remote: 0.0.0.0 Local interface index: 150, Remote interface index: 0 To: P1.02, Local: 10.2.0.2, Remote: 0.0.0.0 Local interface index: 149, Remote interface index: 0 To: PE3.03, Local: 10.5.0.1, Remote: 0.0.0.0 Local interface index: 133, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol P1.02 Net 111 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE1.00(172.16.183.55), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2-192.0.2.6.00(192.0.2.6) Rtr 345 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 1, Remote interface index: 2147618817 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2, Remote interface index: 2147618818 ID Type Age(s) LnkIn LnkOut Protocol PE1.00(172.16.183.55) Rtr 487 1 1 IS-IS(2) To: P1.02, Local: 10.2.0.1, Remote: 0.0.0.0 Local interface index: 148, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2.00(172.16.183.56) Rtr 353 3 3 IS-IS(2) To: PE2.02, Local: 10.4.0.2, Remote: 0.0.0.0 Local interface index: 155, Remote interface index: 0 To: PE3.02, Local: 10.7.0.1, Remote: 0.0.0.0 Local interface index: 153, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618817, Remote interface index: 1 ID Type Age(s) LnkIn LnkOut Protocol PE2.02 Net 60 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.00(172.16.183.59) Rtr 435 3 3 IS-IS(2) To: PE3.02, Local: 10.7.0.2, Remote: 0.0.0.0 Local interface index: 154, Remote interface index: 0 To: PE3.03, Local: 10.5.0.2, Remote: 0.0.0.0 Local interface index: 158, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618818, Remote interface index: 2 ID Type Age(s) LnkIn LnkOut Protocol PE3.02 Net 706 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.03 Net 583 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 user@PE3> show ted database TED database: 9 ISIS nodes 5 INET nodes ID Type Age(s) LnkIn LnkOut Protocol P1.00(172.16.0.3) Rtr 44 3 3 IS-IS(2) To: P1.02, Local: 10.2.0.2, Remote: 0.0.0.0 Local interface index: 149, Remote interface index: 0 To: PE2.02, Local: 10.4.0.1, Remote: 0.0.0.0 Local interface index: 150, Remote interface index: 0 To: PE3.03, Local: 10.5.0.1, Remote: 0.0.0.0 Local interface index: 133, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol P1.02 Net 111 2 2 IS-IS(2) To: PE1.00(172.16.183.55), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2-192.0.2.6.00(192.0.2.6) Rtr 345 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 1, Remote interface index: 2147618817 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2, Remote interface index: 2147618818 ID Type Age(s) LnkIn LnkOut Protocol PE1.00(172.16.183.55) Rtr 487 1 1 IS-IS(2) To: P1.02, Local: 10.2.0.1, Remote: 0.0.0.0 Local interface index: 148, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2.00(172.16.183.56) Rtr 353 3 3 IS-IS(2) To: PE3.02, Local: 10.7.0.1, Remote: 0.0.0.0 Local interface index: 153, Remote interface index: 0 To: PE2.02, Local: 10.4.0.2, Remote: 0.0.0.0 Local interface index: 155, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618817, Remote interface index: 1 ID Type Age(s) LnkIn LnkOut Protocol PE2.02 Net 59 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.00(172.16.183.59) Rtr 435 3 3 IS-IS(2) To: PE3.02, Local: 10.7.0.2, Remote: 0.0.0.0 Local interface index: 154, Remote interface index: 0 To: PE3.03, Local: 10.5.0.2, Remote: 0.0.0.0 Local interface index: 158, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618818, Remote interface index: 2 ID Type Age(s) LnkIn LnkOut Protocol PE3.02 Net 706 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.03 Net 583 2 2 IS-IS(2) To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ----- user@P1> show ted database TED database: 9 ISIS nodes 5 INET nodes ID Type Age(s) LnkIn LnkOut Protocol P1.00(172.16.0.3) Rtr 44 3 3 IS-IS(2) To: PE2.02, Local: 10.4.0.1, Remote: 0.0.0.0 Local interface index: 150, Remote interface index: 0 To: P1.02, Local: 10.2.0.2, Remote: 0.0.0.0 Local interface index: 149, Remote interface index: 0 To: PE3.03, Local: 10.5.0.1, Remote: 0.0.0.0 Local interface index: 133, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol P1.02 Net 111 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE1.00(172.16.183.55), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2-192.0.2.6.00(192.0.2.6) Rtr 345 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 1, Remote interface index: 2147618817 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2, Remote interface index: 2147618818 ID Type Age(s) LnkIn LnkOut Protocol PE1.00(172.16.183.55) Rtr 487 1 1 IS-IS(2) To: P1.02, Local: 10.2.0.1, Remote: 0.0.0.0 Local interface index: 148, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE2.00(172.16.183.56) Rtr 353 3 3 IS-IS(2) To: PE2.02, Local: 10.4.0.2, Remote: 0.0.0.0 Local interface index: 155, Remote interface index: 0 To: PE3.02, Local: 10.7.0.1, Remote: 0.0.0.0 Local interface index: 153, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618817, Remote interface index: 1 ID Type Age(s) LnkIn LnkOut Protocol PE2.02 Net 59 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.00(172.16.183.59) Rtr 435 3 3 IS-IS(2) To: PE3.02, Local: 10.7.0.2, Remote: 0.0.0.0 Local interface index: 154, Remote interface index: 0 To: PE3.03, Local: 10.5.0.2, Remote: 0.0.0.0 Local interface index: 158, Remote interface index: 0 To: PE2-192.0.2.6.00(192.0.2.6), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 2147618818, Remote interface index: 2 ID Type Age(s) LnkIn LnkOut Protocol PE3.02 Net 706 2 2 IS-IS(2) To: PE2.00(172.16.183.56), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 ID Type Age(s) LnkIn LnkOut Protocol PE3.03 Net 583 2 2 IS-IS(2) To: P1.00(172.16.0.3), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0 To: PE3.00(172.16.183.59), Local: 0.0.0.0, Remote: 0.0.0.0 Local interface index: 0, Remote interface index: 0
验证 IS-IS 数据库
目的
在所有设备上,检查 IS-IS 数据库。
行动
user@PE1> show isis database IS-IS level 1 link-state database: 0 LSPs IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes P1.00-00 0x46b 0x1924 590 L1 L2 P1.02-00 0x465 0xe67a 523 L1 L2 PE2-192.0.2.6.00-00 0xd0e 0x6b8d 1086 L1 L2 Overload PE1.00-00 0x46f 0xa8b 992 L1 L2 PE2.00-00 0x46b 0xefd6 1077 L1 L2 PE2.02-00 0x464 0x4db4 573 L1 L2 PE3.00-00 0x46f 0xb6e8 1016 L1 L2 PE3.02-00 0x465 0x2675 762 L1 L2 PE3.03-00 0x465 0x47b2 797 L1 L2 9 LSPs user@PE2> show isis database IS-IS level 1 link-state database: 0 LSPs IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes P1.00-00 0x46b 0x1924 590 L1 L2 P1.02-00 0x465 0xe67a 523 L1 L2 PE2-192.0.2.6.00-00 0xd0e 0x6b8d 1090 L1 L2 Overload PE1.00-00 0x46f 0xa8b 988 L1 L2 PE2.00-00 0x46b 0xefd6 1080 L1 L2 PE2.02-00 0x464 0x4db4 576 L1 L2 PE3.00-00 0x46f 0xb6e8 1018 L1 L2 PE3.02-00 0x465 0x2675 763 L1 L2 PE3.03-00 0x465 0x47b2 799 L1 L2 9 LSPs user@PE3> show isis database IS-IS level 1 link-state database: 0 LSPs IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes P1.00-00 0x46b 0x1924 590 L1 L2 P1.02-00 0x465 0xe67a 523 L1 L2 PE2-192.0.2.6.00-00 0xd0e 0x6b8d 1088 L1 L2 Overload PE1.00-00 0x46f 0xa8b 988 L1 L2 PE2.00-00 0x46b 0xefd6 1079 L1 L2 PE2.02-00 0x464 0x4db4 575 L1 L2 PE3.00-00 0x46f 0xb6e8 1020 L1 L2 PE3.02-00 0x465 0x2675 765 L1 L2 PE3.03-00 0x465 0x47b2 801 L1 L2 9 LSPs user@P1> show isis database IS-IS level 1 link-state database: 0 LSPs IS-IS level 2 link-state database: LSP ID Sequence Checksum Lifetime Attributes P1.00-00 0x46b 0x1924 592 L1 L2 P1.02-00 0x465 0xe67a 525 L1 L2 PE2-192.0.2.6.00-00 0xd0e 0x6b8d 1088 L1 L2 Overload PE1.00-00 0x46f 0xa8b 990 L1 L2 PE2.00-00 0x46b 0xefd6 1079 L1 L2 PE2.02-00 0x464 0x4db4 575 L1 L2 PE3.00-00 0x46f 0xb6e8 1018 L1 L2 PE3.02-00 0x465 0x2675 763 L1 L2 PE3.03-00 0x465 0x47b2 799 L1 L2 9 LSPs