● 配置目标
● 配置TI-LFA FRR保护,增强Segment Routing网络可靠性。
● 组网需求
● 如图1所示,该网络使能IS-IS,配置SR-MPLS BE功能。其中,DeviceC和DeviceD之间链路Cost是100,其他链路的Cost均为10。当前从DeviceA到DeviceF的最优路径是:DeviceA->DeviceB->DeviceE->DeviceF。通过在DeviceB上配置TI-LFA FRR局部保护功能,在DeviceB和DeviceE之间链路故障时,数据流量可以快速切换到备份路径:DeviceA->DeviceB->DeviceC->DeviceD->DeviceE->DeviceF。
● (1)
● 配置思路
● 整网配置IS-IS实现设备之间的互通。
● 整网使能MPLS,配置Segment Routing,建立SR-MPLS BE隧道。
● DeviceB上使能TI-LFA FRR保护功能,并且同时使能防微环功能。
● 操作步骤
● 配置接口的IP地址
● 配置DeviceA。
DeviceA: interface LoopBack1
ip address 1.1.1.9 255.255.255.255
interface Ethernet1/0/0
ip address 10.1.1.1 255.255.255.0
● 其他设备的配置过程与DeviceA类似,具体请参考后面的配置文件,在此不再赘述。
● 配置IGP协议,实现网络互通。本例中以IS-IS为例进行说明。
● 配置DeviceA。
DeviceA: isis 1
is-level level-1
cost-style wide
network-entity 10.0000.0000.0001.00
interface LoopBack1
isis enable 1
interface Ethernet1/0/0
isis enable 1
● 其他设备的配置过程与DeviceA类似,具体请参考后面的配置文件,在此不再赘述。
● 在骨干网上配置MPLS基本能力
● 配置DeviceA。
DeviceA:
mpls lsr-id 1.1.1.9
mpls
● 配置DeviceB。
DeviceB:
mpls lsr-id 2.2.2.9
mpls
● 配置DeviceC。
DeviceC:
mpls lsr-id 3.3.3.9
mpls
● 配置DeviceD。
DeviceD:
mpls lsr-id 4.4.4.9
mpls
● 配置DeviceE。
DeviceE:
mpls lsr-id 5.5.5.9
mpls
● 配置DeviceF。
DeviceF:
mpls lsr-id 6.6.6.9
mpls
● 在骨干网上配置Segment Routing,建立SR-MPLS BE隧道。
● 配置DeviceA。
DeviceA:
segment-routing
isis 1
segment-routing mpls
segment-routing global-block 16000 23999
interface LoopBack1
isis prefix-sid index 10
● 配置DeviceB。
DeviceB:
segment-routing
isis 1
segment-routing mpls
segment-routing global-block 16000 23999
interface LoopBack1
isis prefix-sid index 20
● 配置DeviceC。
DeviceC:
segment-routing
isis 1
segment-routing mpls
segment-routing global-block 16000 23999
interface LoopBack1
isis prefix-sid index 30
● 配置DeviceD。
DeviceD:
segment-routing
isis 1
segment-routing mpls
segment-routing global-block 16000 23999
interface LoopBack1
isis prefix-sid index 40
● 配置DeviceE。
DeviceE:
segment-routing
isis 1
segment-routing mpls
segment-routing global-block 16000 23999
interface LoopBack1
isis prefix-sid index 50
● 配置DeviceF。
DeviceF:
segment-routing
isis 1
segment-routing mpls
segment-routing global-block 16000 23999
interface LoopBack1
isis prefix-sid index 60
● 配置完成后,在各设备上执行display segment-routing prefix mpls forwarding命令,可以看到SR-MPLS BE标签转发路径已建立。以DeviceA的显示为例。
●
● 配置TI-LFA FRR功能
● 配置DeviceB。
Device:
isis 1
avoid-microloop frr-protected
avoid-microloop frr-protected rib-update-delay 5000
avoid-microloop segment-routing
frr
loop-free-alternate level-1
ti-lfa level-1
● 配置完成后,在DeviceB上执行display isis route [ level-1 | level-2 ] [ process-id ] [ verbose ]命令,可以看到IS-IS TI-LFA FRR备份表项信息。
● 检查配置结果
● 在DeviceA设备上执行Tracert命令,检测到DeviceF的SR-MPLS BE隧道的连通性。例如:
[~DeviceA]tracert lsp segment-routing ip 6.6.6.9 32 version draft2
● 在DeviceB的ETH 1/0/2接口上执行shutdown命令,模拟DeviceB->DeviceE之间链路故障。
DeviceB:
interface Ethernet1/0/2
shutdown
● 立即在DeviceA上使用Tracert命令,检测SR-MPLS BE隧道的连通性,例如:、
[~DeviceA]tracert lsp segment-routing ip 6.6.6.9 32 version draft2
● 从以上显示信息可以看出,SR-MPLS BE隧道已经切换到TI-LFA FRR备份路径。