計算機網絡實驗二(路由器rip協議配置)_第1頁
計算機網絡實驗二(路由器rip協議配置)_第2頁
計算機網絡實驗二(路由器rip協議配置)_第3頁
計算機網絡實驗二(路由器rip協議配置)_第4頁
計算機網絡實驗二(路由器rip協議配置)_第5頁
已閱讀5頁,還剩4頁未讀, 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、路由器rip協議配置專 業:班 級:姓 名:學 號:指導教師:日 期: 2012年12月3日一、實驗概述實驗目的1. 了解路由器設備2. 查看路由器的信息3. 熟悉路由器的接口 ip地址配置4. 熟悉路由器的rip路由協議配置實驗內容1了解路由器設備2.實驗拓撲圖及要求3配置路由器接口 ip地址4. 配置路由器rip協議5. 了解其它show命令6. 課堂練習要求1)路曲器的基本配置:分別給路曲器命名為1、r*2和r3;關閉域名查找; 設置路由器接口 ip地址。2)配置rip路由協議,使每個網段z間都能夠相互通信。3)在以上網絡的基礎上,增加r4路由器,并為r4配置一個環冋接口及rip 協議。

2、注意,r4和r2的連接鏈路也需要配置。配置完成后,請查看r2路由 器的路曲表,并且,使用ping命令測試各網絡的連通性。二、實驗環境使用gns3模擬cisco的交換機和路由器、windows系統。三、實驗步驟路由器n的配置。router>enrouter>enablerouter#conf tenter configuration commands9 one per line. end with cntl/z. router(config)#hos rlrl(config)#line con 0rl(config-line)#exec-t 0 0rl(config-line)#1o

3、gg syncrl(config-line)#exit查看路由器n的接口編號。rlfshow int sum*: interface is upiqd: pkts dropped from input queue oqd: pkts dropped from output queue rxps: rx rate (plcts/sec)txps: tx rate (pkts/sec)ihq: pices in input hold queue ohq: pkts in output hold queue rxbs: rx rate (bits/sec) txbs: tx rate (bits/s

4、ec)trtl: throttle countfastetherneto/0000000000serial0/0000000000fastetherneto/1000000000serial0/l000000000rl#conf zenter configurationcommandsrone perline endwithcntl/z.incerfaceihqiqd ohqoqd rxbs rxps txbs txps trtlrl(config)#no ip domain lookuprl(config)tint f0/0rl (config-if)#ip address 172.16.8

5、1.1 255.255.255.0rl(config-if)#no shurl(confxg-if)#no shutdownrl(config-if)#e*mar 1 00:08:37.163: %link-3-updown: interface fastechernet0/0r changed state co up*mar 1 00:08:38.163: %lineproto-5-updown: lxne protocol on interface fastethernet0/0r change rl(config-if)#exitrl(config)tint looorl(config-

6、if)#ip ad食mar 1 00:08:46372: %lineproto-5-updown: line protocol on interface loopback0f changed scat rl(config-if)#ip address 10.1.1.1 255.255255.0rl(config-if)#no shurl(confxg-if)#no shutdownrl(config-if)#exic路由器2的配置router>enablerouter#conf tenter configuration commandsr one per line. end with c

7、ntl/z.router(config)#line con 0router(config-line)#exec-t 0 0router(config-line)#logg syncrouter(config-line)#exitrouter(config)#host r2r2(config)r2#show int sum*: interface is upihq: pkts in input hold queue ohq: pkts in output hold queueiqdiqd: oqd: rxps: txps:ohqpkts dropped from input queue pkts

8、 dropped from output queue rx rate (pkts/sec) tx rate (pkts/sec)oqd rxbs rxps txbs txps trtlrxbs: rx rate (bits/sec) txbs: tx rate (bits/sec) trtl: throttle countinterfaceihqfastetherneto/0000000 000serial0/0000000 000fastetherneto/1000000 000serial0/l000000 000r2#|r2(config)#no ip domain lookupr2(c

9、onfig)#int f0/0r2(config-if)tip address 172.16.81.2 255.255.255.0 r2(config-if)#no shutdownr2(config-if)#exitr2(config)#int s0/0r2(config-if)#ip address 192111 2552552550 r2(config-if)#no shutdownr2(config-if)#exitr2 (config)s0/1r2#r2#ping 10.1.1.1type escape sequence to abort.sending 5f 100-byte ic

