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

[求助] CCNA实验---静态路由关闭proxy-arp(基于packet tracer 6.0)疑难问题?

[复制链接]
发表于 2014-10-17 11:53:53 | 显示全部楼层 |阅读模式
3鸿鹄币
本帖最后由 java510 于 2014-10-17 11:56 编辑

QQ图片20141017112844.jpg

拓扑图如上图,做静态路由实验,首先对R1添加静态路由
r1>enable
r1#configureterminal
Enterconfiguration commands, one per line. End with CNTL/Z.
r1(config)#iproute  2.2.2.0     255.255.255.0   12.1.1.2
r1(config)#iproute 23.1.1.0   255.255.255.0   13.1.1.3
r1(config)#ip  route  3.3.3.0 255.255.255.0  13.1.1.3
现在R1可以PING通 23.1.1.3 3.3.3.3,然后把r1(config)#ip route 23.1.1.0   255.255.255.0   13.1.1.3
改为r1(config)#ip  route  23.1.1.0  255.255.255.0  fastethernet 0/0,r1(config)#ip route 3.3.3.0   255.255.255.0   fastethernet 0/0;也就是把以太网那个网段的下一跳IP都改成本地路由接口。接着验证R1是否还可以PING通 23.1.1.3 3.3.3.3,结果是还PING的通。
下一步:R1
r1#show arp
Protocol |Address |Age(min) |Hardware Addr   Type   Interface
Internet  3.3.3.3     0   0001.C95A.4947  ARPA  FastEthernet0/0
Internet  13.1.1.1    -  0090.0C1D.E04B  ARPA   FastEthernet0/0
Internet  13.1.1.3    5  0001.C95A.4947  ARPA   FastEthernet0/0
Internet  23.1.1.3    3   0001.C95A.4947  ARPA  FastEthernet0/0
r1#clear  arp
关闭路由器R3的代理ARP
R3(config)#interface fastEthernet  0/0
R3(config-if)#no  ip  proxy-arp
在在验证R1   PING  23.1.1.3能否通?R1   PING  3.3.3.3能否通?现在按照教材上的结果应该是PING不同的,但是我在实验中依然可以PING通,于是我开始检查,用r1#show ip route,结果显示如下:

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [1/0] via 12.1.1.2
     3.0.0.0/24 is subnetted, 1 subnets
S       3.3.3.0 [1/0] via 13.1.1.3
                is directly connected, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, Serial2/0
     13.0.0.0/24 is subnetted, 1 subnets
C       13.1.1.0 is directly connected, FastEthernet0/0
     23.0.0.0/24 is subnetted, 1 subnets
S       23.1.1.0 [1/0] via 13.1.1.3
                 is directly connected, FastEthernet0/0
个人认为问题出在S       3.3.3.0 [1/0] via 13.1.1.3
                is directly connected, FastEthernet0/0
3.0.0.0/24 is subnetted, 1 subnets
S       23.1.1.0 [1/0] via 13.1.1.3
                 is directly connected, FastEthernet0/0
我觉得应该是显示S       3.3.3.0 [1/0]    FastEthernet0/0
               S         23.1.1.0 [1/0]  FastEthernet0/0
如果按照我预先的显示,只显示本地接口,不显示下一跳IP,那么肯定是应该PING不通的,我已经用r1(config)#ip  route  23.1.1.0  255.255.255.0  fastethernet 0/0覆盖了r1(config)#ip route 23.1.1.0   255.255.255.0   13.1.1.3为什么这个下一跳还显示在上面呢?求解答?????或者我是那个地方做错了呢??或者想错了??????

由于论坛要对图片打标记,把R3的LOOPBACK 0接口遮住了,这个接口的IP地址为3.3.3.3/24

最佳答案

查看完整内容

你版本的问题,我用GNS3做,不是这样的。 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 leve ...
发表于 2014-10-17 11:53:54 | 显示全部楼层
你版本的问题,我用GNS3做,不是这样的。
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

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [1/0] via 12.12.12.2
     3.0.0.0/24 is subnetted, 1 subnets
S       3.3.3.0 is directly connected, FastEthernet1/0
     23.0.0.0/24 is subnetted, 1 subnets
S       23.23.23.0 is directly connected, FastEthernet1/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, FastEthernet1/0
沙发 2014-10-17 11:53:54 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-10-18 21:33:53 | 显示全部楼层
xiaohaozi0 发表于 2014-10-18 17:38
你版本的问题,我用GNS3做,不是这样的。
R1#show ip route
Codes: C - connected, S - static, R - RIP ...

解决了哈,谢谢,原来问题是这样子的,如下:
开始的设置是
r1(config)#ip route 23.1.1.0   255.255.255.0   13.1.1.3
r1(config)#ip  route  3.3.3.0  255.255.255.0  13.1.1.3
我直接在此基础上输入:
r1(config)#ip  route  23.1.1.0  255.255.255.0   fastethernet 0/0
r1(config)#ip  route  3.3.3.0   255.255.255.0   fastethernet 0/0
相当于在RI的路由表中为3.3.3.0这个网络即添加了下一跳也添加了本路由器的接口,两者可以并存,并不是我想象的二者不相容,后一条会覆盖前一条。
解决的办法是先输入:r1(config)#no  ip  route  3.3.3.0  255.255.255.0  13.1.1.3  把下一跳清除掉,然后添加
r1(config)#ip  route  3.3.3.0   255.255.255.0   fastethernet 0/0就可以得到想要的结果了
板凳 2014-10-18 21:33:53 回复 收起回复
回复

使用道具 举报

发表于 2014-10-25 12:30:28 | 显示全部楼层
地板 2014-10-25 12:30:28 回复 收起回复
回复

使用道具 举报

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

本版积分规则

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

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

  Powered by Discuz!

  © 2001-2025 HH010.COM

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