一台路由器到目的网络有多跳等价路由时,如果配置多跳静态等价路径则比较复杂。可配置到下一跳路由器LOOPBACK地址的多跳静态等价路径,然后目标网络下一跳配置为该loopback地址,通过路由递归查找最终等价到多跳路径上。此方法可配置较少的路由条目,控制loopback地址的均衡即可控制其他路由的均衡。确定是不能对每条路由做单独设置,配置较简单,缺乏灵活。
r1#show ip int brief
Interface IP-Address OK? Method Status Protocol
Serial0/0 10.0.1.1 YES manual up up
Serial0/1 10.0.1.5 YES manual up up
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
Ethernet1/0 unassigned YES unset administratively down down
Ethernet1/1 unassigned YES unset administratively down down
Ethernet1/2 unassigned YES unset administratively down down
Ethernet1/3 unassigned YES unset administratively down down
Loopback0 10.0.0.1 YES manual up up
r1#show ip rou
r1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, 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, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
S 10.0.0.2/32 [1/0] via 10.0.1.6
[1/0] via 10.0.1.2
S 10.0.0.3/32 [1/0] via 10.0.0.2
C 10.0.1.0/30 is directly connected, Serial0/0
C 10.0.0.1/32 is directly connected, Loopback0
C 10.0.1.4/30 is directly connected, Serial0/1
r1#
ip route 10.0.0.2 255.255.255.255 10.0.1.2
ip route 10.0.0.2 255.255.255.255 10.0.1.6
ip route 10.0.0.3 255.255.255.255 10.0.0.2
r1#traceroute 10.0.0.3 source 10.0.0.1
Type escape sequence to abort.
Tracing the route to 10.0.0.3
1 10.0.1.6 48 msec
10.0.1.2 96 msec
10.0.1.6 64 msec
2 10.0.2.2 76 msec * 92 msec
r1#
阅读(1952) | 评论(0) | 转发(0) |