配置MPLS TE Auto FRR示例
组网需求
如图4-58所示,要求创建一条沿显式路径:LSRA→LSRB→LSRC→LSRD的主隧道。在入节点LSRA创建一条节点保护的旁路隧道用来保护节点LSRB,在中间节点LSRB上创建一条链路保护的旁路隧道用来保护LSRB→LSRC之间的链路。
操作步骤
- 配置各接口的IP地址,并配置OSPF
# 配置LSRA。LSRB、LSRC、LSRD、LSRE和LSRF的配置与LSRA类似,不再赘述。
<Huawei> system-view [Huawei] sysname LSRA [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] ip address 172.1.1.1 255.255.255.0 [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] ip address 172.6.1.1 255.255.255.0 [LSRA-GigabitEthernet2/0/0] quit [LSRA] interface loopback 1 [LSRA-LoopBack1] ip address 1.1.1.9 255.255.255.255 [LSRA-LoopBack1] quit [LSRA] ospf 1 [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0 [LSRA-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255 [LSRA-ospf-1-area-0.0.0.0] network 172.6.1.0 0.0.0.255 [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
配置完成后,在各节点上执行display ip routing-table命令,应可以看到相互之间都学到了到对方Loopback1的路由。以LSRA的显示为例:
[LSRA] display ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 21 Routes : 25 Destination/Mask Proto Pre Cost Flags NextHop Interface 1.1.1.9/32 Direct 0 0 D 127.0.0.1 LoopBack1 2.2.2.9/32 OSPF 10 1 D 172.1.1.2 GigabitEthernet1/0/0 3.3.3.9/32 OSPF 10 2 D 172.1.1.2 GigabitEthernet1/0/0 OSPF 10 2 D 172.6.1.2 GigabitEthernet2/0/0 4.4.4.9/32 OSPF 10 3 D 172.1.1.2 GigabitEthernet1/0/0 OSPF 10 3 D 172.6.1.2 GigabitEthernet2/0/0 5.5.5.9/32 OSPF 10 2 D 172.1.1.2 GigabitEthernet1/0/0 6.6.6.9/32 OSPF 10 1 D 172.6.1.2 GigabitEthernet2/0/0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 172.1.1.0/24 Direct 0 0 D 172.1.1.1 GigabitEthernet1/0/0 172.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0 172.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0 172.2.1.0/24 OSPF 10 2 D 172.1.1.2 GigabitEthernet1/0/0 172.3.1.0/24 OSPF 10 3 D 172.1.1.2 GigabitEthernet1/0/0 OSPF 10 3 D 172.6.1.2 GigabitEthernet2/0/0 172.4.1.0/24 OSPF 10 2 D 172.1.1.2 GigabitEthernet1/0/0 172.5.1.0/24 OSPF 10 3 D 172.1.1.2 GigabitEthernet1/0/0 OSPF 10 3 D 172.6.1.2 GigabitEthernet2/0/0 172.6.1.0/24 Direct 0 0 D 172.6.1.1 GigabitEthernet2/0/0 172.6.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 172.6.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 172.7.1.0/24 OSPF 10 2 D 172.6.1.2 GigabitEthernet2/0/0 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
- 配置MPLS基本能力,使能MPLS TE、RSVP-TE和CSPF
# 配置LSRA。LSRB、LSRC、LSRD、LSRE和LSRF的配置与LSRA类似,不再赘述。其中,只需在主隧道和旁路隧道的入节点上使能CSPF。即只需在LSRA、LSRB上使能CSPF,LSRC、LSRD和LSRE、LSRF上无需使能CSPF。
[LSRA] mpls lsr-id 1.1.1.9 [LSRA] mpls [LSRA-mpls] mpls te [LSRA-mpls] mpls rsvp-te [LSRA-mpls] mpls te cspf [LSRA-mpls] quit [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] mpls [LSRA-GigabitEthernet1/0/0] mpls te [LSRA-GigabitEthernet1/0/0] mpls rsvp-te [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] mpls [LSRA-GigabitEthernet2/0/0] mpls te [LSRA-GigabitEthernet2/0/0] mpls rsvp-te [LSRA-GigabitEthernet2/0/0] quit
- 配置OSPF TE
# 配置LSRA。LSRB、LSRC、LSRD、LSRE和LSRF的配置与LSRA类似,不再赘述。
[LSRA] ospf [LSRA-ospf-1] opaque-capability enable [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] mpls-te enable [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
- 使能TE Auto FRR
# 配置LSRA。
[LSRA] mpls [LSRA-mpls] mpls te auto-frr [LSRA-mpls] quit
# 配置LSRB。
[LSRB] mpls [LSRB-mpls] mpls te auto-frr [LSRB-mpls] quit [LSRB] interface gigabitethernet 2/0/0 [LSRB-GigabitEthernet2/0/0] mpls te auto-frr link [LSRB-GigabitEthernet2/0/0] quit
- 在入节点LSRA上创建主CR-LSP的MPLS TE Tunnel
# 配置主CR-LSP的显式路径。
[LSRA] explicit-path pri-path [LSRA-explicit-path-pri-path] next hop 172.1.1.2 [LSRA-explicit-path-pri-path] next hop 172.2.1.2 [LSRA-explicit-path-pri-path] next hop 172.3.1.2 [LSRA-explicit-path-pri-path] next hop 4.4.4.9 [LSRA-explicit-path-pri-path] quit
# 配置主CR-LSP的MPLS TE隧道接口。
[LSRA] interface tunnel 0/0/1 [LSRA-Tunnel0/0/1] ip address unnumbered interface loopBack 1 [LSRA-Tunnel0/0/1] tunnel-protocol mpls te [LSRA-Tunnel0/0/1] destination 4.4.4.9 [LSRA-Tunnel0/0/1] mpls te tunnel-id 100 [LSRA-Tunnel0/0/1] mpls te record-route label [LSRA-Tunnel0/0/1] mpls te path explicit-path pri-path [LSRA-Tunnel0/0/1] mpls te priority 4 3 [LSRA-Tunnel0/0/1] mpls te fast-reroute [LSRA-Tunnel0/0/1] mpls te commit [LSRA-Tunnel0/0/1] quit
- 验证配置结果
# 在节点上执行display mpls te tunnel命令,可以看到隧道的建立情况,LSRA和LSRB上有两条隧道经过,LSRC上有三条隧道经过(分别为一条主隧道和两条Bypass隧道)。
[LSRA] display mpls te tunnel ------------------------------------------------------------------------------ Ingress LsrId Destination LSPID In/Out Label R Tunnel-name ------------------------------------------------------------------------------ 1.1.1.9 3.3.3.9 3 --/1024 I Tunnel0/0/2048 1.1.1.9 4.4.4.9 34 --/1055 I Tunnel0/0/1
[LSRB] display mpls te tunnel ------------------------------------------------------------------------------ Ingress LsrId Destination LSPID In/Out Label R Tunnel-name ------------------------------------------------------------------------------ 2.2.2.9 3.3.3.9 1 --/1033 I Tunnel0/0/2049 1.1.1.9 4.4.4.9 34 1055/1063 T Tunnel0/0/1
[LSRC] display mpls te tunnel ------------------------------------------------------------------------------ Ingress LsrId Destination LSPID In/Out Label R Tunnel-name ------------------------------------------------------------------------------ 1.1.1.9 4.4.4.9 34 1063/3 T Tunnel0/0/1 1.1.1.9 3.3.3.9 3 3/-- E Tunnel0/0/2048 2.2.2.9 3.3.3.9 1 3/-- E Tunnel0/0/2049
[LSRD] display mpls te tunnel ------------------------------------------------------------------------------ Ingress LsrId Destination LSPID In/Out Label R Tunnel-name ------------------------------------------------------------------------------ 1.1.1.9 4.4.4.9 34 3/-- E Tunnel0/0/1
[LSRE] display mpls te tunnel ------------------------------------------------------------------------------ Ingress LsrId Destination LSPID In/Out Label R Tunnel-name ------------------------------------------------------------------------------ 2.2.2.9 3.3.3.9 1 1033/3 T Tunnel0/0/2049
[LSRF] display mpls te tunnel ------------------------------------------------------------------------------ Ingress LsrId Destination LSPID In/Out Label R Tunnel-name ------------------------------------------------------------------------------ 1.1.1.9 3.3.3.9 3 1024/3 T Tunnel0/0/2048
# 在入节点LSRA和LSRB上使用命令display mpls te tunnel name Tunnel0/0/1 verbose查看LSP信息时,可以看到主隧道信息及与之绑定的旁路隧道。
[LSRA] display mpls te tunnel name Tunnel0/0/1 verbose No : 1 Tunnel-Name : Tunnel0/0/1 Tunnel Interface Name : Tunnel0/0/1 TunnelIndex : 3 LSP Index : 2050 Session ID : 100 LSP ID : 34 LSR Role : Ingress LSP Type : Primary Ingress LSR ID : 1.1.1.9 Egress LSR ID : 4.4.4.9 In-Interface : - Out-Interface : GE1/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 LspConstraint : - ER-Hop Table Index : 1 AR-Hop Table Index: 2 C-Hop Table Index : 0 PrevTunnelIndexInSession: - NextTunnelIndexInSession: - PSB Handle : 16962 Created Time : 2013/01/21 22:04:45 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Unreserved 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 Setup-Priority : 4 Hold-Priority : 3 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x63 Protected Flag : 0x2 Bypass In Use : Not Used Bypass Tunnel Id : 41 BypassTunnel : Tunnel Index[Tunnel0/0/2048], InnerLabel[1063] Bypass LSP ID : 3 FrrNextHop : 172.7.1.2 ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : -
[LSRB] display mpls te tunnel name Tunnel0/0/1 verbose No : 1 Tunnel-Name : Tunnel0/0/1 Tunnel Interface Name : - TunnelIndex : 3 LSP Index : 2049 Session ID : 100 LSP ID : 34 LSR Role : Transit Ingress LSR ID : 1.1.1.9 Egress LSR ID : 4.4.4.9 In-Interface : GE1/0/0 Out-Interface : GE2/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 ER-Hop Table Index : 3 AR-Hop Table Index: 1 C-Hop Table Index : - PrevTunnelIndexInSession: - NextTunnelIndexInSession: - PSB Handle : 16971 Created Time : 2013/01/19 13:04:53 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Unreserved 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 Setup-Priority : 4 Hold-Priority : 3 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x63 Protected Flag : 0x1 Bypass In Use : Not Used Bypass Tunnel Id : 65 BypassTunnel : Tunnel Index[Tunnel0/0/2049], InnerLabel[1063] Bypass LSP ID : 1 FrrNextHop : 172.5.1.2 ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : -
# 可以看到LSRA上主隧道和一条自动旁路隧道Tunnel0/0/2048绑定,LSRB上主隧道和一条自动旁路隧道Tunnel0/0/2049绑定。
# 分别在LSRA上执行命令display mpls te tunnel name Tunnel0/0/2048 verbose,在LSRB上执行display mpls te tunnel name Tunnel0/0/2049 verbose,可以看到自动旁路隧道的详细信息。
[LSRA] display mpls te tunnel name Tunnel0/0/2048 verbose No : 1 Tunnel-Name : Tunnel0/0/2048 Tunnel Interface Name : Tunnel0/0/2048 TunnelIndex : 1 LSP Index : 2048 Session ID : 1025 LSP ID : 3 LSR Role : Ingress LSP Type : Primary Ingress LSR ID : 1.1.1.9 Egress LSR ID : 3.3.3.9 In-Interface : - Out-Interface : GE2/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 LspConstraint : - ER-Hop Table Index : - AR-Hop Table Index: 0 C-Hop Table Index : 1 PrevTunnelIndexInSession: - NextTunnelIndexInSession: - PSB Handle : 16967 Created Time : 2013/01/21 22:56:53 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Unreserved 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 Setup-Priority : 7 Hold-Priority : 7 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x3 Protected Flag : 0x0 Bypass In Use : Not Exists Bypass Tunnel Id : - BypassTunnel : - Bypass LSP ID : - FrrNextHop : - ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : -
[LSRB] display mpls te tunnel name Tunnel0/0/2049 verbose No : 1 Tunnel-Name : Tunnel0/0/2049 Tunnel Interface Name : Tunnel0/0/2049 TunnelIndex : 1 LSP Index : 2050 Session ID : 1026 LSP ID : 1 LSR Role : Ingress LSP Type : Primary Ingress LSR ID : 2.2.2.9 Egress LSR ID : 3.3.3.9 In-Interface : - Out-Interface : GE3/0/0 Sign-Protocol : RSVP TE Resv Style : SE IncludeAnyAff : 0x0 ExcludeAnyAff : 0x0 IncludeAllAff : 0x0 LspConstraint : - ER-Hop Table Index : - AR-Hop Table Index: 0 C-Hop Table Index : 0 PrevTunnelIndexInSession: - NextTunnelIndexInSession: - PSB Handle : 16972 Created Time : 2013/01/19 13:05:51 RSVP LSP Type : - -------------------------------- DS-TE Information -------------------------------- Bandwidth Reserved Flag : Unreserved 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 Setup-Priority : 7 Hold-Priority : 7 -------------------------------- FRR Information -------------------------------- Primary LSP Info TE Attribute Flag : 0x3 Protected Flag : 0x0 Bypass In Use : Not Exists Bypass Tunnel Id : - BypassTunnel : - Bypass LSP ID : - FrrNextHop : - ReferAutoBypassHandle : - FrrPrevTunnelTableIndex : - FrrNextTunnelTableIndex: - Bypass Attribute(Not configured) Setup Priority : - Hold Priority : - HopLimit : - Bandwidth : - IncludeAnyGroup : - ExcludeAnyGroup : - IncludeAllGroup : - Bypass Unbound Bandwidth Info(Kbit/sec) CT0 Unbound Bandwidth : - CT1 Unbound Bandwidth: - CT2 Unbound Bandwidth : - CT3 Unbound Bandwidth: - CT4 Unbound Bandwidth : - CT5 Unbound Bandwidth: - CT6 Unbound Bandwidth : - CT7 Unbound Bandwidth: - -------------------------------- BFD Information -------------------------------- NextSessionTunnelIndex : - PrevSessionTunnelIndex: - NextLspId : - PrevLspId : -
# 可以看到LSRA上自动旁路隧道保护主隧道的出接口GigabitEthernet1/0/0,排除了主隧道路径上LSRB,进行节点保护。LSRB上自动旁路隧道保护主隧道的出接口GigabitEthernet2/0/0,对LSRB→LSRC之间的链路进行链路保护。
# 分别在LSRA和LSRB上执行命令display mpls te tunnel path可以看到主隧道和自动旁路隧道的路径信息,在主隧道的出接口这一跳上显示主隧道受节点保护和链路保护。
[LSRA] display mpls te tunnel path Tunnel Interface Name : Tunnel0/0/1 Lsp ID : 1.1.1.9 :100 :34 Hop Information Hop 0 172.1.1.1 Local-Protection available | node Hop 1 172.1.1.2 Label 1055 Hop 2 2.2.2.9 Label 1055 Hop 3 172.2.1.1 Local-Protection available Hop 4 172.2.1.2 Label 1063 Hop 5 3.3.3.9 Label 1063 Hop 6 172.3.1.1 Hop 7 172.3.1.2 Label 3 Hop 8 4.4.4.9 Label 3 Tunnel Interface Name : Tunnel0/0/2048 Lsp ID : 1.1.1.9 :1025 :3 Hop Information Hop 0 172.6.1.1 Hop 1 172.6.1.2 Label 1024 Hop 2 6.6.6.9 Label 1024 Hop 3 172.7.1.1 Hop 4 172.7.1.2 Label 3 Hop 5 3.3.3.9 Label 3
[LSRB] display mpls te tunnel path Tunnel Interface Name : Tunnel0/0/2049 Lsp ID : 2.2.2.9 :1026 :1 Hop Information Hop 0 172.4.1.1 Hop 1 172.4.1.2 Label 1033 Hop 2 5.5.5.9 Label 1033 Hop 3 172.5.1.1 Hop 4 172.5.1.2 Label 3 Hop 5 3.3.3.9 Label 3 Tunnel Interface Name : Tunnel0/0/1 Lsp ID : 1.1.1.9 :100 :34 Hop Information Hop 0 1.1.1.9 Hop 1 172.1.1.1 Local-Protection available | node Hop 2 172.1.1.2 Label 1055 Hop 3 2.2.2.9 Hop 4 172.2.1.1 Local-Protection available Hop 5 172.2.1.2 Label 1063 Hop 6 3.3.3.9 Label 1063 Hop 7 172.3.1.1 Hop 8 172.3.1.2 Label 3 Hop 9 4.4.4.9 Label 3
配置文件
LSRA的配置文件
# sysname LSRA # mpls lsr-id 1.1.1.9 mpls mpls te mpls te auto-frr mpls rsvp-te mpls te cspf # explicit-path pri-path next hop 172.1.1.2 next hop 172.2.1.2 next hop 172.3.1.2 next hop 4.4.4.9 # interface GigabitEthernet1/0/0 ip address 172.1.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.6.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 # interface Tunnel0/0/1 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 4.4.4.9 mpls te tunnel-id 100 mpls te record-route label mpls te path explicit-path pri-path mpls te priority 4 3 mpls te fast-reroute mpls te commit # ospf 1 opaque-capability enable area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.6.1.0 0.0.0.255 mpls-te enable # return
LSRB的配置文件
# sysname LSRB # mpls lsr-id 2.2.2.9 mpls mpls te mpls te auto-frr mpls rsvp-te mpls te cspf # interface GigabitEthernet1/0/0 ip address 172.1.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.2.1.1 255.255.255.0 mpls mpls te mpls rsvp-te mpls te auto-frr link # interface GigabitEthernet3/0/0 ip address 172.4.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 172.1.1.0 0.0.0.255 network 172.2.1.0 0.0.0.255 network 172.4.1.0 0.0.0.255 mpls-te enable # return
LSRC的配置文件
# sysname LSRC # mpls lsr-id 3.3.3.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.2.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.3.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet3/0/0 ip address 172.5.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet4/0/0 ip address 172.7.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 3.3.3.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 172.2.1.0 0.0.0.255 network 172.3.1.0 0.0.0.255 network 172.5.1.0 0.0.0.255 network 172.7.1.0 0.0.0.255 mpls-te enable # return
LSRD的配置文件
# sysname LSRD # mpls lsr-id 4.4.4.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.3.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 4.4.4.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 4.4.4.9 0.0.0.0 network 172.3.1.0 0.0.0.255 mpls-te enable # return
LSRE的配置文件
# sysname LSRE # mpls lsr-id 5.5.5.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.4.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.5.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 5.5.5.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 5.5.5.9 0.0.0.0 network 172.4.1.0 0.0.0.255 network 172.5.1.0 0.0.0.255 mpls-te enable # return
LSRF的配置文件
# sysname LSRF # mpls lsr-id 6.6.6.9 mpls mpls te mpls rsvp-te # interface GigabitEthernet1/0/0 ip address 172.6.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 172.7.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 6.6.6.9 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 6.6.6.9 0.0.0.0 network 172.6.1.0 0.0.0.255 network 172.7.1.0 0.0.0.255 mpls-te enable # return