雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1456|回复: 3

[讨论/求助] 策略路由中有路由却ping不通的问题

[复制链接]
发表于 2012-12-22 22:53:25 | 显示全部楼层 |阅读模式
今天做了耿叔的策略路由的综合实验,用gns3做得,我把r3的serial口down了之后,我查看各个路由器上的路由表,确认都有去往172.16.65.1的路由,并且有返回的路由,为什么我就是ping不通呢???
先来个拓扑图


配置在这里
R1
!
interface Loopback1
ip address 172.16.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
duplex auto
speed auto
!
router eigrp 100
network 172.16.0.0
network 192.168.12.0
no auto-summary
!

R2
!
interface Serial0/0
ip address 192.168.23.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
ip address 192.168.24.2 255.255.255.0
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 192.168.12.2 255.255.255.0
duplex auto
speed auto
!
router eigrp 100
redistribute rip metric 2000 100 255 1 1500
redistribute ospf 1 metric 2000 100 255 1 1500
network 192.168.12.0
no auto-summary
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute eigrp 100 subnets
network 192.168.24.2 0.0.0.0 area 0
!
router rip
version 2
redistribute eigrp 100 metric 1
network 192.168.23.0
no auto-summary


R3
!
interface Serial0/0
ip address 192.168.23.3 255.255.255.0
shutdown
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 192.168.100.3 255.255.255.0
duplex auto
speed auto
!
router rip
version 2
passive-interface FastEthernet1/0
network 192.168.23.0
network 192.168.100.0
neighbor 192.168.100.5
no auto-summary
!

R4
!
interface Loopback1
ip address 172.16.4.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.24.4 255.255.255.0
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 192.168.100.4 255.255.255.0
duplex auto
speed auto
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
redistribute static subnets
network 192.168.24.4 0.0.0.0 area 0
!
no ip http server
no ip http secure-server
!
ip forward-protocol nd
ip route 172.16.64.0 255.255.252.0 192.168.100.5


R5
!
interface Loopback1
ip address 172.16.65.1 255.255.255.0
!
interface Loopback2
ip address 172.16.66.1 255.255.255.0
!
interface Loopback3
ip address 172.16.67.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.100.5 255.255.255.0
duplex auto
speed auto
!
router rip
version 2
redistribute connected metric 1
passive-interface default
network 192.168.100.0
neighbor 192.168.100.3
no auto-summary
!
no ip http server
no ip http secure-server
!
ip forward-protocol nd
ip route 172.16.1.0 255.255.255.0 192.168.100.4 130
!
!

附上拓扑和配置的gns3导出文件  





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 发表于 2012-12-22 23:27:43 | 显示全部楼层
哪位大神帮我看一下问题在哪吧,困惑了我好久了,拜谢了
发表于 2012-12-23 01:13:13 | 显示全部楼层
你在R1上,如果使用扩展ping,以R1的loopback口为源即可ping通172.16.65.1
当你直接在R1上ping 172.16.65.1时,ICMP包源地址是172.16.12.1, 而R5上并没有172.16.12.0的路由,
因此肯定是ping不通的、
 楼主| 发表于 2012-12-23 13:36:56 | 显示全部楼层
tea 发表于 2012-12-23 01:13
你在R1上,如果使用扩展ping,以R1的loopback口为源即可ping通172.16.65.1
当你直接在R1上ping 172.16.65. ...

谢谢耿叔,果然是这样啊
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-12-22 13:24 , Processed in 0.082322 second(s), 19 queries , Gzip On.

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