配置主、备CR-LSP使用的显式路径 [LSR1]explicit-path pp1 //配置主CR-LSP使用的显式路径 [LSR1-explicit-path-pp1]next hop 20.1.1.2 [LSR1-explicit-path-pp1]next hop 20.2.1.3 [LSR1-explicit-path-pp1]next hop 3.3.3.3 [LSR1]explicit-path bp1 //配置备份CR-LSP使用的显式路径 [LSR1-explicit-path-bp1]next hop 20.4.1.4 [LSR1-explicit-path-bp1]next hop 20.6.1.3 [LSR1-explicit-path-bp1]next hop 3.3.3.3
配置隧道接口 [LSR1]int Tunnel 0/0/1 [LSR1-Tunnel0/0/1]ip address unnumbered interface LoopBack 0 [LSR1-Tunnel0/0/1]tunnel-protocol mpls te [LSR1-Tunnel0/0/1]destination 3.3.3.3 [LSR1-Tunnel0/0/1]mpls te tunnel-id 100 [LSR1-Tunnel0/0/1]mpls te record-route [LSR1-Tunnel0/0/1]mpls te path explicit-path pp1 //指定显式路径 [LSR1-Tunnel0/0/1]mpls te backup hot-standby wtr 15 //配置CR-LSP热备份,回切时间为15秒 [LSR1-Tunnel0/0/1]mpls te path explicit-path bp1 secondary //指定备份显式路径 [LSR1-Tunnel0/0/1]mpls te backup ordinary best-effort //配置逃生路径 [LSR1-Tunnel0/0/1]mpls te commit
在入节点配置动态BFD for CR-LSP:在入节点配置动态BFD for CR-LSP功能,指定本地发送BFD报文的时间间隔和允许接收的时间间隔为500毫秒,BFD本地检测倍数为3 [LSR1]bfd [LSR1]int Tunnel 0/0/1 [LSR1-Tunnel0/0/1]mpls te bfd enable [LSR1-Tunnel0/0/1]mpls te bfd min-rx-interval 500 min-tx-interval 500 detect-multiplier 3 [LSR1-Tunnel0/0/1]mpls te commit