MPLS TE FRR链路保护配置方法

 
实验拓扑如图,共 5 台路由器。各路由器的 loopback 0 地址为路由器号 1.1.1.1 2.2.2.2 等。路由器之间的网段 ip 为二者路由器号,如 R1 R2 之间的 ip 编址为 12.0.0.0/24 R3 R5 之间的网段 ip 编址为 35.0.0.0/24 。主 TE 隧道已建好,为红色表示。
下面要对 R2 R3 之间的链路进行保护,准备新建一条备份隧道绕过被保护链路。注意,被保护链路两端都为 POS 口,主要是想使用 POS 口的告警机制。
 
实施步骤:
1、  在主 LSP 头端,即 R1 上配置,告知主 LSP 可使用 fast-reroute
int tun 0
tunnel mpls traffic-eng fast-reroute
 
2、  在本地修复点( PLR ),即 R2 上配置一条备份 LSP ,目标地址为 R3
   interface Tunnel1
 ip unnumbered Loopback0
 no ip directed-broadcast
 tunnel destination 3.3.3.3
 tunnel mode mpls traffic-eng
 tunnel mpls traffic-eng priority 7 7
 tunnel mpls traffic-eng bandwidth  20000
 tunnel mpls traffic-eng path-option 10 explicit name bbb
 
3 、然后在 R2 定义此显式路径绕过 R2 的被保护接口 P2/0
ip explicit-path name bbb enable
 exclude-address 23.0.0.2
 
4 、告知 R2 的被保护接口 P2/0 有可用的备份 LSP
int P2/0
mpls traffic-eng backup-path Tunnel1
 
5 、配置链路失效检测,在 R2 R3 p2/0 口配置 Rsvp hello pos 报警
R2 config #ip rsvp signalling hello (先全局启用 rsvp hello
Int p2/0        (接口启用 rsvp hello
ip rsvp signalling hello
pos ais-shut     (这两条是配置 pos 的警报发送)
pos report all
R3 做同样配置
最后查看:
在被保护链路正常的情况下, R2 显示 FRR 状态为 ready
r2#sh mpls traffic-eng fast-reroute database
LSP midpoint item frr information:
LSP identifier                In-label Out intf/label   FRR intf/label   Status
1.1.1.1 0 [95]                16       PO2/0:16         Tu1:16           ready
关闭 R3 P2/0 口后再看,变成了 active
 r2#sh mpls traffic-eng fast-reroute database
LSP midpoint item frr information:
LSP identifier                In-label Out intf/label   FRR intf/label   Status
1.1.1.1 0 [23]                16       PO2/0:16         Tu1:16           active
 
6 、注意事项
   备份 LSP 所经过的接口保留的带宽不可低于主 LSP 请求的带宽,否则 FRR 不成功。具体到本实验中就是 R2 f1/0 R5 f1/1 接口保留带宽不得低于 20000
7 FRR 的节点保护配置跟这个类似,就是备份 LSP 的目的地址要在被保护节点之后,且显式路径要绕过被保护节点。
一些有用的命令:
show mpls traffic-eng fast-reroute database
show ip rsvp sender detail
debug ip rsvp path detail
show mpls traffic-eng tunnels
 
 

你可能感兴趣的:(配置,TE,链路,MPLS,FRR)