00-H3C S12500 CR-LSP备份典型配置举例
本章节下载: 00-H3C S12500 CR-LSP备份典型配置举例 (180.47 KB)
H3C S12500 CR-LSP备份配置举例
Copyright © 2013 杭州华三通信技术有限公司 版权所有,保留一切权利。 非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部, 并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。 |
目 录
本文档介绍了CR-LSP(constraint-based routed label switched paths,基于约束路由的LSP)备份的配置举例。
当MPLS网络存在LSP隧道故障时,可以通过CR-LSP备份功能提供保护。CR-LSP备份是一种端到端的路径保护,对整条LSP提供保护。当Ingress感知到主LSP不可用时,将流量切换到备份路径上;当主LSP路径恢复后再将流量切换回来,以实现对主LSP路径的备份保护。
CR-LSP有两种实现方式:
· 热备份:创建主CR-LSP后随即创建备份CR-LSP,主CR-LSP失效时,通过MPLS TE直接将业务切换至备份CR-LSP;
· 普通备份:主CR-LSP失效后再创建备份CR-LSP。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文假设您已了解CR-LSP备份特性。
如图1所示,运营商需要在Switch1和Switch3之间建立主备CR-LSP,承载非实时业务。正常情况下,只有主CR-LSP(路径为Switch1->Switch2->Switch3)承载业务。现要求使用CR-LSP备份技术对这条CR-LSP进行保护,当这条CR-LSP所在链路发生故障后,业务流量能直接切换到另一条备份CR-LSP(备份CR-LSP采用RSVP-TE自动计算生成)。
图1 CR-LSP热备份配置组网图
· 为实现当主CR-LSP发生故障后,主CR-LSP上的流量能快速切换到备份CR-LSP,CR-LSP的实现方式选择热备份方式,在主CR-LSP的头节点上使能CR-LSP热备份功能。
· 为建立主备CR-LSP,需要在各Switch上使能MPLS、MPLS TE和RSVP-TE基本能力。
· 为实现主CR-LSP链路发生故障后,头节点能快速感知到,需要在主CR-LSP上每个节点都配置BFD联动RSVP。
本举例在S12500-CMW520-R1825P01版本上进行配置和验证。
· 新增或者修改MPLS TE隧道接口下的配置后,需要重新执行mpls te commit命令,配置才能生效。
· 当MPLS TE隧道建立之后,如果不配置流量沿隧道转发,缺省情况下依然会沿IP路由转发。
(1) 配置接口以及环回口地址
<Switch1> system-view
[Switch1] interface LoopBack 0
[Switch1-LoopBack0] ip address 1.1.1.1 32
[Switch1-LoopBack0] quit
[Switch1] vlan 12
[Switch1-vlan12] port GigabitEthernet 9/0/2
[Switch1-vlan12] quit
[Switch1] interface GigabitEthernet 9/0/2
[Switch1-GigabitEthernet9/0/2] undo shutdown
[Switch1-GigabitEthernet9/0/2] quit
[Switch1] interface Vlan-interface 12
[Switch1-Vlan-interface12] ip address 4.0.12.1 24
[Switch1-Vlan-interface12] undo shutdown
[Switch1-Vlan-interface12] quit
[Switch1] vlan 14
[Switch1-vlan14] port GigabitEthernet 9/0/1
[Switch1-vlan14] quit
[Switch1] interface GigabitEthernet 9/0/1
[Switch1-GigabitEthernet9/0/1] undo shutdown
[Switch1-GigabitEthernet9/0/1] quit
[Switch1] interface Vlan-interface 14
[Switch1-Vlan-interface14] ip address 4.0.14.1 24
[Switch1-Vlan-interface14] undo shutdown
[Switch1-Vlan-interface14] quit
(2) 配置IGP协议
# 配置OSPF协议。
[Switch1] ospf
# 使能OSPF的Opaque LSA发布接收能力。
[Switch1-ospf-1] opaque-capability enable
# 进入区域视图,发布相应接口和环回口的地址。
[Switch1-ospf-1] area 0
[Switch1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[Switch1-ospf-1-area-0.0.0.0] network 4.0.12.1 0.0.0.0
[Switch1-ospf-1-area-0.0.0.0] network 4.0.14.1 0.0.0.0
# 当前OSPF区域下使能MPLS TE能力。
[Switch1-ospf-1-area-0.0.0.0] mpls-te enable
[Switch1-ospf-1-area-0.0.0.0] quit
[Switch1-ospf-1] quit
(3) 全局使能MPLS以及MPLS TE功能
# 配置LSR-ID为环回口地址。
[Switch1] mpls lsr-id 1.1.1.1
# MPLS视图下,使能MPLS TE、CSPF算法以及RSVP-TE。
[Switch1] mpls
[Switch1-mpls] mpls te
[Switch1-mpls] mpls te cspf
[Switch1-mpls] mpls rsvp-te
[Switch1-mpls] quit
(4) 接口使能MPLS以及MPLS TE功能,使能BFD联动RSVP
[Switch1] interface Vlan-interface 12
[Switch1-Vlan-interface12] mpls
[Switch1-Vlan-interface12] mpls te
[Switch1-Vlan-interface12] mpls rsvp-te
[Switch1-Vlan-interface12] mpls rsvp-te bfd enable
[Switch1-Vlan-interface12] quit
[Switch1] interface Vlan-interface 14
[Switch1-Vlan-interface14] mpls
[Switch1-Vlan-interface14] mpls te
[Switch1-Vlan-interface14] mpls rsvp-te
[Switch1-Vlan-interface14] mpls rsvp-te bfd enable
[Switch1-Vlan-interface14] quit
(5) 配置隧道,显式路径为主CR-LSP,同时使能CR-LSP热备份功能
# 配置MPLS TE隧道。
[Switch1] interface Tunnel 0
# 配置主CR-LSP接口的IP地址,使得MPLS-TE隧道的协议(Line protocol)UP,对于MPLS-TE隧道UP/DOWN状态没有影响;具体IP地址的选择可以根据现网选择。
[Switch1-Tunnel0] ip address 5.0.0.1 24
# 配置主CR-LSP类型为MPLS TE。
[Switch1-Tunnel0] tunnel-protocol mpls te
[Switch1-Tunnel0] quit
# 配置流量沿隧道转发。
[Switch1] ip route-static 3.3.3.3 32 Tunnel 0
# 配置主CR-LSP对应的显式路径。
[Switch1] explicit-path pri-path
[Switch1-explicit-path-pri-path] next hop 4.0.12.2
[Switch1-explicit-path-pri-path] next hop 4.0.23.3
[Switch1-explicit-path-pri-path] quit
# 隧道应用显式路径,其显式路径优先级别为5。注意,隧道可以同时应用多条显式路径,优先级数值大的显式路径优先考虑,当优先级数值大的显式路径无效时才使用次大的,依次类推。
[Switch1] interface Tunnel 0
[Switch1-Tunnel0] mpls te path explicit-path pri-path preference 5
# 配置隧道的Tunnel-ID。
[Switch1-Tunnel0] mpls te tunnel-id 1
# 配置主CR-LSP的目的地址为Switch3的环回口地址。
[Switch1-Tunnel0] destination 3.3.3.3
# 使能CR-LSP热备份。
[Switch1-Tunnel0] mpls te backup hot-standby
# 配置完成后,提交隧道配置,使得配置生效。
[Switch1-Tunnel0] mpls te commit
[Switch1-Tunnel0] quit
(1) 配置接口以及环回口地址
<Switch2> system-view
[Switch2] interface LoopBack 0
[Switch2-LoopBack0] ip address 2.2.2.2 32
[Switch2-LoopBack0] quit
[Switch2] vlan 12
[Switch2-vlan12] port GigabitEthernet 9/0/1
[Switch2-vlan12] quit
[Switch2] interface GigabitEthernet 9/0/1
[Switch2-GigabitEthernet9/0/1] undo shutdown
[Switch2-GigabitEthernet9/0/1] quit
[Switch2] interface Vlan-interface 12
[Switch2-Vlan-interface12] ip address 4.0.12.2 24
[Switch2-Vlan-interface12] undo shutdown
[Switch2-Vlan-interface12] quit
[Switch2] vlan 23
[Switch2-vlan23] port GigabitEthernet 9/0/2
[Switch2-vlan23] quit
[Switch2] interface GigabitEthernet 9/0/2
[Switch2-GigabitEthernet9/0/2] undo shutdown
[Switch2-GigabitEthernet9/0/2] quit
[Switch2] interface Vlan-interface 23
[Switch2-Vlan-interface23] ip address 4.0.23.2 24
[Switch2-Vlan-interface23] undo shutdown
[Switch2-Vlan-interface23] quit
(2) 配置IGP协议
# 配置OSPF协议。
[Switch2] ospf
# 使能OSPF的Opaque LSA发布接收能力。
[Switch2-ospf-1] opaque-capability enable
# 进入区域视图,发布相应接口和环回口的地址。
[Switch2-ospf-1] area 0
[Switch2-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[Switch2-ospf-1-area-0.0.0.0] network 4.0.12.2 0.0.0.0
[Switch2-ospf-1-area-0.0.0.0] network 4.0.23.2 0.0.0.0
# 当前OSPF区域下使能MPLS TE能力。
[Switch2-ospf-1-area-0.0.0.0] mpls-te enable
[Switch2-ospf-1-area-0.0.0.0] quit
[Switch2-ospf-1] quit
(3) 全局使能MPLS以及MPLS TE功能
# 配置LSR-ID为环回口地址。
[Switch2] mpls lsr-id 2.2.2.2
# MPLS视图下,使能MPLS TE、CSPF算法以及RSVP-TE。
[Switch2] mpls
[Switch2-mpls] mpls te
[Switch2-mpls] mpls te cspf
[Switch2-mpls] mpls rsvp-te
[Switch2-mpls] quit
(4) 接口使能MPLS以及MPLS TE功能,使能BFD联动RSVP
[Switch2] interface Vlan-interface 12
[Switch2-Vlan-interface12] mpls
[Switch2-Vlan-interface12] mpls te
[Switch2-Vlan-interface12] mpls rsvp-te
[Switch2-Vlan-interface12] mpls rsvp-te bfd enable
[Switch2-Vlan-interface12] quit
[Switch2] interface Vlan-interface 23
[Switch2-Vlan-interface23] mpls
[Switch2-Vlan-interface23] mpls te
[Switch2-Vlan-interface23] mpls rsvp-te
[Switch2-Vlan-interface23] mpls rsvp-te bfd enable
[Switch2-Vlan-interface23] quit
(1) 配置接口以及环回口地址
<Switch3> system-view
[Switch3] interface LoopBack 0
[Switch3-LoopBack0] ip address 3.3.3.3 32
[Switch3-LoopBack0] quit
[Switch3] vlan 23
[Switch3-vlan23] port GigabitEthernet 9/0/1
[Switch3-vlan23] quit
[Switch3] interface GigabitEthernet 9/0/1
[Switch3-GigabitEthernet9/0/1] undo shutdown
[Switch3-GigabitEthernet9/0/1] quit
[Switch3] interface Vlan-interface 23
[Switch3-Vlan-interface23] ip address 4.0.23.3 24
[Switch3-Vlan-interface23] undo shutdown
[Switch3-Vlan-interface23] quit
[Switch3] vlan 34
[Switch3-vlan34] port GigabitEthernet 9/0/2
[Switch3-vlan34] quit
[Switch3] interface GigabitEthernet 9/0/2
[Switch3-GigabitEthernet9/0/2] undo shutdown
[Switch3-GigabitEthernet9/0/2] quit
[Switch3] interface Vlan-interface 34
[Switch3-Vlan-interface34] ip address 4.0.34.3 24
[Switch3-Vlan-interface34] undo shutdown
[Switch3-Vlan-interface34] quit
(2) 配置IGP协议
# 配置OSPF协议。
[Switch3] ospf
# 使能OSPF的Opaque LSA发布接收能力。
[Switch3-ospf-1] opaque-capability enable
# 进入区域视图,并发布相应接口和环回口的地址。
[Switch3-ospf-1] area 0
[Switch3-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[Switch3-ospf-1-area-0.0.0.0] network 4.0.23.3 0.0.0.0
[Switch3-ospf-1-area-0.0.0.0] network 4.0.34.3 0.0.0.0
# 当前OSPF区域下使能MPLS TE能力。
[Switch3-ospf-1-area-0.0.0.0] mpls-te enable
[Switch3-ospf-1-area-0.0.0.0] quit
[Switch3-ospf-1] quit
(3) 全局使能MPLS以及MPLS TE功能
# 配置LSR-ID为环回口地址。
[Switch3] mpls lsr-id 3.3.3.3
#MPLS视图下,使能MPLS TE、CSPF算法以及RSVP-TE。
[Switch3] mpls
[Switch3-mpls] mpls te
[Switch3-mpls] mpls te cspf
[Switch3-mpls] mpls rsvp-te
[Switch3-mpls] quit
(4) 接口使能MPLS以及MPLS TE功能,使能BFD联动RSVP
[Switch3] interface Vlan-interface 23
[Switch3-Vlan-interface23] mpls
[Switch3-Vlan-interface23] mpls te
[Switch3-Vlan-interface23] mpls rsvp-te
[Switch3-Vlan-interface23] mpls rsvp-te bfd enable
[Switch3-Vlan-interface23] quit
[Switch3] interface Vlan-interface 34
[Switch3-Vlan-interface34] mpls
[Switch3-Vlan-interface34] mpls te
[Switch3-Vlan-interface34] mpls rsvp-te
[Switch3-Vlan-interface34] mpls rsvp-te bfd enable
[Switch3-Vlan-interface34] quit
(1) 配置接口以及环回口地址
<Switch4> system-view
[Switch4] interface LoopBack 0
[Switch4-LoopBack0] ip address 4.4.4.4 32
[Switch4-LoopBack0] quit
[Switch4] vlan 14
[Switch4-vlan14] port GigabitEthernet 9/0/1
[Switch4-vlan14] quit
[Switch4] interface GigabitEthernet 9/0/1
[Switch4-GigabitEthernet9/0/1] undo shutdown
[Switch4-GigabitEthernet9/0/1] quit
[Switch4] interface Vlan-interface 14
[Switch4-Vlan-interface14] ip address 4.0.14.4 24
[Switch4-Vlan-interface14] undo shutdown
[Switch4-Vlan-interface14] quit
[Switch4] vlan 34
[Switch4-vlan34] port GigabitEthernet 9/0/2
[Switch4-vlan34] quit
[Switch4] interface GigabitEthernet 9/0/2
[Switch4-GigabitEthernet9/0/2] undo shutdown
[Switch4-GigabitEthernet9/0/2] quit
[Switch4] interface Vlan-interface 34
[Switch4-Vlan-interface34] ip address 4.0.34.4 24
[Switch4-Vlan-interface34] undo shutdown
[Switch4-Vlan-interface34] quit
(2) 配置IGP协议
# 配置OSPF协议。
[Switch4] ospf
# 使能OSPF的Opaque LSA发布接收能力。
[Switch4-ospf-1] opaque-capability enable
# 进入区域视图,并发布相应接口和环回口的地址。
[Switch4-ospf-1] area 0
[Switch4-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[Switch4-ospf-1-area-0.0.0.0] network 4.0.14.4 0.0.0.0
[Switch4-ospf-1-area-0.0.0.0] network 4.0.34.4 0.0.0.0
# 当前OSPF区域下使能MPLS TE能力。
[Switch4-ospf-1-area-0.0.0.0] mpls-te enable
[Switch4-ospf-1-area-0.0.0.0] quit
[Switch4-ospf-1] quit
(3) 全局使能MPLS以及MPLS TE功能
# 配置LSR-ID为环回口地址。
[Switch4] mpls lsr-id 4.4.4.4
# MPLS视图下,使能MPLS TE、CSPF算法以及RSVP-TE。
[Switch4] mpls
[Switch4-mpls] mpls te
[Switch4-mpls] mpls te cspf
[Switch4-mpls] mpls rsvp-te
[Switch4-mpls] quit
(4) 接口使能MPLS以及MPLS TE功能,使能BFD联动RSVP
[Switch4] interface Vlan-interface 14
[Switch4-Vlan-interface14] mpls
[Switch4-Vlan-interface14] mpls te
[Switch4-Vlan-interface14] mpls rsvp-te
[Switch4-Vlan-interface14] mpls rsvp-te bfd enable
[Switch4-Vlan-interface14] quit
[Switch4] interface Vlan-interface 34
[Switch4-Vlan-interface34] mpls
[Switch4-Vlan-interface34] mpls te
[Switch4-Vlan-interface34] mpls rsvp-te
[Switch4-Vlan-interface34] mpls rsvp-te bfd enable
[Switch4-Vlan-interface34] quit
按照如上配置,PE1、PE2、PE3两两之间建立BGP VPLS连接,PW连接也已建立。
(1) 在Switch 1上查看CR-LSP状态
# 在Switch 1上执行display mpls te tunnel命令,可以看到存在两条Tunnel,出接口分别是Vlan12和Vlan14。即,在主CR-LSP创建后,备份CR-LSP也建立了。
[Switch1] display mpls te tunnel
LSP-Id Destination In/Out-If Name
1.1.1.1:14 3.3.3.3 -/Vlan12 Tunnel0
1.1.1.1:16 3.3.3.3 -/Vlan14 Tunnel0
# 在Switch 1上执行display mpls te tunnel path命令,可以看到这两条Tunnel的路径。
[Switch1] display mpls te tunnel path
Tunnel Interface Name : Tunnel0
Lsp ID : 1.1.1.1 :14
Hop Information
Hop 0 4.0.12.1
Hop 1 4.0.12.2
Hop 2 2.2.2.2
Hop 3 4.0.23.2
Hop 4 4.0.23.3
Hop 5 3.3.3.3
Tunnel Interface Name : Tunnel0
Lsp ID : 1.1.1.1 :16
Hop Information
Hop 0 4.0.14.1
Hop 1 4.0.14.4
Hop 2 4.4.4.4
Hop 3 4.0.34.4
Hop 4 4.0.34.3
Hop 5 3.3.3.3
# 在Switch 1上执行display mpls te tunnel-interface命令,可以看到隧道接口的详细信息。
[Switch1] display mpls te tunnel-interface
Tunnel Name : Tunnel0
Tunnel Desc : Tunnel0 Interface
Tunnel State Desc : Primary CR-LSP Up and HotBackup CR-LSP Up
Tunnel Attributes :
LSP ID : 1.1.1.1:14
Session ID : 1
Admin State : UP Oper State : UP
Ingress LSR-ID : 1.1.1.1 Egress LSR-ID: 3.3.3.3
Signaling Prot : RSVP Resv Style : SE
Tunnel mode : -
Class Type : CT0 Tunnel BW : 0 kbps
Reserved BW : 0 kbps
Setup Priority : 7 Hold Priority: 7
Affinity Prop/Mask : 0x0/0x0
Explicit Path Name : pri-path
Tie-Breaking Policy : None
Metric Type : None
Loop Detection : Disabled
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled BackUpBW Flag: Not Supported
BackUpBW Type : - BackUpBW : -
Route Pinning : Disabled
Retry Limit : 5 Retry Interval: 2 sec
Reopt : Disabled Reopt Freq : -
Back Up Type : HotStandBy
Back Up LSPID : 1.1.1.1:16
Auto BW : Disabled Auto BW Freq : -
Min BW : - Max BW : -
Current Collected BW: -
Interfaces Protected: -
VPN Bind Type : NONE
VPN Bind Value : -
Car Policy : Disabled
Tunnel Group : Primary
Primary Tunnel : -
Backup Tunnel : -
Group Status : -
(2) 查看BFD会话状态
# 使用display bfd session命令查看设备上的BFD会话。
[Switch1] display bfd session
Total session number: 2 Up session number: 2 Init mode: Active
IPv4 session working under Ctrl mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
1/1 4.0.12.1 4.0.12.2 Up 1900ms Vlan12
2/1 4.0.14.1 4.0.14.4 Up 2000ms Vlan14
[Switch2] display bfd session
Total session number: 2 Up session number: 2 Init mode: Active
IPv4 session working under Ctrl mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
1/1 4.0.12.2 4.0.12.1 Up 1900ms Vlan12
2/1 4.0.23.2 4.0.23.3 Up 1800ms Vlan23
[Switch3] display bfd session
Total session number: 2 Up session number: 2 Init mode: Active
IPv4 session working under Ctrl mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
1/2 4.0.23.3 4.0.23.2 Up 2000ms Vlan23
2/2 4.0.34.3 4.0.34.4 Up 1700ms Vlan34
[Switch4] display bfd session
Total session number: 2 Up session number: 2 Init mode: Active
IPv4 session working under Ctrl mode:
LD/RD SourceAddr DestAddr State Holdtime Interface
1/2 4.0.14.4 4.0.14.1 Up 1800ms Vlan14
2/2 4.0.34.4 4.0.34.3 Up 1900ms Vlan34
# 在Switch1上使用display bfd session verbose命令查看BFD会话的详细信息。
[Switch1] display bfd session verbose
Total Session Num: 2 Init Mode: Active
Session Working Under Ctrl Mode:
Local Discr: 1 Remote Discr: 1
Source IP: 4.0.12.1 Destination IP: 4.0.12.2
Session State: Up Interface: Vlan-interface12
Min Trans Inter: 400ms Act Trans Inter: 400ms
Min Recv Inter: 400ms Act Detect Inter: 2000ms
Running Up for: 00:01:36 Auth mode: None
Connect Type: Direct Board Num: 6
Protocol: RSVP
Diag Info: No Diagnostic
Local Discr: 2 Remote Discr: 1
Source IP: 4.0.14.1 Destination IP: 4.0.14.4
Session State: Up Interface: Vlan-interface14
Min Trans Inter: 400ms Act Trans Inter: 400ms
Min Recv Inter: 400ms Act Detect Inter: 2000ms
Running Up for: 00:01:36 Auth mode: None
Connect Type: Direct Board Num: 6
Protocol: RSVP
Diag Info: No Diagnostic
可以看到:RSVP协议已经和BFD会话关联。
(3) CR-LSP热备份切换
# 采用Tracert LSP的方式确认主备CR-LSP路径。
[Switch1] tracert lsp -a 1.1.1.1 te Tunnel 0
LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel0 , press CTRL_C to bre
ak.
TTL Replier Time Type Downstream
0 Ingress 4.0.12.2/[1028]
1 4.0.12.2 58 ms Transit 4.0.23.3/[3]
2 4.0.23.3 60 ms Egress
从以上显示可以判断出目前使用的CR-LSP经过Switch 2,没有使用Switch 4。
# 在Switch 1的Vlan-interface12接口上执行shutdown命令,主CR-LSP的状态不会Down。
[Switch1] interface Vlan-interface12
[Switch1-Vlan-interface12] shutdown
[Switch1-Vlan-interface12] quit
[Switch1-Vlan-interface12] display mpls te tunnel-interface
Tunnel Name : Tunnel0
Tunnel Desc : Tunnel0 Interface
Tunnel State Desc : Backup CR-LSP In use and Primary CR-LSP setting Up
Tunnel Attributes :
LSP ID : 1.1.1.1:17
Session ID : 1
Admin State : UP Oper State : UP
Ingress LSR-ID : 1.1.1.1 Egress LSR-ID: 3.3.3.3
Signaling Prot : RSVP Resv Style : SE
Tunnel mode : -
Class Type : CT0 Tunnel BW : 0 kbps
Reserved BW : 0 kbps
Setup Priority : 7 Hold Priority: 7
Affinity Prop/Mask : 0x0/0x0
Explicit Path Name : pri-path
Tie-Breaking Policy : None
Metric Type : None
Loop Detection : Disabled
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled BackUpBW Flag: Not Supported
BackUpBW Type : - BackUpBW : -
Route Pinning : Disabled
Retry Limit : 5 Retry Interval: 2 sec
Reopt : Disabled Reopt Freq : -
Back Up Type : HotStandBy
Back Up LSPID : 1.1.1.1:16
Auto BW : Disabled Auto BW Freq : -
Min BW : - Max BW : -
Current Collected BW: -
Interfaces Protected: -
VPN Bind Type : NONE
VPN Bind Value : -
Car Policy : Disabled
Tunnel Group : Primary
Primary Tunnel : -
Backup Tunnel : -
Group Status : -
# 查看当前CR-LSP隧道的经过的节点。
[Switch1-Vlan-interface12] tracert lsp -a 1.1.1.1 te Tunnel 0
LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel0 , press CTRL_C to bre
ak.
TTL Replier Time Type Downstream
0 Ingress 4.0.14.4/[1029]
1 4.0.14.4 44 ms Transit 4.0.34.3/[3]
2 4.0.34.3 40 ms Egress
可以看到:报文经过了Switch 4。
· Switch1:
[Switch1] display current-configuration
#
sysname Switch1
#
mpls lsr-id 1.1.1.1
#
vlan 1
#
vlan 12
#
vlan 14
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
explicit-path pri-path
next hop 4.0.12.2
next hop 4.0.23.3
#
interface NULL0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface Vlan-interface12
ip address 4.0.12.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface Vlan-interface14
ip address 4.0.14.1 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface GigabitEthernet9/0/1
port link-mode bridge
port access vlan 14
#
interface GigabitEthernet9/0/2
port link-mode bridge
port access vlan 12
#
interface Tunnel0
ip address 5.0.0.1 255.255.255.0
tunnel-protocol mpls te
destination 3.3.3.3
mpls te tunnel-id 1
mpls te record-route
mpls te path explicit-path pri-path preference 5
mpls te backup hot-standby
mpls te commit
#
ip route-static 3.3.3.3 255.255.255.255 Tunnel0
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 4.0.12.1 0.0.0.0
network 4.0.14.1 0.0.0.0
mpls-te enable
#
· Switch2:
[Switch2] display current-configuration
#
sysname Switch2
#
mpls lsr-id 2.2.2.2
#
vlan 1
#
vlan 12
#
vlan 23
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface NULL0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface Vlan-interface12
ip address 4.0.12.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface Vlan-interface23
ip address 4.0.23.2 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface GigabitEthernet9/0/1
port link-mode bridge
port access vlan 12
#
interface GigabitEthernet9/0/2
port link-mode bridge
port access vlan 23
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 4.0.12.2 0.0.0.0
network 4.0.23.2 0.0.0.0
mpls-te enable
#
· Switch3:
[Switch3] display current-configuration
#
sysname Switch3
#
mpls lsr-id 3.3.3.3
#
vlan 1
#
vlan 23
#
vlan 34
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface NULL0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface Vlan-interface23
ip address 4.0.23.3 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface Vlan-interface34
ip address 4.0.34.3 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface GigabitEthernet9/0/1
port link-mode bridge
port access vlan 23
#
interface GigabitEthernet9/0/2
port link-mode bridge
port access vlan 34
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 4.0.23.3 0.0.0.0
network 4.0.34.3 0.0.0.0
mpls-te enable
#
· Switch4:
[Switch4] display current-configuration
#
sysname Switch4
#
mpls lsr-id 4.4.4.4
#
vlan 1
#
vlan 14
#
vlan 34
#
mpls
mpls te
mpls rsvp-te
mpls te cspf
#
interface NULL0
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
interface Vlan-interface14
ip address 4.0.14.4 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface Vlan-interface34
ip address 4.0.34.4 255.255.255.0
mpls
mpls te
mpls rsvp-te
mpls rsvp-te bfd enable
#
interface GigabitEthernet9/0/1
port link-mode bridge
port access vlan 14
#
interface GigabitEthernet9/0/2
port link-mode bridge
port access vlan 34
#
ospf 1
opaque-capability enable
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 4.0.14.4 0.0.0.0
network 4.0.34.4 0.0.0.0
mpls-te enable
#
· 《H3C S12500系列路由交换机 MPLS配置指导》中的“MPLS TE”
· 《H3C S12500系列路由交换机 MPLS命令参考》中的“MPLS TE”
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!