10、mp echos to 10.1.1.lr timeout is 2 seconds:success rate is 0 percent (0/5)r2#ping 17216.81.1type escape sequence to abort.sending 5r 100-byte icmp echos to 172.16.81.lr timeout is 2 seconds:success rate is 80 percent (4/5)r round-trip min/avg/iaax = 20/30/44 msrl和r2在同一個局域網內,現在不需要路由,就可互相ping通。但是r2pin

11、g 不通loopback()接口,需要配置路由。路由器3的配置router#conf tenter configuration commands9 one per line. end with cntl/z.router(config)#line con 0router(config-line)#exec-t 0 0router(config-line)#logg syncrouter(config-line)#exitrouter(config)#hos r3r3(config)#no ip domain lookupr3(config)tint s0/0r3(config-if)#ip a

12、ddress 192.1.1.2 255.255.255.0r3(config-if)#no shutdownr3(config-if)#ex*mar 1 00:30:51.711: %link-3-updown: interface serial0/0r changed state to r3(config-if)#exitr3(config)#*mar 1 00:30:52.719: %lineproto-5-updown: line protocol on interface serial r3(config)tint looor3(config-if)#*mar 1 00:31:00.

13、475: %lineproto-5-updown: line protocol on interface loopbar3(config-if)tip address 20.3.3.1 2552552550r3(config-if)#no shutdownr3(config-if)#endr3#pin*mar 1 00:31:24.163: %sys-5-config_i: configured from console by console r3#ping 192.1.1.1一type escape sequence to abort.sending 5r 100-byte icmp ech

14、os to 192.1.1.1f timeout is 2 seconds:success rate is 100 percent (5/5). round-trip min/avg/max = 8/55/120 ms r3#路由器14的配置: .一 - . domain loojcup101340209(config)#int s0/0101340209(config-if)#ip address 182112 2552552550101340209(config-if)#no shutdown101340209(config-if)#exi*mar 1 01:11:29615: %link

15、-3-updown: interface serial0/0, changed si101340209(config-if)#exit101340209(config)#*mar 1 01:11:30623: %lineproto-5-updown: line protocol on interface101340209(config)#int looo101340209(config-if)#ip*mar 1 01:11:38 803: %lineproto-5-updown: line protocol on interface101340209(config-if)#ip address

16、 30221 2552552550101340209(config-if)#no shutdown101340209(config-if)#end101340209#*mar 1 01:12:13 527: %sys-5-config_i: configured from console by cor 101340209#ping 182112一type escape sequence to abort sending 5. 100 一icmp echos to 182 112, timeout is 2 seconds:success rate is 100 percent (5/5), r

17、ound-trip min/avg/max = 28/63/15; 101340209#|為h、r2、1*3、4配置rip協議:rl(config)#router riprl(config-router)#network 172.16.0.0rl(config-router)#network 10.0.0.0 rl(config-router)#endrl#指定與 r2 相連的網絡有:192.1.1.0、172.16.0.0 和 182.1.1.0。r2(config)#router ripr2(config-router)inetwork 172.16.0.0r2(config-router

18、)inetwork 192.1.1.0r2(config-router)inetwork 182.1.1.0r2(config-router)lendr2#指定與r3相連的網絡有:192.1.1.0和20.0.0.0or3(config)trouter ripr3(config-router)fnetwork 192.1.1.0r3(config-router)#network 20.0.0.0 r3(config-router)#endr3#指定與r2相連的網絡有:182.1.1.0和30.0.0.0o101340209(config)#router rip101340209(config-

19、router)network 182.1.1.0101340209(config-router)network 30.0.0.0 101340209(config-router)#end101340209#從r3可以ping通rl右邊的loopback()or3#ping 10.1.1.1type escape sequence to abort.sending 5r 100-byte icmp echos to 10.1.1.lr timsuccess rate is 100 percent (5/5). round-trip m r3利|從h的環回接口 pingr34的環回接口,都口j以p

20、ing通。rl#ping 20.3.3.1 source 10.1.1.1type escape sequence to abort.sending 5r 100-by* icmp echos to 20.3.3.1, timeout is 2 sepacket sent with a source address of 10.1.1.1i i i i isuccess rate is 100 percent (5/5)9 round-trip min/avg/max = rl#ping 30.2.2.1 source 10.1.1.1type escape sequence to abort

