CCNA标准实验08RIP的有类和无类_第1页
CCNA标准实验08RIP的有类和无类_第2页
CCNA标准实验08RIP的有类和无类_第3页
CCNA标准实验08RIP的有类和无类_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、CCNA标准实验08RIP有类和无类拓扑图192. 188.1.2/24192 iae 2 a/ztloopback 1 1_ 1.loopback 1 1. 1.2. 1/24在路由器R1上的配置Routere nRouter#c onf tEnd with CNTL/Z.En ter con figurati on comma nds, one per line.Router(c on fig)#host name ccnalccn a1(c on fig)#li ne con sole 0ccn a1(c on fig-l in e)#execcn a1(c on fig-l in e)

2、#exec-timeout 0 ?0-2147483Timeout in seco ndsccn a1(c on fig-l in e)#exec-timeout 0 0ccn a1(c on fig-li ne)#loggi ng syccn a1(c on fig-li ne)#loggi ng synchronousccn a1(c on fig-l in e)#exitccn a1(c on fig)#e nable secret ciscoccn a1(c on fig)# int loopback 1 %LINK-5-CHANGED: In terface Loopbackl, c

3、hanged state to up%LINEPROTO-5-UPDOWN: Line protocol on In terface Loopbackl, chan ged state to upccn a1(c on fig-if)#ccna1(config-if)#ip address 1.1.1.1 255.255.255.0ccn a1(c on fig-if)#exitccn a1(co nfig)#i nt s1/0ccna1(config-if)#ip address 192.168.1.1 255.255.255.0ccna1(config-if)#clock rate 640

4、00ccn a1(c on fig-if)# no shutdow n%LINK-5-CHANGED: In terface Serial1/0, cha nged state to dow nccn a1(c on fig-if)#descripti on this pot is connecting to R2ccn a1(c on fig-if)#exitccn a1(c on fig)#router ripccn a1(c on fig-router)#autoccna1(config-router)#auto-summary ccna1(config-router)#network

5、1.1.1.0 ccna1(config-router)#network 192.168.1.0 ccna1(config-router)#exit ccna1(config)#在路由器 R2 上的配置RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname ccna2 ccna2(config)#enable secret cisco ccna2(config)#line console 0 ccna2(config-line)#loggi

6、ng sychronousA% In valid in put detected at A marker.ccna2(config-line)#logging synchronous ccna2(config-line)#execccna2(config-line)#exec-timeout 0 0 ccna2(config-line)#exitccna2(config)#int s1/0 ccna2(config-if)#ip address 192.168.1.2 255.255.255.0 ccna2(config-if)#no shutdown%LINK-5-CHANGED: Inte

7、rface Serial1/0, changed state to up ccna2(config-if)#ccna2(config-if)#exit ccna2(config)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upccna2(config)#int s1/1 ccna2(config-if)#ip address 192.168.2.1 255.255.255.0ccna2(config-if)#clock rate 64000 ccna2(config-if)#no s

8、hutdown%LINK-5-CHANGED: Interface Serial1/1, changed state to down ccna2(config-if)#exitccna2(config)#router rip ccna2(config-router)#au ccna2(config-router)#network 192.168.1.0 ccna2(config-router)#network 192.168.2.0 ccna2(config-router)#exitccna2(config)#在路由器 R3 上的配置 Routeren Router#conf tEnter c

9、onfiguration commands, one per line. End with CNTL/Z. Router(config)#hostname ccna3 ccna3(config)#enable secret cisco ccna3(config)#line console 0 ccna3(config-line)#exe ccna3(config-line)#exec-timeout 0 0 ccna3(config-line)#logging synchronous ccna3(config-line)#exit ccna3(config)#int s1/0ccna3(con

10、fig-if)#ip address 192.168.2.2 255.255.255.0 ccna3(config-if)#no shutdownccna3(config-if)# %LINK-5-CHANGED: Interface Serial1/0, changed state to upccna3(config-if)#exit ccna3(config)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upccna3(config)#int loopback 1%LINK-5-C

11、HANGED: Interface Loopback1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up ccna3(config-if)#ccna3(config-if)#ip address 1.1.2.1 255.255.255.0 ccna3(config-if)#exitccna3(config)#router rip ccna3(config-router)#au ccna3(config-router)#network 192.168

12、.2.0 ccna3(config-router)#network 1.1.2.0 ccna3(config-router)#exit ccna3(config)#R3ping R1 的 loopback 1ccna3# ccna3#ping 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:Success rate is 0 percent (0/5) ccna3#R1pingR3的 loopback 1 口ccna1#ping 1.1.2.

13、1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.2.1, timeout is 2 seconds:Success rate is 0 percent (0/5)ccna1#R2pingR1 的 loopback 1 口ccna2#ping 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:U!.!USuccess rate is 40 percent (

14、2/5), round-trip min/avg/max = 20/40/20 msccna2#R2ping R3的 loopback 1 口ccna2#ping 1.1.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.2.1, timeout is 2 seconds:U!.!USuccess rate is 40 percent (2/5), round-trip min/avg/max = 20/45/30 msccna2#配置完成后 ,我在路由器模拟器上进行实验 ,但发现模拟器无论是从 R3p

15、ingR1 的 lo1 口还是 R1pingR3的lol 口都不能Ping通,我换到R2继续PingR1的lol 口或是R3的lol 口都能全部 Ping 通,原因:因为使用了 RIP路由,RIP默认启用版本1是有类路由,当R1发现1.0.0.0和192.168.1.0 不是同类网段 ,会进行汇总 ,告诉 R2 自己汇总的路由 ,这样 R2 会知道 R1 有 1.0.0.0 和 192.168.1.0 两个网段 ,而 R3 也是同样原因告诉 R2 自己 1.0.0.0 和 192.168.2.0 两个网段 ,这时 候R2会知道R1和R3同时拥有1.0.0.0网段,所以无论是pingl.1.1.

16、1还是ping1.1.2.1会一个 包发向R1下一个包就会发向 R3,所以会出现一个包通,另一个包不通的结果.而 R1 无法拼通 1.1.2.1 是因为 ,R1 看自己的汇总路由发现这个地址就是在自己的网段里 , 解决方法,把 RIP修改为版本2,关闭自动汇总。如下图:在路由器 R1 上修改: ccna1(config)#router rip ccna1(config-router)#version 2 ccna1(config-router)#no auto-summary ccna1(config-router)# ccna1(config)#在路由器 R2 上的修改 ccna2#conf

17、 tEnter configuration commands, one per line. End with CNTL/Z. ccna2(config)#router rip ccna2(config-router)#version 2 ccna2(config-router)#no auto-summaryccna2(config-router)#exit ccna2(config)# 在路由器 R3 上的配置ccna3#conf tEnter configuration commands, one per line. End with CNTL/Z. ccna3(config)#router ripccna3(config-router)#version 2 ccna3(config-router)#no auto-summary ccna3(config-router)#exitccna3(config)#验证测试:Rlping R3的 loopback 1 口ccna1#ping 1.1.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.2.1, timeout is 2 seconds: !Success ra

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论