请问,静态路由是如何选路的
求教 配置的静态路由R1 到R6应该会怎么选择第一次ping会出现如下情况 为什么 后来又出现了丢包
另初次traceroute 的时候走的是R3再之后就一只走R4了 R4 --R5 用的45.45.45.0 /24 这要看你怎么指的静态路由,静态路由是比较SB的,你怎么写,它数据就怎么发 R2
R2(config)#ip route 56.56.56.0 255.255.255.0 23.23.23.3
R2(config)#ip route 56.56.56.0 255.255.255.0 24.24.24.4
R3
R3(config)#ip route 12.12.12.0 255.255.255.0 f0/0
R3(config)#ip route 56.56.56.0 255.255.255.0 f1/0
R4
R4(config)#ip route 12.12.12.0 255.255.255.0 f0/0
R4(config)#ip route 56.56.56.0 255.255.255.0 f1/0
R5
R5(config)#ip route 12.12.12.0 255.255.255.0 35.35.35.3
R5(config)#ip route 12.12.12.0 255.255.255.0 45.45.45.4
Traceroute 第一次 走的是R3 之后每次就都走 R4了为什么.. 解答:
首先先说下去往目的地的选路原则:
1.先取最长掩码匹配
2.当同网段的时,但有从不同协议学习到路由条目,会比较协议的AD值,越小越好。
3.当AD值一样时,就比较metric值,若metric值越小路径就越好。若metric值相等的话,就会实现负载均衡。
上题中是有两条去往R6的静态路由条目,此时AD值都为1,metric都为0,所以此时会出现负载均衡,就会产生有的数据往一边路径走,有些数据会往另一边路径走。 子杰 发表于 2012-11-14 10:31 static/image/common/back.gif
解答:
首先先说下去往目的地的选路原则:
1.先取最长掩码匹配
静态路由会实现负载均衡吗?如何去验证呢
只知道 浮动静态 用来冗余备份
本帖最后由 紫川凌 于 2012-11-14 10:49 编辑
走的是负载均衡的你可以用扩展ping来检测
R1#ping
Protocol :
Target IP address: 56.56.56.6
Repeat count :
Datagram size :
Timeout in seconds :
Extended commands : y
Source address or interface:
Type of service :
Set DF bit in IP header? :
Validate reply data? :
Data pattern :
Loose, Strict, Record, Timestamp, Verbose: record
Number of hops [ 9 ]:
Loose, Strict, Record, Timestamp, Verbose:
Sweep range of sizes :
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 56.56.56.6, timeout is 2 seconds:
Packet has IP options:Total option bytes= 39, padded length=40
Record route: <*>
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
Request 0 timed out
Reply to request 1 (128 ms).Received packet has options
Total option bytes= 40, padded length=40
Record route:
(12.12.12.1)
(24.24.24.2)
(45.45.45.4)
(56.56.56.5)
(56.56.56.6)
(56.56.56.6)
(45.45.45.5)
(24.24.24.4)
(12.12.12.2)
<*>
走的是R1-R2-R4-R5-R6
End of list
Reply to request 2 (116 ms).Received packet has options
Total option bytes= 40, padded length=40
Record route:
(12.12.12.1)
(23.23.23.2)
(35.35.35.3)
(56.56.56.5)
(56.56.56.6)
(56.56.56.6)
(35.35.35.5)
(23.23.23.3)
(12.12.12.2)
<*>
这次走的是R1-R2-R3-R5-R6
End of list
Reply to request 3 (84 ms).Received packet has options
Total option bytes= 40, padded length=40
Record route:
(12.12.12.1)
(24.24.24.2)
(45.45.45.4)
(56.56.56.5)
(56.56.56.6)
(56.56.56.6)
(45.45.45.5)
(24.24.24.4)
(12.12.12.2)
<*>
End of list
Reply to request 4 (72 ms).Received packet has options
Total option bytes= 40, padded length=40
Record route:
(12.12.12.1)
(23.23.23.2)
(35.35.35.3)
(56.56.56.5)
(56.56.56.6)
(56.56.56.6)
(35.35.35.5)
(23.23.23.3)
(12.12.12.2)
<*>
End of list
Success rate is 80 percent
*Mar1 00:16:40.891: ICMP: echo reply rcvd, src 56.56.56.6, dst 12.12.12.1
*Mar1 00:16:41.015: ICMP: echo reply rcvd, src 56.56.56.6, dst 12.12.12.1
*Mar1 00:16:41.103: ICMP: echo reply rcvd, src 56.56.56.6, dst 12.12.12.1
*Mar1 00:16:41.175: ICMP: echo reply rcvd, src 56.56.56.6, dst 12.12.12.1(4/5), round-trip min/avg/max = 72/100/128 ms
R1# 辛苦了..谢谢 谢谢.. 晓得了.最后的结论. 不知道对不对了.
不能算做负载均衡吧.
R1到R6 发送的数据包是沿着一条路径走的 数据并没有分发.而返回的路径是从另一条路径返回.
这算什么? 双开道吗?-lol-
页:
[1]
2