21、.sending 5r 100-by* icmp echos to 30.2.2.1, timeout is 2 sepacket sent with a source address of 10.1.1.1i i i i isuccess rate is 100 percent (5/5)9 round-trip min/avg/max = rl#|當然,a r3 ping rl的環冋接口可以ping通,r3的環冋接口 ping r4的環冋 接口也能ping通。r3#ping 10.1.1.1type escape sequence to aboxx.sending 5r 100-byte

22、icmp echos to 10.1.1.lr timeosuccess rate is 100 percent (5/5)f round-trip min r3#ping 30.2.2.1 source 20.3.3.1type escape sequence to aboxx.sending 5r 100-byte icmp echos to 30.2.2.lr timeopacket sent with a source address of 20.3.3.1success rate is 100 percent (5/5)f round-trip miri101340209#ping

23、192.1.1.1type escape sequence to abort.sending 5f 100-byte icmp echos to 192.1.1.timeout is 2 seconds:success rate is 100 percent (5/5)f round-trip min/avg/max = 16/41/92 ms 101340209#ping 192.1.1.2type escape sequence to abort.sending 5, 100-byte icmp echos to 192.1.1.2r timeout is 2 seconds:succes

24、s rate is 100 percent (5/5)f round-trip min/avg/max = 48/100/180 ms 101340209#ping 172.16.81.1type escape sequence to abort.sending 5, 100-byte icmp echos to 172.16.81.lf timeout is 2 seconds:success rate is 100 percent (5/5)f round-trip min/avg/max = 60/108/188 ms 101340209卡ping 172.16.81.2type esc

25、ape sequence to abort.sending 5f 100-byte icmp echos to 172.16.81.2f timeout is 2 seconds:success rate is 100 percent (5/5)f round-trip min/avg/max = 16/52/96 ms 101340209卡ping 10.1.1.1 source 30.2.2.1type escape sequence to abort.sending 5z 100-byte icmp echos to 10.1.1.lr timeout is 2 seconds: pac

26、ket sent with a source address of 30-2.2.1success rate is 100 percent (5/5), ronnd-trip min/avg/max = 36/101/220 ms 101340209#ping 2033l source 3022ltype escape sequence to abort.sending 5f 100-byte ic14p echos to 20.3.3. lr timeout is 2 seconds:packet sent with a source address of 30.2.2.1success r

27、ate is 100 percent (5/5)f round-trip min/avg/max = 44/100/228 ms 101340209#|2路由表:r2#show ip routecodes: c 一 connected s - static, r 一 ripz m 一 mobiler b - bgpd - eigrpr ex 一 elgrp external, o 一 ospfr ia - ospf inter arean1 一 ospf nssa external type lr n2 - ospf nssa external type 2el - ospf external

28、 type lf e2 - ospf external type 2i - is-is, su 一 is-is summary, li - is-is level-lr l2 - is-is level-2 ia 一 is-is inter arear * 一 candidate defaultr u 一 per-user static route o 一 odr, p 一 periodic downloaded static routegateway of last resort is not setr 20.0.0.0/8 120/1 via 192.1.1.2, 00:00:11, se

29、rial0/0172.16.0.0/24 is subnettedf 1 subnetsc172.16.81.0 is directly connected fastethernet0/0r 10.0.0.0/8 120/1 via 172.16.81.lr 00:00:03, fastethernet0/0c 192.1.1.0/24 is directly connected serial0/0182.1.0.0/24 is subnet匸已d, 1 subnetsc182.1.1.0 is directly connected serial0/lr 30.0.0.0/8 120/1 vi

30、a 182.1.1.2, 00:00:00, serialo/1r4路由表:101340209#show ip routecodes: c 一 connected s 一 szaz±cf r 一 ripr m 一 mobiler b 一 bgpd 一 eigrpr ex 一 eigrp external, o 一 ospf, ia 一 ospf inter arean1 一 ospf nssa external type lf n2 一 ospf nssa external type 2el 一 ospf ext;ernal type lr e2 一 ospf external type 2i 一 is-is, su - is-is summary, li - is-is level-1, l2 - is-is leve

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論