设为首页收藏本站language 语言切换
查看: 2410|回复: 6
收起左侧

[求助] 请帮忙看下为什么我的浮动路由起不来?

[复制链接]
发表于 2014-8-1 10:43:23 | 显示全部楼层 |阅读模式
3鸿鹄币
需求是R2接口down掉后,走R3

浮动路由拓扑.jpg

R1

R1#sh running-config
Building configuration...

Current configuration : 852 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface FastEthernet1/0
ip address 100.1.1.1 255.255.255.0
duplex half
!
ip classless
ip route 10.0.1.0 255.255.255.0 100.1.1.2
ip route 10.1.0.0 255.255.255.0 100.1.1.2
ip route 10.2.0.0 255.255.255.0 100.1.1.2
ip route 10.3.0.0 255.255.255.0 100.1.1.2
ip route 200.2.2.0 255.255.255.0 100.1.1.2
ip route 200.2.2.0 255.255.255.0 100.1.1.3 50
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!
!
end



R2

R2#sh running-config
*Aug  1 10:32:43.031: %SYS-5-CONFIG_I: Configured from console by console
R2#sh running-config
Building configuration...

Current configuration : 784 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 200.2.2.2 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 100.1.1.2 255.255.255.0
shutdown
duplex half
!
ip classless
ip route 10.0.1.0 255.255.255.0 200.2.2.4
ip route 10.1.1.0 255.255.255.0 200.2.2.4
ip route 10.2.1.0 255.255.255.0 200.2.2.4
ip route 10.3.1.0 255.255.255.0 200.2.2.4
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!
!
end



R3

R3#sh running-config
Building configuration...

Current configuration : 774 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 200.2.2.3 255.255.255.0
duplex half
!
interface FastEthernet1/0
ip address 100.1.1.3 255.255.255.0
duplex half
!
ip classless
ip route 10.0.1.0 255.255.255.0 200.2.2.4
ip route 10.1.1.0 255.255.255.0 200.2.2.4
ip route 10.2.1.0 255.255.255.0 200.2.2.4
ip route 10.3.1.0 255.255.255.0 200.2.2.4
no ip http server
!
!
!
!
!
!
!
!
!
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!
!
end



R4

R4#sh running-config
Building configuration...

Current configuration : 912 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 10.0.1.4 255.255.255.0
!
interface Loopback1
ip address 10.1.1.4 255.255.255.0
!
interface Loopback2
ip address 10.2.1.4 255.255.255.0
!
interface Loopback3
ip address 10.3.1.4 255.255.255.0
!
interface FastEthernet0/0
ip address 200.2.2.4 255.255.255.0
duplex half
!
interface FastEthernet1/0
no ip address
shutdown
duplex half
!
ip classless
ip route 100.1.1.0 255.255.255.0 200.2.2.2
ip route 100.1.1.0 255.255.255.0 200.2.2.3 50
no ip http server
!
!
!
!
!
!
!
!
!         
gatekeeper
shutdown
!
!
line con 0
exec-timeout 0 0
logging synchronous
stopbits 1
line aux 0
stopbits 1
line vty 0 4
!
!
end


最佳答案

查看完整内容

你这全网跑静态还怎么浮动啊,AD、Metric都一样没法浮动,R1从R2、R3收到R4网段的路由条目都是一样的,当然没法浮动了。
发表于 2014-8-1 10:43:24 | 显示全部楼层
你这全网跑静态还怎么浮动啊,AD、Metric都一样没法浮动,R1从R2、R3收到R4网段的路由条目都是一样的,当然没法浮动了。
沙发 2014-8-1 10:43:24 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-8-1 12:35:00 | 显示全部楼层
嚣张靓仔 发表于 2014-8-1 11:20
你这全网跑静态还怎么浮动啊,AD、Metric都一样没法浮动,R1从R2、R3收到R4网段的路由条目都是一样的,当然 ...

http://wenku.baidu.com/link?url= ... rM8brsxd0P_GSHazp5O

百度文库中的这个例子,为什么全网静态不能跑浮动呢?

另外文库中的这个例子,为什么R1的F0/0断了,备份线路能起,但是R2的F0/0断了却不能起呢?

另外,按照实验结果来看,虽然备份线路起来了,但是R1依然ping不通R4的lookback接口啊!
板凳 2014-8-1 12:35:00 回复 收起回复
回复

使用道具 举报

 成长值: 51230
发表于 2014-8-1 12:44:41 | 显示全部楼层
这个拓扑有问题啊,你这样是没法实现浮动路由的
浮动路由是仅当AD值更优的那条路由DOWN掉以后才会出现
你现在这个拓扑,R2的接口DOWN掉,AD更优的那条路由根本就不会DOWN掉
因为这条路由依旧存在,所以路由器依旧会把数据包发送给100.1.1.2,这样的结果就是数据黑洞

如果你想实现浮动路由,去掉那个交换机吧。
此时再DOWN掉R2的接口,R1这条链路也会DOWN掉,所以就能发现这条路由出现问题了


本来打了好多字,包括怎么查找路由表怎么发包,后来发现还是上面几句话管用。。又给删了~~~
地板 2014-8-1 12:44:41 回复 收起回复
回复

使用道具 举报

发表于 2014-8-1 16:19:35 | 显示全部楼层
这是很经典的题目,有中间的交换机存在的话,会导致R1的静态路由无法感知R3的接口down了,可以通过配置cef或者是cisco的IP SLA来动态检测
5# 2014-8-1 16:19:35 回复 收起回复
回复

使用道具 举报

发表于 2014-8-3 11:54:08 | 显示全部楼层
你要浮动的是这个呗?
ip route 200.2.2.0 255.255.255.0 100.1.1.2
ip route 200.2.2.0 255.255.255.0 100.1.1.3 50
模拟路由器的过程,2条相同网段静态,第一条AD默认1,第二条AD50,所以第一条装表。
R1端口down,第一条静态的下一跳不可达,失效,第二条装表。
R2端口down,没有任何影响。
去掉交换机貌似也不行吧,GNS3的隐藏着hub,直连以太口down,也不会感知,印象中是,换S口做吧,原理都是一样的。
当然也可以加入ip sla监测机制来完善,而实际一般都要做ip sla的。
6# 2014-8-3 11:54:08 回复 收起回复
回复

使用道具 举报

发表于 2014-8-3 14:33:29 | 显示全部楼层
其实这个问题的关键在于存在中间的交换机,但在模拟器中即使不存在交换机,也是不会切换的,除非使用串行链路。GNS3中的快速以太网接口不像真实环境中,一根线的一端down掉,另一端也down了。这是根本原因
7# 2014-8-3 14:33:29 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-9 08:14 , Processed in 0.065919 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表