配置松散形式SR-MPLS TE隧道的TI-LFA FRR功能示例
配置TI-LFA FRR保护,增强Segment Routing网络可靠性。
组网需求
如图2-19所示,该网络使能IS-IS,其中,DeviceC和DeviceD之间链路Cost是100,其他链路的Cost均为10。本例使用Node SID,利用静态显式路径建立从DeviceA到DeviceF的SR-MPLS TE隧道,隧道路径是:DeviceA->DeviceB->DeviceE->DeviceF。
SR-MPLS TE隧道使用Node SID时,是松散形式,这种形式可以支持TI-LFA FRR功能。通过在DeviceB上配置TI-LFA FRR局部保护功能,在DeviceB和DeviceE之间链路故障时,数据流量可以快速切换到备份路径:DeviceA->DeviceB->DeviceC->DeviceD->DeviceE->DeviceF。
配置注意事项
本示例通过在DeviceB上配置TI-LFA FRR功能,保护DeviceB和DeviceE之间链路。在实际现网部署时,建议在Segment Routing域的所有节点都部署TI-LFA FRR功能。
配置思路
采用如下的思路配置松散形式SR-MPLS TE隧道的TI-LFA FRR功能:
整网配置IS-IS实现设备之间的互通。
整网使能MPLS,配置Segment Routing。
- DeviceA上配置显式路径,建立SR-MPLS TE隧道。
DeviceB上使能TI-LFA FRR保护功能,并且同时使能防微环功能。
操作步骤
- 配置接口的IP地址
# 配置DeviceA。
<HUAWEI> system-view
[~HUAWEI] sysname DeviceA
[*HUAWEI] commit
[~DeviceA] interface loopback 1
[*DeviceA-LoopBack1] ip address 1.1.1.9 32
[*DeviceA-LoopBack1] quit
[*DeviceA] interface gigabitethernet0/1/0
[*DeviceA-GigabitEthernet0/1/0] ip address 10.1.1.1 24
[*DeviceA-GigabitEthernet0/1/0] quit
[*DeviceA] commit
其他设备的配置过程与DeviceA类似,具体请参考后面的配置文件,在此不再赘述。
- 配置IGP协议,实现网络互通。本例中以IS-IS为例进行说明
# 配置DeviceA。
[~DeviceA] isis 1
[*DeviceA-isis-1] is-level level-1
[*DeviceA-isis-1] network-entity 10.0000.0000.0001.00
[*DeviceA-isis-1] cost-style wide
[*DeviceA-isis-1] quit
[*DeviceA] commit
[*DeviceA] interface loopback 1
[*DeviceA-LoopBack1] isis enable 1
[*DeviceA-LoopBack1] quit
[*DeviceA] interface gigabitethernet0/1/0
[*DeviceA-GigabitEthernet0/1/0] isis enable 1
[*DeviceA-GigabitEthernet0/1/0] quit
[*DeviceA] commit
其他设备的配置过程与DeviceA类似,具体请参考后面的配置文件,在此不再赘述。
- 在骨干网上配置MPLS基本能力
# 配置DeviceA。
[~DeviceA] mpls lsr-id 1.1.1.9
[*DeviceA] mpls
[*DeviceA-mpls] mpls te
[*DeviceA-mpls] commit
[~DeviceA-mpls] quit
# 配置DeviceB。
[~DeviceB] mpls lsr-id 2.2.2.9
[*DeviceB] mpls
[*DeviceB-mpls] mpls te
[*DeviceB-mpls] commit
[~DeviceB-mpls] quit
# 配置DeviceC。
[~DeviceC] mpls lsr-id 3.3.3.9
[*DeviceC] mpls
[*DeviceC-mpls] mpls te
[*DeviceC-mpls] commit
[~DeviceC-mpls] quit
# 配置DeviceD。
[~DeviceD] mpls lsr-id 4.4.4.9
[*DeviceD] mpls
[*DeviceD-mpls] mpls te
[*DeviceD-mpls] commit
[~DeviceD-mpls] quit
# 配置DeviceE。
[~DeviceE] mpls lsr-id 5.5.5.9
[*DeviceE] mpls
[*DeviceE-mpls] mpls te
[*DeviceE-mpls] commit
[~DeviceE-mpls] quit
# 配置DeviceF。
[~DeviceF] mpls lsr-id 6.6.6.9
[*DeviceF] mpls
[*DeviceF-mpls] mpls te
[*DeviceF-mpls] commit
[~DeviceF-mpls] quit
- 在骨干网上配置Segment Routing基本功能
# 配置DeviceA。
[~DeviceA] segment-routing
[*DeviceA-segment-routing] quit
[*DeviceA] commit
[~DeviceA] isis 1
[*DeviceA-isis-1] segment-routing mpls
[*DeviceA-isis-1] segment-routing global-block 16000 23999
SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。
[*DeviceA-isis-1] quit
[*DeviceA] interface loopback 1
[*DeviceA-LoopBack1] isis prefix-sid index 10
[*DeviceA-LoopBack1] quit
[*DeviceA] commit
# 配置DeviceB。
[~DeviceB] segment-routing
[*DeviceB-segment-routing] quit
[*DeviceB] commit
[~DeviceB] isis 1
[*DeviceB-isis-1] segment-routing mpls
[*DeviceB-isis-1] segment-routing global-block 16000 23999
SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。
[*DeviceB-isis-1] quit
[*DeviceB] interface loopback 1
[*DeviceB-LoopBack1] isis prefix-sid index 20
[*DeviceB-LoopBack1] quit
[*DeviceB] commit
# 配置DeviceC。
[~DeviceC] segment-routing
[*DeviceC-segment-routing] quit
[*DeviceC] commit
[~DeviceC] isis 1
[*DeviceC-isis-1] segment-routing mpls
[*DeviceC-isis-1] segment-routing global-block 16000 23999
SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。
[*DeviceC-isis-1] quit
[*DeviceC] interface loopback 1
[*DeviceC-LoopBack1] isis prefix-sid index 30
[*DeviceC-LoopBack1] quit
[*DeviceC] commit
# 配置DeviceD。
[~DeviceD] segment-routing
[*DeviceD-segment-routing] quit
[*DeviceD] commit
[~DeviceD] isis 1
[*DeviceD-isis-1] segment-routing mpls
[*DeviceD-isis-1] segment-routing global-block 16000 23999
SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。
[*DeviceD-isis-1] quit
[*DeviceD] interface loopback 1
[*DeviceD-LoopBack1] isis prefix-sid index 40
[*DeviceD-LoopBack1] quit
[*DeviceD] commit
# 配置DeviceE。
[~DeviceE] segment-routing
[*DeviceE-segment-routing] quit
[*DeviceE] commit
[~DeviceE] isis 1
[*DeviceE-isis-1] segment-routing mpls
[*DeviceE-isis-1] segment-routing global-block 16000 23999
SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。
[*DeviceE-isis-1] quit
[*DeviceE] interface loopback 1
[*DeviceE-LoopBack1] isis prefix-sid index 50
[*DeviceE-LoopBack1] quit
[*DeviceE] commit
# 配置DeviceF。
[~DeviceF] segment-routing
[*DeviceF-segment-routing] quit
[*DeviceF] commit
[~DeviceF] isis 1
[*DeviceF-isis-1] segment-routing mpls
[*DeviceF-isis-1] segment-routing global-block 16000 23999
SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。
[*DeviceF-isis-1] quit
[*DeviceF] interface loopback 1
[*DeviceF-LoopBack1] isis prefix-sid index 60
[*DeviceF-LoopBack1] quit
[*DeviceF] commit
- 配置SR-MPLS TE隧道。
# 配置DeviceA。
[~DeviceA] explicit-path p1
[*DeviceA-explicit-path-p1] next sid label 16020 type prefix
[*DeviceA-explicit-path-p1] next sid label 16050 type prefix
[*DeviceA-explicit-path-p1] next sid label 16060 type prefix
[*DeviceA-explicit-path-p1] quit
[*DeviceA] interface tunnel1
[*DeviceA-Tunnel1] ip address unnumbered interface LoopBack1
[*DeviceA-Tunnel1] tunnel-protocol mpls te
[*DeviceA-Tunnel1] destination 6.6.6.9
[*DeviceA-Tunnel1] mpls te tunnel-id 1
[*DeviceA-Tunnel1] mpls te signal-protocol segment-routing
[*DeviceA-Tunnel1] mpls te path explicit-path p1
[*DeviceA-Tunnel1] commit
[~DeviceA-Tunnel1] quit
# 配置完成后,在DeviceA上执行display mpls te tunnel destination命令,可以看到SR-MPLS TE隧道已建立。
[~DeviceA] display mpls te tunnel destination 6.6.6.9
------------------------------------------------------------------------------- Ingress LsrId Destination LSPID In/OutLabel R Tunnel-name ------------------------------------------------------------------------------- 1.1.1.9 6.6.6.9 5 -/16020 I Tunnel1 ------------------------------------------------------------------------------- R: Role, I: Ingress, T: Transit, E: Egress
# 在DeviceA上执行display mpls te tunnel-interface命令,可以看到SR-MPLS TE隧道相关信息。
[~DeviceA] display mpls te tunnel-interface Tunnel 1
Tunnel Name : Tunnel1 Signalled Tunnel Name: - Tunnel State Desc : CR-LSP is Up Tunnel Attributes : Active LSP : Primary LSP Traffic Switch : - Session ID : 100 Ingress LSR ID : 1.1.1.9 Egress LSR ID: 6.6.6.9 Admin State : UP Oper State : UP Signaling Protocol : Segment-Routing FTid : 8193 Tie-Breaking Policy : None Metric Type : None Bfd Cap : None Reopt : Disabled Reopt Freq : - Auto BW : Disabled Threshold : - Current Collected BW: - Auto BW Freq : - Min BW : - Max BW : - Offload : Disabled Offload Freq : - Low Value : - High Value : - Readjust Value : - Offload Explicit Path Name: - Tunnel Group : Primary Interfaces Protected: - Excluded IP Address : - Referred LSP Count : 0 Primary Tunnel : - Pri Tunn Sum : - Backup Tunnel : - Group Status : Up Oam Status : None IPTN InLabel : - Tunnel BFD Status : - BackUp LSP Type : None BestEffort : Disabled Secondary HopLimit : - BestEffort HopLimit : - Secondary Explicit Path Name: - Secondary Affinity Prop/Mask: 0x0/0x0 BestEffort Affinity Prop/Mask: 0x0/0x0 IsConfigLspConstraint: - Hot-Standby Revertive Mode: Revertive Hot-Standby Overlap-path: Disabled Hot-Standby Switch State: CLEAR Bit Error Detection: Disabled Bit Error Detection Switch Threshold: - Bit Error Detection Resume Threshold: - Ip-Prefix Name : - P2p-Template Name : - PCE Delegate : No LSP Control Status : Local control Path Verification : No Entropy Label : None Associated Tunnel Group ID: - Associated Tunnel Group Type: - Auto BW Remain Time : - Reopt Remain Time : - Segment-Routing Remote Label : - Binding Sid : - Reverse Binding Sid : - Primary LSP ID : 1.1.1.9:5 LSP State : UP LSP Type : Primary Setup Priority : 7 Hold Priority: 7 IncludeAll : 0x0 IncludeAny : 0x0 ExcludeAny : 0x0 Affinity Prop/Mask : 0x0/0x0 Resv Style : SE Configured Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Actual Bandwidth Information: CT0 Bandwidth(Kbit/sec): 0 CT1 Bandwidth(Kbit/sec): 0 CT2 Bandwidth(Kbit/sec): 0 CT3 Bandwidth(Kbit/sec): 0 CT4 Bandwidth(Kbit/sec): 0 CT5 Bandwidth(Kbit/sec): 0 CT6 Bandwidth(Kbit/sec): 0 CT7 Bandwidth(Kbit/sec): 0 Explicit Path Name : p1 Hop Limit: - Record Route : Disabled Record Label : Disabled Route Pinning : Disabled FRR Flag : Disabled IdleTime Remain : - BFD Status : - Soft Preemption : Disabled Reroute Flag : Enabled Pce Flag : Normal Path Setup Type : EXPLICIT Create Modify LSP Reason: -
- 配置TI-LFA FRR功能
# 配置DeviceB。
[~DeviceB] isis 1
[*DeviceB-isis-1] avoid-microloop frr-protected
[*DeviceB-isis-1] avoid-microloop frr-protected rib-update-delay 5000
[*DeviceB-isis-1] avoid-microloop segment-routing
[*DeviceB-isis-1] avoid-microloop segment-routing rib-update-delay 5000
[*DeviceB-isis-1] frr
[*DeviceB-isis-1-frr] loop-free-alternate level-1
[*DeviceB-isis-1-frr] ti-lfa level-1
[*DeviceB-isis-1-frr] quit
配置完成后,在DeviceB上执行display isis route [ level-1 | level-2 ] [ process-id ] [ verbose ]命令,可以看到IS-IS TI-LFA FRR备份表项信息。
[~DeviceB] display isis route level-1 verbose
Route information for ISIS(1) ----------------------------- ISIS(1) Level-1 Forwarding Table -------------------------------- IPV4 Dest : 1.1.1.9/32 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/-/- Priority : Medium Age : 06:02:52 NextHop : Interface : ExitIndex : 10.1.1.1 GE0/1/0 0x0000000e Prefix-sid : 16010 Weight : 0 Flags : -/N/-/-/-/-/A/- SR NextHop : Interface : OutLabel : 10.1.1.1 GE0/1/0 3 IPV4 Dest : 2.2.2.9/32 Int. Cost : 0 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : D/-/L/- Priority : - Age : 06:02:52 NextHop : Interface : ExitIndex : Direct Loop1 0x00000000 Prefix-sid : 16020 Weight : 0 Flags : -/N/-/-/-/-/A/L SR NextHop : Interface : OutLabel : Direct Loop1 - IPV4 Dest : 3.3.3.9/32 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/-/- Priority : Medium Age : 00:03:21 NextHop : Interface : ExitIndex : 10.2.1.2 GE0/2/0 0x0000000a TI-LFA: Interface : GE0/3/0 NextHop : 10.5.1.2 LsIndex : 0x00000002 Backup Label Stack (Top -> Bottom): {16040, 48141} Prefix-sid : 16030 Weight : 0 Flags : -/N/-/-/-/-/A/- SR NextHop : Interface : OutLabel : 10.2.1.2 GE0/2/0 3 TI-LFA: Interface : GE0/3/0 NextHop : 10.5.1.2 LsIndex : 0x00000002 Backup Label Stack (Top -> Bottom): {16040, 48141} IPV4 Dest : 4.4.4.9/32 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/-/- Priority : Medium Age : 00:03:21 NextHop : Interface : ExitIndex : 10.5.1.2 GE0/3/0 0x00000007 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} Prefix-sid : 16040 Weight : 0 Flags : -/N/-/-/-/-/A/- SR NextHop : Interface : OutLabel : 10.5.1.2 GE0/3/0 16040 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} IPV4 Dest : 5.5.5.9/32 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/-/- Priority : Medium Age : 00:03:21 NextHop : Interface : ExitIndex : 10.5.1.2 GE0/3/0 0x00000007 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} Prefix-sid : 16050 Weight : 0 Flags : -/N/-/-/-/-/A/- SR NextHop : Interface : OutLabel : 10.5.1.2 GE0/3/0 3 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} IPV4 Dest : 6.6.6.9/32 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flags : A/-/-/- Priority : Medium Age : 00:03:21 NextHop : Interface : ExitIndex : 10.5.1.2 GE0/3/0 0x00000007 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} Prefix-sid : 16060 Weight : 0 Flags : -/N/-/-/-/-/A/- SR NextHop : Interface : OutLabel : 10.5.1.2 GE0/3/0 16060 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} IPV4 Dest : 10.1.1.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flags : D/-/L/- Priority : - Age : 06:02:52 NextHop : Interface : ExitIndex : Direct GE0/1/0 0x00000000 IPV4 Dest : 10.2.1.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flags : D/-/L/- Priority : - Age : 06:02:52 NextHop : Interface : ExitIndex : Direct GE0/2/0 0x00000000 IPV4 Dest : 10.3.1.0/24 Int. Cost : 110 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flags : A/-/-/- Priority : Low Age : 00:03:21 NextHop : Interface : ExitIndex : 10.2.1.2 GE0/2/0 0x0000000a TI-LFA: Interface : GE0/3/0 NextHop : 10.5.1.2 LsIndex : -- Backup Label Stack (Top -> Bottom): {} IPV4 Dest : 10.4.1.0/24 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flags : A/-/-/- Priority : Low Age : 00:03:21 NextHop : Interface : ExitIndex : 10.5.1.2 GE0/3/0 0x00000007 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} IPV4 Dest : 10.5.1.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flags : D/-/L/- Priority : - Age : 00:03:44 NextHop : Interface : ExitIndex : Direct GE0/3/0 0x00000000 IPV4 Dest : 10.6.1.0/24 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flags : A/-/-/- Priority : Low Age : 00:03:21 NextHop : Interface : ExitIndex : 10.5.1.2 GE0/3/0 0x00000007 TI-LFA: Interface : GE0/2/0 NextHop : 10.2.1.2 LsIndex : 0x00000003 Backup Label Stack (Top -> Bottom): {48142} Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, U-Up/Down Bit Set, LP-Local Prefix-Sid
- 检查配置结果
# 在DeviceA设备上执行Tracert命令,检测到DeviceF的SR-MPLS TE隧道的连通性。例如:
[~DeviceA] tracert lsp segment-routing te Tunnel 1
LSP Trace Route FEC: SEGMENT ROUTING TE TUNNEL IPV4 SESSION QUERY Tunnel1 , press CTRL_C to break. TTL Replier Time Type Downstream 0 Ingress 10.1.1.2/[16050 16060 ] 1 10.1.1.2 2 ms Transit 10.5.1.2/[3 ] 2 10.5.1.2 3 ms Transit 10.6.1.2/[3 ] 3 6.6.6.9 3 ms Egress
# 在DeviceB的GE0/3/0接口上执行shutdown命令,模拟DeviceB->DeviceE之间链路故障。
[*DeviceB] interface gigabitethernet0/3/0
[*DeviceB-GigabitEthernet0/3/0] shutdown
[*DeviceB-GigabitEthernet0/3/0] quit
[*DeviceB] commit
# 立即在DeviceA上使用Tracert命令,检测SR-MPLS TE隧道的连通性,例如:
[~DeviceA] tracert lsp segment-routing te Tunnel 1
LSP Trace Route FEC: SEGMENT ROUTING TE TUNNEL IPV4 SESSION QUERY Tunnel1 , press CTRL_C to break. TTL Replier Time Type Downstream 0 Ingress 10.1.1.2/[16050 16060 ] 1 10.1.1.2 3 ms Transit 10.2.1.2/[16050 ] 2 10.2.1.2 4 ms Transit 10.3.1.2/[16050 ] 3 10.3.1.2 4 ms Transit 10.4.1.2/[3 ] 4 10.4.1.2 3 ms Transit 10.6.1.2/[3 ] 5 6.6.6.9 5 ms Egress
从以上显示信息可以看出,SR-MPLS TE隧道已经切换到TI-LFA FRR备份路径。
配置文件
DeviceA的配置文件
# sysname DeviceA # mpls lsr-id 1.1.1.9 # mpls mpls te # explicit-path p1 next sid label 16020 type prefix next sid label 16050 type prefix next sid label 16060 type prefix # segment-routing # isis 1 is-level level-1 cost-style wide network-entity 10.0000.0000.0001.00 segment-routing mpls segment-routing global-block 16000 23999 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.1 255.255.255.0 isis enable 1 # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 isis enable 1 isis prefix-sid index 10 # interface Tunnel1 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 6.6.6.9 mpls te signal-protocol segment-routing mpls te tunnel-id 100 mpls te path explicit-path p1 # return
DeviceB的配置文件
# sysname DeviceB # mpls lsr-id 2.2.2.9 # mpls mpls te # segment-routing # isis 1 is-level level-1 cost-style wide network-entity 10.0000.0000.0002.00 avoid-microloop frr-protected avoid-microloop frr-protected rib-update-delay 5000 segment-routing mpls segment-routing global-block 16000 23999 avoid-microloop segment-routing avoid-microloop segment-routing rib-update-delay 5000 frr loop-free-alternate level-1 ti-lfa level-1 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.2 255.255.255.0 isis enable 1 # interface GigabitEthernet0/2/0 undo shutdown ip address 10.2.1.1 255.255.255.0 isis enable 1 # interface GigabitEthernet0/3/0 undo shutdown ip address 10.5.1.1 255.255.255.0 isis enable 1 # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 isis enable 1 isis prefix-sid index 20 # return
DeviceC的配置文件
# sysname DeviceC # mpls lsr-id 3.3.3.9 # mpls mpls te # segment-routing # isis 1 is-level level-1 cost-style wide network-entity 10.0000.0000.0003.00 segment-routing mpls segment-routing global-block 16000 23999 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.2.1.2 255.255.255.0 isis enable 1 # interface GigabitEthernet0/2/0 undo shutdown ip address 10.3.1.1 255.255.255.0 isis enable 1 isis cost 100 # interface LoopBack1 ip address 3.3.3.9 255.255.255.255 isis enable 1 isis prefix-sid index 30 # return
DeviceD的配置文件
# sysname DeviceD # mpls lsr-id 4.4.4.9 # mpls mpls te # segment-routing # isis 1 is-level level-1 cost-style wide network-entity 10.0000.0000.0004.00 segment-routing mpls segment-routing global-block 16000 23999 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.3.1.2 255.255.255.0 isis enable 1 isis cost 100 # interface GigabitEthernet0/2/0 undo shutdown ip address 10.4.1.1 255.255.255.0 isis enable 1 # interface LoopBack1 ip address 4.4.4.9 255.255.255.255 isis enable 1 isis prefix-sid index 40 # return
DeviceE的配置文件
# sysname DeviceE # mpls lsr-id 5.5.5.9 # mpls mpls te # segment-routing # isis 1 is-level level-1 cost-style wide network-entity 10.0000.0000.0005.00 segment-routing mpls segment-routing global-block 16000 23999 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.6.1.1 255.255.255.0 isis enable 1 # interface GigabitEthernet0/2/0 undo shutdown ip address 10.4.1.1 255.255.255.0 isis enable 1 # interface GigabitEthernet0/3/0 undo shutdown ip address 10.5.1.2 255.255.255.0 isis enable 1 # interface LoopBack1 ip address 5.5.5.9 255.255.255.255 isis enable 1 isis prefix-sid index 50 # return
DeviceF的配置文件
# sysname DeviceF # mpls lsr-id 6.6.6.9 # mpls mpls te # segment-routing # isis 1 is-level level-1 cost-style wide network-entity 10.0000.0000.0006.00 segment-routing mpls segment-routing global-block 16000 23999 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.6.1.2 255.255.255.0 isis enable 1 # interface LoopBack1 ip address 6.6.6.9 255.255.255.255 isis enable 1 isis prefix-sid index 60 # return