版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、XX實驗報告學號: 日期: 年 月 日系別專業(yè)班級姓名 課程名稱課程類型學時數(shù)實驗名稱動態(tài)路由配置 實驗目的和要求:理解動態(tài)路由的工作原理,掌握如何配置動態(tài)路由。 實驗內(nèi)容:(一) 實驗拓撲(二)實驗設備路由器 2臺 (三)實驗步驟第一步:配置兩臺路由器的主機名、接口IP地址RSR20#configure terminalEnter configuration commands, one per line. End with CNTL/Z.RSR20(config)#hostname RouterARouterA(config)#RouterA(config)#interface fastEt
2、hernet 0/0RouterA(config-if)#ip address 192.168.1.1 255.255.255.0RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterA(config)#RouterA(config)#interface loopback 0RouterA(config-if)#Aug 15 23:46:32 RouterA %7:%LINE PROTOCOL CHANGE: Interface Loopback 0, changed state to UPRouterA(config-if)#i
3、p address 172.16.1.1 255.255.255.0RouterA(config-if)#exitRouterA(config)#RouterA(config)#interface loopback 1RouterA(config-if)#Aug 15 23:47:00 RouterA %7:%LINE PROTOCOL CHANGE: Interface Loopback 1, changed state to UPRouterA(config-if)#ip address 172.16.2.1 255.255.255.0RouterA(config-if)#exitRSR2
4、0#configure terminalEnter configuration commands, one per line. End with CNTL/Z.RSR20(config)#hostname RouterBRouterB(config)#RouterB(config)#interface fastEthernet 0/0RouterB(config-if)#ip address 192.168.1.2 255.255.255.0RouterB(config-if)#no shutdownRouterB(config-if)#exitRouterB(config)#RouterB(
5、config)#interface loopback 0RouterB(config-if)#Aug 8 21:00:00 RouterB %7:%LINE PROTOCOL CHANGE: Interface Loopback 0, changed state to UPRouterB(config-if)#ip address 10.1.1.1 255.255.255.0RouterB(config-if)#exitRouterB(config)#RouterB(config)#interface loopback 1RouterB(config-if)#Aug 8 21:00:28 Ro
6、uterB %7:%LINE PROTOCOL CHANGE: Interface Loopback 1, changed state to UPRouterB(config-if)#ip address 10.2.2.1 255.255.255.0RouterB(config-if)#exit第二步:在兩臺路由器上配置RIP路由協(xié)議RouterA(config)#router ripRouterA(config-router)#network 192.168.1.0RouterA(config-router)#network 172.16.1.0RouterA(config-router)#
7、exitRouterB(config)#router ripRouterB(config-router)#network 192.168.1.0RouterB(config-router)#network 10.0.0.0RouterB(config-router)#exit第三步:查看RIP配置信息,路由表RouterA#show ip routeCodes: C - connected, S - static, R - RIP B - BGPO - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSS
8、A external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate defaultGateway of last resort is no setR 10.0.0.0/8 120/1 via 192.168.1.2, 00:00:17, FastEthernet 0/0C 172.16.1.0/24 is directly connected, Loopb
9、ack 0C 172.16.1.1/32 is local host.C 172.16.2.0/24 is directly connected, Loopback 1C 172.16.2.1/32 is local host.C 192.168.1.0/24 is directly connected, FastEthernet 0/0C 192.168.1.1/32 is local host.RouterA#Routing Protocol is "rip"Sending updates every 30 seconds, next due in 21 seconds
10、Invalid after 180 seconds, flushed after 120 secondsOutgoing update filter list for all interface is: not setIncoming update filter list for all interface is: not setDefault redistribution metric is 1Redistributing:Default version control: send version 1, receive any versionInterface Send Recv Key-c
11、hainFastEthernet 0/0 1 1 2Loopback 0 1 1 2Loopback 1 1 1 2Routing for Networks:172.16.0.0192.168.1.0Distance: (default is 120)RouterA#RouterB#show ip routeCodes: C - connected, S - static, R - RIP B - BGPO - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 -
12、 OSPF external type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate defaultGateway of last resort is no setC 10.1.1.0/24 is directly connected, Loopback 0C 10.1.1.1/32 is local host.C 10.2.2.0/24 is directly connected, Loopback 1C 10.
13、2.2.1/32 is local host.R 172.16.0.0/16 120/1 via 192.168.1.1, 00:00:12, FastEthernet 0/0C 192.168.1.0/24 is directly connected, FastEthernet 0/0C 192.168.1.2/32 is local host.RouterA#show ip rip database10.0.0.0/8 auto-summary10.0.0.0/81 via 192.168.1.2 FastEthernet 0/0 00:09172.16.0.0/16 auto-summa
14、ry172.16.1.0/241 directly connected, Loopback 0172.16.2.0/241 directly connected, Loopback 1192.168.1.0/24 auto-summary192.168.1.0/241 directly connected, FastEthernet 0/0RouterA#show ip rip interfaceFastEthernet 0/0 is up, line protocol is upRouting Protocol: RIPReceive RIPv1 and RIPv2 packetsSend
15、RIPv1 packets onlyPassive interface: DisabledSplit horizon: EnabledV2 Broadcast: DisabledMulticast registe: RegistedInterface Summary Rip:Not ConfiguredIP interface address:192.168.1.1/24FastEthernet 0/1 is down, line protocol is downRIP is not enabled on this interfaceNull 0 is up, line protocol is
16、 upRIP is not enabled on this interfaceLoopback 0 is up, line protocol is upRouting Protocol: RIPReceive RIPv1 and RIPv2 packetsSend RIPv1 packets onlyPassive interface: DisabledSplit horizon: EnabledV2 Broadcast: DisabledMulticast registe: RegistedInterface Summary Rip:Not ConfiguredIP interface ad
17、dress:172.16.1.1/24Loopback 1 is up, line protocol is upRouting Protocol: RIPReceive RIPv1 and RIPv2 packetsSend RIPv1 packets onlyPassive interface: DisabledSplit horizon: EnabledV2 Broadcast: DisabledMulticast registe: RegistedInterface Summary Rip:Not ConfiguredIP interface address:172.16.2.1/24R
18、outerB#show ip ripRouting Protocol is "rip"Sending updates every 30 seconds, next due in 21 secondsInvalid after 180 seconds, flushed after 120 secondsOutgoing update filter list for all interface is: not setIncoming update filter list for all interface is: not setDefault redistribution me
19、tric is 1Redistributing:Default version control: send version 1, receive any versionInterface Send Recv Key-chainFastEthernet 0/0 1 1 2Loopback 0 1 1 2Loopback 1 1 1 2Routing for Networks:10.0.0.0192.168.1.0Distance: (default is 120)RouterB#show ip rip database10.0.0.0/8 auto-summary10.1.1.0/241 dir
20、ectly connected, Loopback 010.2.2.0/241 directly connected, Loopback 1172.16.0.0/16 auto-summary172.16.0.0/161 via 192.168.1.1 FastEthernet 0/0 00:08192.168.1.0/24 auto-summary192.168.1.0/241 directly connected, FastEthernet 0/0RouterB#show ip rip interfaceFastEthernet 0/0 is up, line protocol is up
21、Routing Protocol: RIPReceive RIPv1 and RIPv2 packetsSend RIPv1 packets onlyPassive interface: DisabledSplit horizon: EnabledV2 Broadcast: DisabledMulticast registe: RegistedInterface Summary Rip:Not ConfiguredIP interface address:192.168.1.2/24FastEthernet 0/1 is down, line protocol is downRIP is no
22、t enabled on this interfaceNull 0 is up, line protocol is upRIP is not enabled on this interfaceLoopback 0 is up, line protocol is upRouting Protocol: RIPReceive RIPv1 and RIPv2 packetsSend RIPv1 packets onlyPassive interface: DisabledSplit horizon: EnabledV2 Broadcast: DisabledMulticast registe: Re
23、gistedInterface Summary Rip:Not ConfiguredIP interface address:10.1.1.1/24Loopback 1 is up, line protocol is upRouting Protocol: RIPReceive RIPv1 and RIPv2 packetsSend RIPv1 packets onlyPassive interface: DisabledSplit horizon: EnabledV2 Broadcast: DisabledMulticast registe: RegistedInterface Summar
24、y Rip:Not ConfiguredIP interface address:10.2.2.1/24第四步:測試網(wǎng)絡連通性RouterA#ping 10.1.1.1Sending 5, 100-byte ICMP Echoes to 10.1.1.1, timeout is 2 seconds:< press Ctrl+C to break >!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 msRouterA#ping 10.2.2.1Sending 5, 100-byte ICMP Echo
25、es to 10.2.2.1, timeout is 2 seconds:< press Ctrl+C to break >!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/10 msRouterB#ping 172.16.1.1Sending 5, 100-byte ICMP Echoes to 172.16.1.1, timeout is 2 seconds:< press Ctrl+C to break >!Success rate is 100 percent (5/5), roun
26、d-trip min/avg/max = 1/1/1 msRouterB#ping 172.16.2.1Sending 5, 100-byte ICMP Echoes to 172.16.2.1, timeout is 2 seconds:< press Ctrl+C to break >!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms第五步:用debug命令觀察路由器接收和發(fā)生路由更新的情況下面是一個完整的RIP路由器接收更新和發(fā)送更新的過程,從中可以看到RouterB接收到了RouterA
27、發(fā)送的更新,其中包含一條路由信息172.16.0.0(可以看到水平分割原則的作用),然后刷新了路由表。RouterB本身發(fā)送的更新報文則在Fa0/0、Lo0和Lo1三個端口發(fā)出,采用廣播的方式,廣播地址分別為192.168.1.255,10.1.1.255,10.2.2.255,使用UDP 的520端口。在水平分割的原則下,每個端口發(fā)送的路由信息均不相同。RouterB#debug ip ripAug 8 21:06:08 RouterB %7: RIP RIP recveived packet, sock=2125 src=192.168.1.1 len=24Aug 8 21:06:08 R
28、outerB %7: RIP Cancel peer remove timerAug 8 21:06:08 RouterB %7:RIP Peer remove timer shedule.Aug 8 21:06:08 RouterB %7: route-entry: family 2 ip 172.16.0.0 metric 1Aug 8 21:06:08 RouterB %7: RIP Received version 1 response packetAug 8 21:06:08 RouterB %7: RIP Translate mask to 16Aug 8 21:06:08 Rou
29、terB %7: RIP Old path is: nhop=192.168.1.1 routesrc=192.168.1.1 intf=1Aug 8 21:06:08 RouterB %7: RIP New path is: nhop=192.168.1.1 routesrc=192.168.1.1Aug 8 21:06:08 RouterB %7: RIP 172.16.0.0/16 RIP route refresh!Aug 8 21:06:08 RouterB %7: RIP 172.16.0.0/16 RIP distance apply from 192.168.1.1!Aug 8
30、 21:06:08 RouterB %7: RIP 172.16.0.0/16 ready to refresh kernel.Aug 8 21:06:08 RouterB %7: RIP NSM refresh: IPv4 RIP Route 172.16.0.0/16 distance=120 metric=1 nexthop_num=1 distance=120 nexhop=192.168.1.1 ifindex=1Aug 8 21:06:08 RouterB %7: RIP 172.16.0.0/16 cancel route timerAug 8 21:06:08 RouterB
31、%7: RIP 172.16.0.0/16 route timer schedule.Aug 8 21:06:23 RouterB %7: RIP Output timer expired to send reponseAug 8 21:06:23 RouterB %7: RIP Prepare to send BROADCAST response.Aug 8 21:06:23 RouterB %7: RIP Building update entries on FastEthernet 0/0Aug 8 21:06:23 RouterB %7: network 10.0.0.0 metric
32、 1Aug 8 21:06:23 RouterB %7: RIP Send packet to 192.168.1.255 Port 520 on FastEthernet 0/0Aug 8 21:06:23 RouterB %7: RIP Prepare to send BROADCAST response.Aug 8 21:06:23 RouterB %7: RIP Building update entries on Loopback 0Aug 8 21:06:23 RouterB %7: network 10.2.2.0 metric 1Aug 8 21:06:23 RouterB %
33、7: network 172.16.0.0 metric 2Aug 8 21:06:23 RouterB %7: network 192.168.1.0 metric 1Aug 8 21:06:23 RouterB %7: RIP Send packet to 10.1.1.255 Port 520 on Loopback 0Aug 8 21:06:23 RouterB %7: RIP Prepare to send BROADCAST response.Aug 8 21:06:23 RouterB %7: RIP Building update entries on Loopback 1Au
34、g 8 21:06:23 RouterB %7: network 10.1.1.0 metric 1Aug 8 21:06:23 RouterB %7: network 172.16.0.0 metric 2Aug 8 21:06:23 RouterB %7: network 192.168.1.0 metric 1Aug 8 21:06:23 RouterB %7: RIP Send packet to 10.2.2.255 Port 520 on Loopback 1Aug 8 21:06:23 RouterB %7: RIP Schedule response send timer【注意事項】1、配置RIP的Network命令時只支持A、
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度農(nóng)業(yè)產(chǎn)業(yè)化項目合同違約責任及農(nóng)產(chǎn)品質(zhì)量安全協(xié)議
- 二零二五年度智慧車庫租賃與智能交通管理合同
- 2025年度生豬養(yǎng)殖與飼料加工技術合作購銷合同
- 二零二五年度LED顯示屏廣告投放效果評估體系合同3篇
- 2025年度木結(jié)構學校建設與設施設備安裝合同4篇
- 二零二五年度財務顧問與財務戰(zhàn)略實施合同模板3篇
- 2025年度虛擬現(xiàn)實教育與培訓服務合同范本
- 電梯安裝吊裝運輸合同范本
- 高效滅蟑滅鼠綜合解決方案合同二零二五年度版4篇
- 2025年度養(yǎng)老院地板磚改造及舒適化升級合同4篇
- 圖像識別領域自適應技術-洞察分析
- 個體戶店鋪租賃合同
- 禮盒業(yè)務銷售方案
- 二十屆三中全會精神學習試題及答案(100題)
- 【奧運會獎牌榜預測建模實證探析12000字(論文)】
- 土力學與地基基礎(課件)
- 主要負責人重大隱患帶隊檢查表
- 魯濱遜漂流記人物形象分析
- 危險廢物貯存?zhèn)}庫建設標準
- 多層工業(yè)廠房主體結(jié)構施工方案鋼筋混凝土結(jié)構
- 救生艇筏、救助艇基本知識課件
評論
0/150
提交評論