锐捷网管交换机快速重路由配置举例

一、组网需求
Device A,Device B和Device C通过静态路由实现互联,Device A默认通过Device C访问Host C。以防Device A和Device C的链路故障,配置快速重路由,在链路故障时能够快速切换至备份链路。

二、 组网图
快速重路由配置组网图
三、配置要点
● 在Device A上配置到达Host C网段的静态路由,出接口下一跳指向Device C。
● 在Device A上配置静态快速重路由,备份路由出接口下一跳指向Device B。

四、 配置步骤
(1) 配置路由器IP地址。
(2) 配置静态路由,使各主机网络互通(略)。
(3) 配置路由图,设置备份路由出接口下一跳指向Device B。
Device A> enable
Device A# configure terminal
Device A(config)# route-map fast-reroute
Device A(config-route-map)# set fast-reroute backup-interface gigabitethernet 0/2 backup-nexthop 1.1.12.2

(4) 配置静态快速充路由。
Device A(config-route-map)# exit
Device A(config)# ip fast-reroute static route-map fast-reroute

五. 验证配置结果
# 显示Device A上的主备路由。
Device A# show ip route fast-reroute
Codes: C – connected, S – static, R – RIP, B – BGP
O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default
Status codes: m – main entry, b – backup entry, a – active entry
Gateway of last resort is no set
S 1.1.3.0 /24 [ma] via 1.1.13.3, GigabitEthernet 0/3
[b] via 1.1.12.2, GigabitEthernet 0/2

六、配置文件
●Device A的配置文件。
!
route-map fast-reroute
set fast-reroute backup-interface gigabitethernet 0/2 backup-nexthop 1.1.12.2
!
ip fast-reroute static route-map fast-reroute
!

七、常见错误
● 接口链路没有Up。
● 未配置静态路由。
● 路由图中未设置match匹配条件,或设置错误。

ICP备案号:晋ICP备18007549号-1
站长微信:13613567205