思科路由信息协议版本2(ripv2)实验详解_第1页
思科路由信息协议版本2(ripv2)实验详解_第2页
思科路由信息协议版本2(ripv2)实验详解_第3页
思科路由信息协议版本2(ripv2)实验详解_第4页
思科路由信息协议版本2(ripv2)实验详解_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

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

文档简介

1、第九章 路由信息协议版本 2 (RIP-V2 )实验:RIP-V2路由协议的配置 实验目标:RIP-V2协议的基本配置、RIP-V2与V1相结合、使用可变长子网掩 码、不连续的子网和无类路由。在本实验中需要完成以下几个任务:任务一:RIP V2协议的基本配置任务二:RIP V2与V1相结合任务三:使用可变长子网掩码任务四:不连续的子网和无类路由实验环境拓扑图如下:任务一:RIP V2协议的基本配置路由器A配置如下:rlttconf tEnter configuration commands, one pep line. End with CNTL/Z.-i z r j _ x 4* j _ j

2、_ i _X-X l-r U 11 X y -H- -LI I L- -LUrltconfig>#int loopbackSrKconfig-i£>#ip address 10.1.1.1 255.255.255. 3rikconrig-ir uno snuraounL口 U t U 士 1二 trl<config>#int el/0rl<config-if>#ip address 148.1.1.1 255.255.255 .£.uunr ±y - xr z-h-iiu sjiuluuwii rl<config-if&g

3、t;#exi rl<config>#vm_ t nra . 口匚 m cirn t liij IUX T1TE3- T_JU A W 1 " A <r Rj- A A URj- JEthernetl/0, changed state to upint el/1rl<config-if>#ip address 192.1.1.1 255.255.255.0ri<conr ig-ir jiino shuraounrl<config-if>#exirl<config>#*Mar 1 00:07:15.851: xLINK-3-UP

4、DOWN: Interface Ethernetl/1, changed state to up*Mar 1 00:07:16.851: xLINEPEOTO-5-UPDOWN: Line protocol on Interface Ethernetl/芦.。5 U J LLP210.0.0.0148.1.0.0192.1.1.0t'Kconf ig>#poLitep rip t'Kconf ig-i'outeiOttuers ion t'Kconf ig-ro utep>#net wo r k t'Kconf ig-ro uteiOttne

5、t wo i'k t'Kconf ig-ro utep>#net wo r kMiJll路由器B配置如下:r5>enr5#conf t 17rhi- 0 c c c C ; oin + 二 c c r' n mma n Anna na »T7cd - J| CNT LXZ r5<config>#int el/2r5<config-if>#ip add r5<config-if>#ip address 192.1.1.2 255.255.255.0 F U. L d1r j-v LV r hk FXX , J-fc

