[FW] ip route-static 0.0.0.0 0.0.0.0 10.10.1.2 track ip-link test1[FW] ip route-static 0.0.0.0 0.0.0.0 10.10.1.3 preference 70 track ip-link test2结果验证以下验证过程在FW上进行 。
在FW和两个路由器之间的链接都正常时 , 执行命令display ip-link , 发现连接正常
[FW] display ip-linkCurrent Total Ip-link Number : 2Name Member State Up/Down/Inittest1 1 up 1 0 0test2 1 up 1 0 0此时执行命令display ip routing-table , 发现进入路由表的缺省路由为到Router 1的路由
[FW] display ip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: PublicDestinations : 8 Routes : 8Destination/Mask Proto Pre Cost Flags NextHop Interface0.0.0.0/0 Static 60 0 RD 10.10.1.2 GigabitEthernet0/0/1127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack010.10.1.0/24 Direct 0 0 D 10.10.1.1 GigabitEthernet0/0/110.10.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0192.168.1.0/24 Direct 0 0 D 192.168.1.1 GigabitEthernet0/0/2192.168.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0执行命令display ip routing-table verbose , 可以查看到如下表项
[FW] display ip routing-table verboseRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: PublicDestinations : 8 Routes : 8Destination: 0.0.0.0/0Protocol: Static Process ID: 0Preference: 60 Cost: 0NextHop: 10.10.1.2 Neighbour: 0.0.0.0State: Active Adv Relied Age: 00h03m29sTag: 0 Priority: 0Label: NULL QoSInfo: 0x0IndirectID: 0x80000004RelayNextHop: 0.0.0.0 Interface: GigabitEthernet0/0/1TunnelID: 0x0 Flags: RDDestination: 0.0.0.0/0Protocol: Static Process ID: 0Preference: 70 Cost: 0NextHop: 10.10.1.3 Neighbour: 0.0.0.0State: Inactive Adv Relied Age: 00h00m08sTag: 0 Priority: 0Label: NULL QoSInfo: 0x0IndirectID: 0x80000005RelayNextHop: 0.0.0.0 Interface: GigabitEthernet0/0/1TunnelID: 0x0 Flags: R以上结果说明 , 在两条链路都正常的情况下 , 由于到10.10.1.2的路由优先级为60 , 因而为Active状态 , 进入路由表成为当前路由 , 到10.10.1.3的路由优先级为70 , 因而成为备份路由 , 为Inactive状态 , 没有进入路由表
当Router 1的链路出现故障时 , 执行命令display ip-link , 发现到10.10.1.2的IP-Link状态为down
[FW] display ip-linkCurrent Total Ip-link Number : 2Name Member State Up/Down/Inittest1 1 down 0 1 0test2 1 up 1 0 0此时执行命令display ip routing-table , 发现进入路由表的缺省路由为到Router 2的路由
[FW] display ip routing-tableRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: PublicDestinations : 8 Routes : 8Destination/Mask Proto Pre Cost Flags NextHop Interface0.0.0.0/0 Static 70 0 RD 10.10.1.3 GigabitEthernet0/0/1127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack010.10.1.0/24 Direct 0 0 D 10.10.1.1 GigabitEthernet0/0/110.10.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0192.168.1.0/24 Direct 0 0 D 192.168.1.1 GigabitEthernet0/0/2192.168.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0执行命令display ip routing-table verbose , 可以查看到如下表项
[FW] display ip routing-table verboseRoute Flags: R - relay, D - download to fib------------------------------------------------------------------------------Routing Tables: PublicDestinations : 8 Routes : 8Destination: 0.0.0.0/0Protocol: Static Process ID: 0Preference: 70 Cost: 0NextHop: 10.10.1.3 Neighbour: 0.0.0.0State: Active Adv Relied Age: 00h00m08sTag: 0 Priority: 0Label: NULL QoSInfo: 0x0IndirectID: 0x80000004RelayNextHop: 0.0.0.0 Interface: GigabitEthernet0/0/1TunnelID: 0x0 Flags: RDestination: 0.0.0.0/0Protocol: Static Process ID: 0Preference: 60 Cost: 0NextHop: 10.10.1.2 Neighbour: 0.0.0.0State: Invalid Adv Relied Age: 00h03m29sTag: 0 Priority: 0Label: NULL QoSInfo: 0x0IndirectID: 0x80000005RelayNextHop: 0.0.0.0 Interface: GigabitEthernet0/0/1TunnelID: 0x0 Flags: RD以上结果说明 , 当到10.10.1.2的链路出现故障的情况下 , IP-Link状态为Down , 因而到10.10.1.2的路由被置为Invalid状态 。到10.10.1.3的路由优先级为70 , 被置为Active状态 , 进入路由表
推荐阅读
- 5G时代-WebRTC音视频高级开发
- 华为手机维修 华为Nova5高级维修手册
- 华为手机EMUI系统升级后,出现了卡顿现象,应该怎么办呢?
- 梦见水从高处流下来自己避开了 女人梦见水从高处流下来
- 立冬时节当心三类高发疾病 专家教你养生小窍门
- 华为平板电脑哪款性价比最好2020 2020苹果平板电脑性价比最高的一款
- 冬季是糖尿病高发期 切不可掉以轻心
- 华为最实惠性价比最高手机 华为低价位性价比最高的手机
- 糖尿病人能喝茶吗?我原来就经常喝绿茶,现在血糖高,喝茶可以吗?[绿茶]
- 库存回收网 高价回收平台
