示例:为 IS-IS 配置与分段路由无关的拓扑无关无环路备用
此示例显示了与拓扑无关的无环路备用 (TI-LFA),其使用 IS-IS 协议的分段路由,通过使用更深的标签堆栈来构建备份路径,从而提供与给定故障后收敛路径相对应的 MPLS 快速重新路由 (FRR) 备份路径。TI-LFA 可针对链路故障、节点故障和命运共享故障提供保护。在链路故障模式下,如果链路故障,目标将受到保护。在节点保护模式下,如果连接到主链路的邻接方发生故障,则目标将受到保护。为了确定保护节点的收敛后路径,我们假定离开邻接方的所有链路的成本将按可配置的量增加。借助命运共享保护,在每个公共出借权上配置一个命运共享组列表,每个命运共享组中的链路由各自的 IP 地址标识。
我们的内容测试团队已经验证并更新了此示例。
要求
此示例使用以下硬件和软件组件:
九台 MX 系列路由器
在所有设备上运行的 Junos OS 17.4 或更高版本
-
在 Junos OS 21.1R1 版上使用 vMX 进行更新和重新验证。
-
在使用 SPRING 为 IS-IS 配置 TI-LFA 路由之前,请确保配置 SPRING 或分段路由。
概述
Junos OS 允许您通过在[edit protocols isis backup-spf-options]
层次结构级别配置use-post-convergence-lfa
语句来为 IS-IS 启用 TI-LFA。您可以通过在[edit protocols isis interface interface-name level level]
层次结构级别配置 post-convergence-lfa 语句,为给定接口创建收敛后备份路径。
TI-LFA 可针对链路故障、节点故障和命运共享组故障提供保护。您可以使用语post-convergence-lfa
句启用链路保护模式。您可以在层次结构级别上为给定接口[edit protocols isis interface interface-name level level post-convergence-lfa]
启用模式或fate-sharing-protection
模式,或同时启用node-protection
这两种模式。要确保为给定的命运共享组启用命运共享保护,您需要在[edit routing-options fate-sharing group group-name]
层次结构级别配置use-for-post-convergence-lfa
语句。
TI-LFA 支持对 IPv4 和 IPv6 前缀的路由进行保护。此示例演示了如何保护 IPv4 前缀的路由。
拓扑学