6、 r5(config>#int el/1i'5<config-if>#ip address 193.1.1.1 255.255.255.0 F U. L f 4-V J-V B-L r hk FB-fcXX . xl J-fc WX i-r n-r i-r .4-a-4 上 n-r n-r q 、1 -ur -1 i-r r5(config-if>#exir5(config>#*Mav 1 00:46:55.859: xLINK-3-UPDOWN: Interface Ethepnetl/1, changed state to upr5(config>

7、;#poLitep ripr5<conf ig-i'outeiOttuers ionr5(config>#poLitep ripr5<conf ig-i'outeiOttuers ion 2r5 (conf ig-routep>#network 192.1.1.0r5(confia-routep>#路由器C配置如下:r6>en r6#conf t Enter conf iguration commands. one pep line. End with CNTL/Z- rb<.conttW/lr6<config-if>#ip

8、 address 193.1.1.2 255.255.255.0 r6<config-if>ttno shutdown Jl-JTfl. 1H.r-u XLi-unx _i_y xi. zttc; ax r6<config>#int *Mar 1 00:50:39.511: xLINK-3-UPDOWN: Interface FastEtherne10/1, changed state a up*Mar 1 00:50:41.595: X LI NEPROT 0-5-U PDOWN: Line protocol on Interface FastEtheri et0/l

9、, changed state to X Incomplete command.r6(conf ig>itint £0/0rGCconfig-if>#ip address 152.1.1.1 255.255.255.0 r6(config-if>#no shutdown Fbkconf ig-if jii*Mar 1 00:51:27.799: xLINK-3-UPD0WN: Interface FastEtherne10/0, changed state a upexi rbtconf ig>firoLiter rip r6<conf ig-i'

10、;outeiO#uei's ion 2 r6(conf ig-router>#netwo152.1.0.0 r6 <conf ig-poutev>#netwoi'k 193.1.1.0 r6(conf ig-i'outer>#监测配置,用show ip route命令显示路由器 A上的IP路由表,可以看到152.1.0.0和193.1.1.0是通过RIP学习到的,如下图Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EI GRP, EX - EI GRP ext

11、ernal, 0 - OSPF, IA - OSPF inter area N1 -OSPFNSSA external type 1,N2 -OSPF NSSA externaltype 2El -OSPFexternal type 1, E2 -OSPFexternal type 2i - ISIS , su IS-IS summapj. LI - IS-IS leue 1-1, L2 IS-IS leue 1-2 ia - IS-IS inter area, 10.0.0.0/24 is subnetted, 1 subnetsC10.1.1.0 is directly connected

12、, LoopbackQR193.1.1.0/24 120/1 uia 192.1.1.2, 00:00:21, EtheFnetl/1C192.1.1.0/24 is directly connected, Ethernetl/1rl# Mar 1 00:30:09.931: xLINEPE0T0-5-UPD0WN: Line protocol on Interface Ethernetl - candidate default, U - pep-user static route o - ODR, P - periodic dounloaded static routeGatcuay of

13、last resort is not setR 152.1.0.0/16 120/2 uia 192.1.1.2, 00:00:21, Ethepnetl/1 4 口 n 口 n j*o j _ _ - -1 j_ j j -t _ _ _ i j -LCJbUbCJbUiT J X -Li> 3 LUJI I «_r。U J U. p -L U JJI IR-r -O- ct 口 t -4 ra j _ _i j 1 j _1 ¥ i i _raIn-4 n-n 4 y 口 ea jc 口-t nn 4 y n 口口. 口 nn t7j_i.zNF- n_r ir

14、r a- ir r - p i_r r - i_r r _ 串 =1Q造非您回倏 二没找到! 杳谢雷多词曲C 192.1.1.0/24 is directly connected, Ethernet1/1 148.1-0.0/24 is subnetted, 1 subnetsC148.1.1.0 is directly connected, Ethernet1/0尸凡在路由器A上用debug ip rip命令监视传输路由选择更新信息,可以 看到由于水平分割的作用,E1/1端口不发出从路由器 B上学到的网 络信息,如下图:任务二:RIP V2与V1相结合实验环境:3台2950路由器用以太网e1

15、/0、e1/1(f0/1、f0/1)接口、4根背靠背v3.5线缆实验拓扑图如下:148. L L 2/244实验过程如下:路由器A的RIP-V1配置如下:rl# rlttconf tEnter conf iguration commands. one pep line. End with CNTL/Z- IrKconf ig>iiiiTT_UT" rltconfig>#int loopbackSrKconfig-i£>#ip address 10.1.1.1 255.255.255.0 rl(config-if>#no shutdown rikcon

16、tig-it juexi|I'± UUIir ±y /4i±ll L t?_L/tJFlCconfig-if>#ip address 148.1.1.1 255.255.255.0 rKconf ig-if >#no s hut do wn|X-X . Lr U 11 X J_y HTWHK_L ii'± uuur ±y /4t±ii l t:x厂tFlCconfig-if>#ip address 192.1.1.1 255.255.255.0 rKconfig-if>#no shoudown

17、人X Invalid input detected at J mai'ker.rKconfig-if>#no shutdown|rl<conf ig-if >#exirlcont ig?ffroLiter riprKconf ig-i'outeiOttuers ion 1r 1 ( c o n f ig-po u t e r > #n e t wo i'k 10.0.0.0rl<conf ig-i'outer>#netwoi'k 148.1.0.0Q瞄®0 印33三转勾I rr 1 (conf ig-pout

18、er>#netwoi*k 192.1.1.0rKconf ig-pouteiO#路由器B上的RIP-V2配置,如下图:r5tt r5tt p5ttconf t Enter configuration commands* one per line. End with CNTL/Z. 1 rar c u rrrty *F±i rccxzh r5(config-if>#ip address 192.1.1.2 255.255.255.C ih5(config-if>ttno shutdown p5<conf ig-i£ >iiexi L. I- Z

19、-、*一 J_ _ -4 j>Tp5(config-if>#ip address 193.1.1.1 255.255.255.0 p5(config-if >#no shutdownp?5<conf lg>Uroucer rip p5(config-poutev>#uersion 2 p5(config-po ut e r > #n e t wo rk 192.1.1.0 p5(config-poutev>#netwovk 193.1.1.0 p5(config-pouter>#exip5(conf ic(>#exi p5#*Mar

20、1 01:17:04.247: XSVS-5-CONFIG_I: Configured from console by console FStt_路由器C上的RIP-V1配置,如下图:*Mar 1 01:09:15.015:193.1.1.0/24 via 0.0.0.0, metric 1, tag Q*Mar 1 01:09:37.647: RIP: sending u2 update to 224.0.0.9 uia FastEtherm 93.1.1.2> *Mar 1 01:09:37.647: RIP: build update entries *Mar 1 01:09:37

21、.647:152.1.0.0/16 uia 0.0.0.0, metric 1, tag 0RIP protocol debugging is off rbttconf t Enter conf iguration coninands, one per line. End uith CNTL/Z. IrbCconfig?Jlint flJ/1 r6<config-if>#ip address 193.1.1.2 255.255.255.0 r6<config-if>#no shutdoun ii-d uuur xjj-xr /hhxj. rbtcontigjnint t

22、uzu r6<config-if>#ip address 152.1.1.1 255.255.255.0 r6<config-if>#no shutdown rbcontig-it Jffexi I y X X XI.JX-U Lr U 11 X xy Z it<-U U. L- C <- X- xp r6(conf ig-i'outer>#uers ion 1 r6<conf ig-poutev>#netwoi'k 152.1.0.0 r6 (conf ig-router>#netwo193.1.1.0 r6<

23、conf ig-i'outeiO#exi rbconrig?wexi rGtt*Mar 1 01 :21 :06.167: xS¥S-5-CONFIG_I : Conf igui'ed f ron console by consoli f6#.利用debug ip rip命令利用debug ip rip命令显示监视路由器 A的配置如图示(路由器 A上没有152.1.0.0和193.1.1.0的路由)瓯匚:WINNTBy与tem32工md.RHE - telnet 192.168.3.151*Mar 1 00:48:51.619: zSVS-5-CONFIG_I: Co

24、nfigured from console by console 11'lHcleJjLig ip ripI Th T Tij1 1 1 -I ex i-bIJ I X X 配! U U R-r U -L U R-rJ-II J-S O IIrlttno debug i*Mar 1 00:49:10.747: RIP: ignored v2 packet from 192.1.1.2 (illegal uersion>*Mar 1 00 :49:11.139: RIP: sending ul update to 255.255.255.255 uia Ethernetl/0<

25、;148.1.1.1:*Mar 1 004911.139: RIP: build update entries*Mar 1 004911.139: netuork 10.0.0.0 metric 1*Mar 1 004911.139: netuork 192.1.1.0 metric 1*Mar 1 004911.139 : RIP: sending ul update to 255.255.255.255 uia Ethernetl/l<192.1.1.1:)*Mar 1 004911.139: RIP: build update entries*Mar 1 004911.139: n

26、etuork 10.0.0.0 metric 1*Mar 1 004911.143: netuork 148.1.0.0 netric 1*Mar 1 004911.143: RIP: sending ul update to 255.255.255.255 uia LoopbackO <1*Mar 1 004911.143: RIP: build update entries*Mar 1 004911.143: netuork 148.1.0.0 netric 1*Mar 1 004911.143: netuork 192.1.1.0 metric 1*Mar 1 004933.443

27、: RIP: ignored v2 packet from 148.1.2.1 (illegal uersion>*Mar 1 004936.983 : RIP: sending ul update to 255.255.255.255 uia EtJiernetl/B<148.1.1.1:*Mar 1 0049:36.983: RIP: build update entries*Map 1 0049:36.983: netuork 10.0.0.0 metric 1*Mar 1 0049:36.983: netuork 192.1.1.0 metric 1*Map 1 0049:

28、36.983 : RIF: sending ul update to 255.255.255.255 uia EtJiernetl/l利用debug ip rip命令利用debug ip rip命令显示监视路由器 B的配置如图示(路由器 B上没有10.0.0.0和152.1.10 148.1.1.0的路由)修改路由器B的RIP版本配置如下图:利用debug ip rip命令修改路由器B的RIP版本后、显示监视路由器B的配置如下图示(路由器 B上学习到A、C路由器上的路由表及RIP版本相关的信息)函 C:WINNnw式Em32md.EHE - telnet 192.168.3.153 |n| x

29、BIP protocol debugging is on rSttno debug ip*Mar 1 01:32:58.311: RIP: sending ul update to 255.255.255.255 <192.1.1.2>*Mar 1 01:32:58.311: RIP: build update entries*Mar 1 01:32:58.311: netuork 193.1.1.0 metric 1*Mar 1 01:32:59.075: RIP: sending ul update to 255.255.255.255 <193.1.1.1>*Ma

30、r 1 01:32:59.075: RIP: build update entries*Mar 1 01:32:59.075: netuork 10.0.0.0 metric 2*Mar 1 01:32:59.075: netuork 148.1.0.0 metric 2*Mar 1 01:32:59.075: network 192.1.1.0 metric 1*Mar 1 01:32:59.935: RIP: receiued ul update from 192.1.1.1 on*Mar 1 01:32:59.935:10.0.0.0 in 1 hops*Mar 1 01:32:59.9

31、39:148.1.0.0 in 1 hopsrip*Mar 1 01:33:24.047: RIP: sending ul update to 255.255.255.255 <192.1.1.2>*Mar 1 01:33:24.047: RIP: build update entries*Mar 1 01:33:24.047: netuork 193.1.1.0 metric 1*Mar 1 01:33:27.167: RIP: receiued ul update from 192.1.1.1 on*Mar 1 01:33:27.167:10.0.0.0 in 1 hops*M

32、ar 1 01:33:27.167:148.1.0.0 in 1 hops*Mar 1 01:33:28.115: RIP: sending ul update to 255.255.255.255 <193.1.1.1)*Mar 1 01:33:28.115: RIP: build update entries*Mar 1 01:33:28.115: network 10.0.0.0 metric 2uia Ethernetl/2uia Ethernetl/1Ethernetl/2uia Ethernetl/2Ethernetl/2uia Ethernetl/1利用debug ip r

33、ip命令修改路由器B的RIP版本后、显示监视路由器A的配置如图示(路由器 A上学习到B、C路由器上的路由表及-InRIP版本相关的信息)C:WINNT5y5tem32cmd.eMe - telnet 192.168.3.151tno debug ip rip ? protocol debugging is off Idebug ip rip? pr-uluuux uejuuyinf is on ir 1 01:03:03.359: RIP: received ul update fron 192.1.1.2 on Ethernetl/1w 1 01:03:03.359:193.1.1.0 in

34、 1 hopsir 1 01:03:05.287: RIP: sending ul update to 255.255.255.255 uia Ethernetl/0ir 1 01:03:05.287: RIP: build update entriesif101:03:05.287:netuork10.0.0.0 metric 1ir101:03:05.287:netuork192.1.1.0 metric 1if101:03:05.287:netuork193.1.1.0 metric 2ir 1 01:03:05.287: RIP: sending ul update to 255.25

35、5.255.255 uia Ethernetl/112.1.1.11ir 1 01:03:05.287:ir 1 01:03:05.291:ir 1 01:03:05.291:ir 1 01:03:05.291:ir 1 01:03:05.291:if 1 01:03:05.291:ir 1 01:03:05.291:if 1 01:03:05.291:RIP: build update entries netuork 10.0.0.0 metric 1 netuork 148.1.0.0 metric 1RIP: sending ul update to 255.255.255.255 ul

36、a LoopbackO <RIP: build update entries netuork 148.1.0.0 metric 1 netuork 192.1.1.0 metric 1netuork 193.1.1.0 metric 2 ir 1 01:03:05.307: RIP: ignored u2 packet from 148.1.2.1 (illegal uersion>利用debug ip rip命令修改路由器B的RIP版本后、显示监视路由器C的配置如图示(路由器 C上学习到A、B路由器上的路由表及101:36:39.751:ar101:36:39.751:iP101

37、:36:39.755:ar101:36:40.775:3<152ar101:36:40.775:iP101:36:40.775:ar101:36:40.775:iP101:36:40.775:ar101:36:40.775:iP101:37:01.935:ar101:37:02.339:L<193i.l.l.2>ar101:37:02.339:iP101:37:02.339:ar101:37:08.451:iP101:37:08.451:ar101:37:08.451:iP101:37:08.451:ar101:37:09.327:3<1521.1.1)ar101:37

38、:09.327:iP101:37:09.327:ar101:37:09.327:101:37:09.327:RIP版本相关的信息)10.0.0.0 in 2 hops148.1.0.0 in 2 hops192.1.1.0 in 1 hopsRIP: sending ul update to 255.255.255.255 uia FastEthernelRIP: build update entries netuork 10.0.0.0 metric 3 netuork 148.1.0.0 metric 3 netuork 192.1.1.0 metric 2 netuork 193.1.1

39、.0 metric 1RIP: ignored u2 packet From 148.1.1.1 <illegal uersion> RIP: sending ul update to 255.255.255.255 uia FastEthernelRIP: build update entries netuork 152.1.0.0 metric 1RIP: receiued ul update from 193.1.1.1 on FastEthernet0/1 10.0.0.0 in 2 hops 148.1.0.0 in 2 hops 192.1.1.0 in 1 hopsR

40、IP: sending ul update to 255.255.255.255 uia FastEthernelRIP: build update entries netuork 10.0.0.0 metric 3 netuork 148.1.0.0 metric 3 netuork 192.1.1.0 metric 2任务三:使用可变长子网掩码(略)任务四:不连续的子网和无类路由实验拓扑图如下:路由器A的配置如下图:rl#rl#rl#rlttconf tEnter conf iguration cominands, one per line. End uith CNTL/Z. rlCcon

41、fig>#int el/0rl<config-if>#ip address 172.16.1.1 255.255.255.0rlCconfig-if>#no shutdownrl<config-if>#exirl<config>#int el/1rl<config-if>#ip address 192.1.1.1 255.255.255.0 rl<config-if>#no shutdownI.kT - J-L J-L rx £1 - 7上 二 £1、,H" J"L 1"5

42、rl<config>#router rip2172.16.0.0192.1.1.0rl<config-router>#uers ion rl<config-pouter>#netwopk rl<conf ig-router>#networ<rl<config-router>#no auto-s 11*"I t&o rbrt Jtrb rt a miTb aji* 路由器B的配置如下图:r5ttrSttconf tEnter configuration commands, one per line. End ui

43、th CNTL/Z. r5<config>#int el/2r5<config-if>#ip address 192.1.1.2 255.255.255.0r5<config-if>#no shutdownr5<config-if>#exir5<config>#int el/1r5<config-if>#ip address 193.1.1.1 255.255.255.0r5<config-if>#no shutdownr5<config-if>#exit(fr-nn-FTrf it>*n 1

44、1 十 p m v* t nr5<conf ig-i'outeiOttuers ion 2r5 <conf ig-routep>#network 192.1.1.0r5 <conf ig-i'outer>#netwoi'k 193.1.1.0r5<config-routep>#no anto-surn路由器C的配置如下图:RIP protocol debugging is offrbttconf tEnter configuration commands, one per line. End uith CNTL/Z r6<

45、config>#int £0/1r6Cconfig-if>#ip address 193.1.1.2 255.255.255.0r6Cconfig-if>#no shutdownr6Cconfig-if>#exir6Cconfig>#int £0/0r6Cconfig-if>#ip address 172.16.2.1 255.255.255.0r6Cconfig-if>#no shutdownL,t /r 二 = r、* t_X。X H_r I I X _I_y _I_X J- TT j"lr6(config>#p

46、oLitep ripr6<conf ig-i'outeiOttuers ion 2r6 ( c o n f ig-ro ut e p > #n e t wo rk 172.16.0.0r6 <conf ig-router>#netwoi'k 192.1.1.0rGCconfig-routep>#no anto-summr6<config-routeiOttno anto-sLimmapypblcont,9-FOUter,耳利用debug ip rip命令显示监视路由器 A的配置如图示(路由器 A上学习到B、C路由器上172.16.1.0、17

47、2.16.2.0两个子网的路由表相关的信息)利用debug ip rip命令显示监视路由器 B的配置如图示(路由器 B上学习到A、C路由器上172.16.10 172.16.2.0两个子网的路由表相关的信息)利用debug ip rip命令显示监视路由器 C的配置如图示(路由器 C上学习到A、B路由器上172.16.1.0、172.16.2.0两个子网的路由表相关的信息)3 匚:WINNT'卢ymtem32 rmd.£HE - telnet 192.168.3.153厂厂Ir6tt irbUcleJjLig ip ripIJ I X X r 1! U <r Ij- U

48、-L UR-r JJ JCf Cf 111 Cf IS O H r6tt*Mar 1 02:05:52.531: RIP: sending u2 update to 224.0.0.9 via FastEthernet0/1 <1 93.1.1.2>*Mar 1 02:05:52.531: RIP: build update entries*Mar 1 02:05:52.531:172.16.2.0/24 uia 0.0.0.0, metric 1, tag 0*Mar 1 02:05:54.579: RIP: sending u2 update to 224.0.0.9 uia

49、FastEthernet0/0 <172.16.2.1>*Mar 1 02:05:54.579: RIP: build update entries*Mar102:05:54.579:10.1.1.0/24 uia 0.0.0.0, metric 3, tag 0*Mar102:05:54.579:172.16.1.0/24 uia Q.Q.Q.Qr metric 3, tag 0*Mar102:05:54.579:192.1.1.0/24 uia 0.0.0.0, metric 2, tag 0*Mar102:05:54.579:193.1.1.0/24 uia 0.0.0.0,

50、 netric 1, tag Q*Mar 1 02:06:18.179: RIP: sending u2 update to 224.0.0.9 uia FastEthernet0/1 <193.1.1.2J*Mar 1 02:06:18.179: RIP: build update entries *Mar 1 02:06:18.179:172.16.2.0/24 uia Q.Q.Q.Qr metric 1, tag 0*Mar 1 02:06:22.747: RIP: sending u2 update to 224.0.0.9 uia FastEthernet0/0 <1 72.16.2.1*Mar 1 02:06:22.747: RIP: build update entries*Mar 1 02:06:22.747:10.1.1.0/24 uia 0.0.0.0, metric 3, tag 0利用show ip rip显示路由器 A上的IP路由表、

温馨提示

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

评论

0/150

提交评论