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

[已解决] 关于默认路由的各种疑问???为什么不通啊???

[复制链接]
发表于 2012-8-18 20:26:42 | 显示全部楼层 |阅读模式
有一个疑问,为什么R1 ping 不通 R4的接口IP 3.3.3. 3??比较奇怪的居然能PING 通3.3.3.1
这个实验是做的默认路由

连接图 : 1.1.1.1(R1)  -- 1.1.1.2 (R2)
                 2.2.2.1(R2) -- 2.2.2. 2(R3)
                3.3.3.1(R3)--- 3.3.3.3 (R4)

测试结果如下:

R1#ping 3.3.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/48/116 ms
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)


各路由器 路由表如下:
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 1.1.1.2 to network 0.0.0.0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial0/0
S*   0.0.0.0/0 [1/0] via 1.1.1.2

R2#sh 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 2.2.2.2 to network 0.0.0.0
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial0/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial0/1
S*   0.0.0.0/0 [1/0] via 2.2.2.2
               [1/0] via 1.1.1.1

R3#sh 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 3.3.3.3 to network 0.0.0.0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial0/1
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Serial0/0
S*   0.0.0.0/0 [1/0] via 3.3.3.3
               [1/0] via 2.2.2.1

R4#sh 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 3.3.3.1 to network 0.0.0.0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Serial0/0
S*   0.0.0.0/0 [1/0] via 3.3.3.1








拓扑图

拓扑图
 楼主| 发表于 2012-8-18 20:33:19 | 显示全部楼层
在线跪求真相~~~~~~~~~~~~~~~~~~
沙发 2012-8-18 20:33:19 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-8-18 20:37:19 | 显示全部楼层
看看配置文件
板凳 2012-8-18 20:37:19 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-8-18 20:48:30 | 显示全部楼层
R3上没有去往1.1.1.1的路由,在R3上添加一条静态路由:
ip route 1.1.1.1 255.255.255.255 2.2.2.1
应该就可以了
地板 2012-8-18 20:48:30 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-18 21:24:52 | 显示全部楼层
ziyouhaiyang 发表于 2012-8-18 20:48
R3上没有去往1.1.1.1的路由,在R3上添加一条静态路由:
ip route 1.1.1.1 255.255.255.255 2.2.2.1
应该就 ...

和这个没关系 我试了 不行。。。
5# 2012-8-18 21:24:52 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-18 21:25:43 | 显示全部楼层
继续啊~~~~~~~~~~~~~
6# 2012-8-18 21:25:43 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-8-18 21:26:40 | 显示全部楼层
默认路由是吧
7# 2012-8-18 21:26:40 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-8-18 22:43:11 | 显示全部楼层
在r3上掉包了! 包可以到达r4 但是在回包的时候掉包了! 在r3 r2 上做一条静态! 你可以在r4上debug        看一下!你看下包的走向!
8# 2012-8-18 22:43:11 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2012-8-18 22:44:32 | 显示全部楼层
另外楼主你出了个很大的问题! 只能在边界下放默认路由! 你这样会出很大的问题的! 因为有两个默认的时候你猜他会走那条里! 所以你这个文档的网络设计也存在问题!
9# 2012-8-18 22:44:32 回复 收起回复
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-4-30 11:26 , Processed in 0.262279 second(s), 29 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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