华为认证-高可靠性IP-Link技术( 二 )


[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状态 , 进入路由表





推荐阅读