配置
CLI 快速配置
要在此示例中快速配置链路保护,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,将命令复制并粘贴到层级的 CLI 中,然后从配置模式进入提交。
R1
set interfaces ge-0/0/0 unit 0 description r1-to-r21 set interfaces ge-0/0/0 unit 0 family inet address 10.10.20.1/24 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 r1-to-r31 set interfaces ge-0/0/1 unit 0 family inet address 10.10.30.1/24 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 r1-to-r2 set interfaces ge-0/0/2 unit 0 family inet address 10.10.10.1/24 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 198.168.0.1/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0001.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 level 2 disable set protocols isis interface ge-0/0/2.0 level 1 post-convergence-lfa set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1001 set protocols isis backup-spf-options use-post-convergence-lfa maximum-labels 8 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set policy-options policy-statement pplb then load-balance per-packet set routing-options forwarding-table export pplb set routing-options router-id 198.168.0.1
R2
set interfaces ge-0/0/1 unit 0 description r2-to-r23 set interfaces ge-0/0/1 unit 0 family inet address 10.10.50.1/24 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 r2-to-r1 set interfaces ge-0/0/2 unit 0 family inet address 10.10.10.2/24 set interfaces ge-0/0/2 unit 0 family iso set interfaces ge-0/0/2 unit 0 family mpls set interfaces ge-0/0/3 unit 0 description r2-to-r3 set interfaces ge-0/0/3 unit 0 family inet address 10.10.40.1/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.2/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0002.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 level 2 disable set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 level 2 disable set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1002 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface ge-0/0/3.0 set routing-options router-id 192.168.0.2
R3
set interfaces ge-0/0/0 unit 0 description r3-to-r24 set interfaces ge-0/0/0 unit 0 family inet address 10.10.60.1/24 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 r3-to-r34 set interfaces ge-0/0/1 unit 0 family inet address 10.10.70.1/24 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/3 unit 0 description r3-to-r2 set interfaces ge-0/0/3 unit 0 family inet address 10.10.40.2/24 set interfaces ge-0/0/3 unit 0 family iso set interfaces ge-0/0/3 unit 0 family mpls set interfaces lo0 unit 0 family inet address 192.168.0.3/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0003.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/3.0 level 2 disable set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1003 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/3.0 set routing-options router-id 192.168.0.3
R21型
set interfaces ge-0/0/0 unit 0 description r21-to-r1 set interfaces ge-0/0/0 unit 0 family inet address 10.10.20.2/24 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 r21-to-r22 set interfaces ge-0/0/1 unit 0 family inet address 10.10.80.1/24 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.168.0.21/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0021.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1021 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options router-id 192.168.0.21
R22
set interfaces ge-0/0/0 unit 0 description r22-to-r23 set interfaces ge-0/0/0 unit 0 family inet address 10.10.90.1/24 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 r22-to-r21 set interfaces ge-0/0/1 unit 0 family inet address 10.10.80.2/24 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.168.0.22/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0022.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1022 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options router-id 192.168.0.22
R23
set interfaces ge-0/0/0 unit 0 description r23-to-r22 set interfaces ge-0/0/0 unit 0 family inet address 10.10.90.2/24 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 r23-to-r2 set interfaces ge-0/0/1 unit 0 family inet address 10.10.50.2/24 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 r23-to-r24 set interfaces ge-0/0/2 unit 0 family inet address 10.10.100.1/24 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.168.0.23/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0023.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 level 2 disable set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1023 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set routing-options router-id 192.168.0.23
R24
set interfaces ge-0/0/0 unit 0 description r24-to-r3 set interfaces ge-0/0/0 unit 0 family inet address 10.10.60.2/24 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/2 unit 0 description r24-to-r23 set interfaces ge-0/0/2 unit 0 family inet address 10.10.100.2/24 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.168.0.24/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0024.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/2.0 level 2 disable set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1024 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/2.0 set routing-options router-id 192.168.0.24
R31
set interfaces ge-0/0/0 unit 0 description r31-to-r34 set interfaces ge-0/0/0 unit 0 family inet address 10.10.110.1/24 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 r31-to-r1 set interfaces ge-0/0/1 unit 0 family inet address 10.10.30.2/24 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 198.162.0.31/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0031.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 1 metric 500 set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 1 metric 10 set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1031 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/0.0 set routing-options router-id 198.162.0.31
R34型
set interfaces ge-0/0/0 unit 0 description r34-to-r31 set interfaces ge-0/0/0 unit 0 family inet address 10.10.110.2/24 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 r34-to-r3 set interfaces ge-0/0/1 unit 0 family inet address 10.10.70.2/24 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.168.0.34/32 set interfaces lo0 unit 0 family iso address 49.0000.2222.0034.00 set interfaces lo0 unit 0 family mpls set protocols isis interface ge-0/0/0.0 level 1 metric 500 set protocols isis interface ge-0/0/0.0 level 2 disable set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 level 1 metric 10 set protocols isis interface ge-0/0/1.0 level 2 disable set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis source-packet-routing node-segment ipv4-index 1034 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options router-id 192.168.0.34
配置 R1
分步过程
下面的示例要求您在各个配置层级中进行导航。有关 CLI 导航的信息,请参阅《Junos OS CLI 用户指南》中的在配置模式下使用 CLI 编辑器。
要配置设备 R1,请执行以下作:
-
配置接口。
[edit interfaces] user@R1# set ge-0/0/0 unit 0 description r1-to-r21 user@R1# set ge-0/0/0 unit 0 family inet address 10.10.20.1/24 user@R1# set ge-0/0/0 unit 0 family iso user@R1# set ge-0/0/0 unit 0 family mpls user@R1# set ge-0/0/1 unit 0 description r1-to-r31 user@R1# set ge-0/0/1 unit 0 family inet address 10.10.30.1/24 user@R1# set ge-0/0/1 unit 0 family iso user@R1# set ge-0/0/1 unit 0 family mpls user@R1# set ge-0/0/2 unit 0 description r1-to-r2 user@R1# set ge-0/0/2 unit 0 family inet address 10.10.10.1/24 user@R1# set ge-0/0/2 unit 0 family iso user@R1# set ge-0/0/2 unit 0 family mpls user@R1# set lo0 unit 0 family inet address 198.168.0.1/32 user@R1# set lo0 unit 0 family iso address 49.0000.2222.0001.00 user@R1# set lo0 unit 0 family mpls
-
配置路由器 ID。
[edit routing-options] user@R1# set router-id 198.168.0.1
-
配置 MPLS。
[edit protocols] user@R1# set mpls interface ge-0/0/0.0 user@R1# set mpls interface ge-0/0/1.0 user@R1# set mpls interface ge-0/0/2.0
-
配置 IS-IS。
[edit protocols] user@R1# set isis interface ge-0/0/0.0 level 2 disable user@R1# set isis interface ge-0/0/0.0 point-to-point user@R1# set isis interface ge-0/0/1.0 level 2 disable user@R1# set isis interface ge-0/0/1.0 point-to-point user@R1# set isis interface ge-0/0/2.0 level 2 disable user@R1# set isis interface ge-0/0/2.0 point-to-point user@R1# set isis interface lo0.0 passive user@R1# set isis interface fxp0.0 disable
-
配置为沿接口 ge-0/0/2 上的链路保护后融合路径安装备份路由。
[edit protocols] user@R1# set isis interface ge-0/0/2.0 level 1 post-convergence-lfa
-
为分段路由路由路径配置最大标签数,以保护备份最短路径优先属性。
[edit protocols] user@R1# set isis backup-spf-options use-post-convergence-lfa maximum-labels 8
-
为 IS-IS 协议的分段路由中节点分段配置 IPv4 索引和索引范围。
[edit protocols] user@R1# set isis source-packet-routing node-segment ipv4-index 1001
-
(选答)在接口 ge-0/0/2 上启用节点保护。
[edit protocols] user@R1# set isis interface ge-0/0/2 level 2 post-convergence-lfa node-protection cost 2000
-
(选答)配置命运分担组成本。
[edit routing-options] user@R1# set fate-sharing group fs-group-1 cost 3000
-
(选答)配置命运共享组,以指示从设备 R1 到设备 R2 的链路以及从设备 R21 到设备 R22 的链路共享命运,并允许将其用于后收敛 lfa。
[edit routing-options] user@R1# set fate-sharing group fs-group-1 from 10.10.10.1 to 10.10.10.2 user@R1# set fate-sharing group fs-group-1 from 10.10.80.1 to 10.10.80.2 user@R1# set fate-sharing group fs-group-1 use-for-post-convergence-lfa
-
(选答)为设备 R1 上的 ge-0/0/2 启用命运共享保护。
[edit protocols] user@R1# set isis interface ge-0/0/2 level 2 post-convergence-lfa fate-sharing-protection
-
配置每个数据包的负载均衡策略,以便 TI-LFA 正常工作并确保更快的融合。
[edit] user@R1# set policy-options policy-statement pplb then load-balance per-packet
-
应用策略将路由导出到转转发表。
[edit] user@R1# set routing-options forwarding-table export pplb
结果
在配置模式下,输入show interfaces
show protocols
和 show routing-options
命令,以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@R1# show interfaces ge-0/0/0 { unit 0 { description r1-to-r21; family inet { address 10.10.20.1/24; } family iso; family mpls; } } ge-0/0/1 { unit 0 { description r1-to-r31; family inet { address 10.10.30.1/24; } family iso; family mpls; } } ge-0/0/2 { unit 0 { description r1-to-r2; family inet { address 10.10.10.1/24; } family iso; family mpls; } } lo0 { unit 0 { family inet { address 198.168.0.1/32; } family iso { address 49.0000.2222.0001.00; } family mpls; } }
user@R1# show routing-options router-id 198.168.0.1; forwarding-table { export pplb; }
user@R1# show policy-options policy-statement pplb { then { load-balance per-packet; } }
user@R1# show protocols isis { interface ge-0/0/0.0 { level 2 disable; point-to-point; } interface ge-0/0/1.0 { level 2 disable; point-to-point; } interface ge-0/0/2.0 { level 2 disable; level 1 { post-convergence-lfa; } point-to-point; } interface fxp0.0 { disable; } interface lo0.0 { passive; } source-packet-routing { node-segment ipv4-index 1001; } backup-spf-options { use-post-convergence-lfa maximum-labels 8; } } mpls { interface ge-0/0/0.0; interface ge-0/0/1.0; interface ge-0/0/2.0; }
如果完成设备配置,请从配置模式输入 commit
。
验证
确认配置工作正常。
使用节点 SID 验证 TI-LFA 路由
目的
验证设备 R1 接口 ge-0/0/2 上下一跃点主跃点的链路保护备份路径,并验证是否已创建到达 192.168.0.3/32 的备份路径,以及是否具有正确的标签堆栈。
行动
在作模式下,运行 show route 192.168.0.3
命令以显示路由表信息。
user@R1> show route 192.168.0.3 inet.0: 38 destinations, 38 routes (38 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.0.3/32 *[IS-IS/15] 09:52:56, metric 20 > to 10.10.10.2 via ge-0/0/2.0 inet.3: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.0.3/32 *[L-ISIS/14] 05:45:40, metric 20 > to 10.10.10.2 via ge-0/0/2.0, Push 801003 to 10.10.20.2 via ge-0/0/0.0, Push 801003, Push 801024(top)
意义
到达 198.168.0.3/32(对应于设备 R3)的主路径是通过标签为 801003 的接口 ge-0/0/2,对应于设备 R3 的节点 SID。如果接口 ge-0/0/2 发生故障,则使用接口 ge-0/0/0 和标签堆栈 [801024, 801003] 的备份路径将变为活动状态。链路保护收敛后路径为 R1-R21-R22-R23-R24-R3。标签堆栈上的顶部标签801024,对应于节点 SID 以达到 R24。801003标签对应于 R23 上的节点 SID,以到达最短路径 R23-R2-R3 上的 R3。
验证邻接 SID
验证与设备 R1 具有 IS-IS 邻接关系的设备的邻接 SID。
SID 值在配置设置中可能会有所不同。
行动
在作模式下,运行 show isis adjacency detail
命令以显示设备 R1 上的邻接信息。
user@R1> show isis adjacency detail R21 Interface: ge-0/0/0.0, Level: 1, State: Up, Expires in 19 secs Priority: 0, Up/Down transitions: 3, Last transition: 07:06:07 ago Circuit type: 1, Speaks: IP, IPv6 Topologies: Unicast Restart capable: Yes, Adjacency advertisement: Advertise IP addresses: 10.10.20.2 Level 1 IPv4 Adj-SID: 299840 R31 Interface: ge-0/0/1.0, Level: 1, State: Up, Expires in 22 secs Priority: 0, Up/Down transitions: 3, Last transition: 07:06:07 ago Circuit type: 1, Speaks: IP, IPv6 Topologies: Unicast Restart capable: Yes, Adjacency advertisement: Advertise IP addresses: 10.10.30.2 Level 1 IPv4 Adj-SID: 299808 R2 Interface: ge-0/0/2.0, Level: 1, State: Up, Expires in 24 secs Priority: 0, Up/Down transitions: 3, Last transition: 07:06:07 ago Circuit type: 1, Speaks: IP, IPv6 Topologies: Unicast Restart capable: Yes, Adjacency advertisement: Advertise IP addresses: 10.10.10.2 Level 1 IPv4 Adj-SID: 299776
意义
邻接 SID 将分配给分段路由域中设备 R1 的每个邻接:
- 设备 R21 - 299840
- 设备 R31 - 299808
- 设备 R2 - 299776
邻接 SID 具有本地意义,可用于沿特定传出接口引导流量。如果不配置邻接 SID,系统会为其动态分配一个默认(或已配置)SRGB 范围之外的值。
使用邻接 SID 验证 TI-LFA 路由
目的
增加从 R1 到 R3 的收敛后路径的成本,并使用邻接 SID 验证 TI-LFA 路由,以避免到达目标设备 R3 的主路径。
行动
在配置模式下,增加连接设备 R22 和 R23 ge-0/0/0 的接口成本。
[edit protocols] user@R22# set protocols isis interface ge-0/0/0.0 level 1 metric 1000 user@R22# commit
在作模式下,再次运行 show route 192.168.0.3
命令。
user@R1> show route 192.168.0.3 inet.0: 38 destinations, 38 routes (38 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.0.3/32 *[IS-IS/15] 10:44:56, metric 20 > to 10.10.10.2 via ge-0/0/2.0 inet.3: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 192.168.0.3/32 *[L-ISIS/14] 00:00:31, metric 20 > to 10.10.10.2 via ge-0/0/2.0, Push 801003 to 10.10.30.2 via ge-0/0/1.0, Push 801003, Push 299808(top)
意义
TI-LFA 备份路径现在使用邻接 SID(在本例中为 299808)而不是节点 SID (801003) 来到达设备 R3。这是因为节点 SID 始终使用两个节点之间的最短路径,当 R22-R23 链路成本上升时,到 R1 的最短路径与主路径重叠。由于 TI-LFA 无法采用主路径到达目标,因此邻接 SID 用于将 R31-R34 作为到达设备 R3 的新收敛后路径。