計(jì)算機(jī)網(wǎng)絡(luò)原理實(shí)驗(yàn)【靜態(tài)路由及RIP路由】_第1頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)原理實(shí)驗(yàn)【靜態(tài)路由及RIP路由】_第2頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)原理實(shí)驗(yàn)【靜態(tài)路由及RIP路由】_第3頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)原理實(shí)驗(yàn)【靜態(tài)路由及RIP路由】_第4頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)原理實(shí)驗(yàn)【靜態(tài)路由及RIP路由】_第5頁(yè)
已閱讀5頁(yè),還剩10頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、實(shí)驗(yàn) 4 報(bào)告學(xué)號(hào)姓名課堂號(hào)01實(shí)驗(yàn)日期實(shí)驗(yàn)名稱靜態(tài)路由與 RIP 路由實(shí)驗(yàn)用時(shí)同組人指導(dǎo)教師一、實(shí)驗(yàn)?zāi)康?通過實(shí)驗(yàn)理解并掌握路由器的原理及配置方法, 理解并掌握查看路由器系統(tǒng)及配置信息; 掌握靜態(tài)路 由方式實(shí)現(xiàn)網(wǎng)絡(luò)的連通性。二、實(shí)驗(yàn)要求1通過實(shí)驗(yàn)理解并掌握路由器的原理及配置方法, 2理解并掌握查看路由器系統(tǒng)及配置信息; 3掌握靜態(tài)路由方式實(shí)現(xiàn)網(wǎng)絡(luò)的連通性。4. 掌握 RIP 路由方式實(shí)現(xiàn)網(wǎng)絡(luò)的連通性。三、實(shí)驗(yàn)環(huán)境 (設(shè)備 ) 實(shí)驗(yàn)設(shè)備 路由器 2臺(tái), PC2臺(tái),直連線 1 根,交叉線 1根, V.35 DCE/DTE電纜 1根DTEPC1 192.16.3.1/24S1 (DCEF0 R26

2、24-1R2620-2 F0192.16.2.1/24 192.16.2.2/24192.16.1.1/24PC2192.16.1.2/24192.16.3.2/24一)靜態(tài)路由1、單擊一個(gè)路由設(shè)備如: R2624-1 (4 口) R2620-2 (1 口) 用 ctrl+C 中斷要你輸入的內(nèi)容,進(jìn)入 Red-Giant2、路由器 R2624-1 配置 ( 1)配置 2624-1 的接口 f0Red-Giant (config)#hostname R2624-1R2624-1(config)#interface fastethernet FastEthernet interface numbe

3、rR2624-1(config)#interface fastethernet 0R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0 R2624-1(config-if)#no shutdown( 2)配置 2624-1 的串口 s1R2624-1(config)#interface serial 1R2624-1(config-if)#ip address 192.16.2.1 255.255.255.0R2624-1(config-if)#clock rate 64000(配置時(shí)鐘,注意是 DCE端)R2624-1(config-i

4、f)#no shutdown3)驗(yàn)證路由器接口及串口配置:R2624-1#Show ip interface briefR2624-1#show interface serial 1 ( 4)配置靜態(tài)路由R2624-1(config)#ip route 192.16.1.0 255.255.255.0 serial 1(或者用下一跳 IP :192.16.2.2 ) R2624-1#show ip route (查看路由)3、路由器 2620-2 配置Red-GiantenableRed-Giant#conf terEnter configuration commands, one per l

5、ine. End with CNTL/Z.Red-Giant (config)#hostname R2620-2R2620-2(config)# (1)查看路由器接口狀態(tài)R2620-2#show ip int brief ( 2)配置接口 f0R2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z. R2620-2(config)#interface fa 0R2620-2(config-if)#ip address 172.16.3.1 255.255.255.0R2620-2(config-if

6、)#no shutdown( 3)配置串口 s0R2620-2(config)#inter serial 0R2620-2(config-if)#ip address 172.16.2.2 255.255.255.0R2620-2(config-if)#no shutdown( 4)驗(yàn)證接口、串口配置R2620-2#Show ip interface briefR2620-2#show interface serial 0( 5)靜態(tài)配置R2620-2(config)#ip route 172.16.4.0 255.255.255.0 serial 0(建議使用)R2620-2#show ip

7、 route 4 測(cè)試? 斷開防火墻? 斷開第 1 塊網(wǎng)卡連接? 將 PC1 的內(nèi)網(wǎng)卡 IP 設(shè)置成 192.16.3.2 ,掩碼 255.255.255.0 網(wǎng)關(guān) 192.16.3.1? 將 PC2 的內(nèi)網(wǎng)卡 IP 設(shè)置成 192.16.1.2 ,掩碼 255.255.255.0 網(wǎng)關(guān) 192.16.1.1 請(qǐng)注意: R2620 和主機(jī)之間的連接需要使用交叉線)? 測(cè)試互通性? PC1 ping PC2? PC2 ping PC1 二)動(dòng)態(tài)路由 RIP1、路由器 R2624-1 配置( 1)配置 2624-1 的接口 f0Red-Giant (config)#hostname R2624-1

8、R2624-1(config)#interface fastethernet FastEthernet interface numberR2624-1(config)#interface fastethernet 0R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0R2624-1(config-if)#no shutdown( 2)配置 2624-1 的串口 s1R2624-1(config)#interface serial 1R2624-1(config-if)#ip address 192.16.2.1 255.255.255.0

9、DCE端)R2624-1(config-if)#clock rate 64000(配置時(shí)鐘,注意是R2624-1(config-if)#no shutdown驗(yàn)證路由器接口及串口配置: R2624-1#Show ip interface brief R2624-1#show interface serial 1配置 RIP 路由 R2624-1(config)#router rip R2624-1(config-rip)#network 192.16.3.0 R2624-1(config-rip)#network 192.16.2.0 R2624-1#show ip route (查看路由)

10、3、路由器 2620-2 配置 Red-Giantenable Red-Giant#conf terEnter configuration commands, one per line. End with CNTL/Z.Red-Giant (config)#hostname R2620-2R2620-2(config)#(1)查看路由器接口狀態(tài)R2620-2#show ip int brief( 2)配置接口 f0R2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-2(config)

11、#interface fa 0R2620-2(config-if)#ip address 192.16.1.1 255.255.255.0R2620-2(config-if)#no shutdown( 3)配置串口 s0R2620-2(config)#inter serial 0R2620-2(config-if)#ip address 192.16.2.2 255.255.255.0R2620-2(config-if)#no shutdown( 4)驗(yàn)證接口、串口配置R2620-2#Show ip interface briefR2620-2#show interface serial 0R

12、IP 路由配置R2620-2(config)#router ripR2620-2(config-rip)#network 192.16.1.0R2620-2(config-rip)#network 192.16.2.0 附錄:可使用的驗(yàn)證命令1.show runshow ip interface brifeshow ip routeping五、實(shí)驗(yàn)記錄靜態(tài)路由實(shí)驗(yàn)對(duì) R2624-1 的配置如下:Red-GiantenableRed-Giant#conf terEnter configuration commands, one per line. End with CNTL/Z.Red-Gian

13、t(config)#hostname R2624-1R2624-1(config)#show ip int briefR2624-1(config)#conf terR2624-1(config)#exitR2624-1#show ip int briefInterfaceIP-AddressOK? Method Status ProtocolFastEthernet0unassignedYES unsetadministratively down downFastEthernet1unassignedYES unsetadministratively down downFastEtherne

14、t2unassignedYES unsetadministratively down downFastEthernet3unassignedYES unsetadministratively downSerial0unassignedYES unsetadministratively down downSerial1unassignedYES unsetadministratively down downR2624-1#conf terEnter configuration commands, one per line. End with CNTL/Z.R2624-1(config)#inte

15、rface fa 0R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0R2624-1(config-if)#no shutdownR2624-1(config-if)#%UPDOWN: Line protocol on Interface FastEthernet0, changed state to up %UPDOWN: Interface FastEthernet0, changed state to upR2624-1(config-if)#exR2624-1(config)#inter serial 0R2624-1(conf

16、ig-if)#ip address 192.16.2.1 255.255.255.0R2624-1(config-if)#no shutdownR2624-1(config-if)# %UPDOWN: Interface Serial0, changed state to up %UPDOWN: Line protocol on Interface Serial0, changed state to up %UPDOWN: Line protocol on Interface Serial0, changed state to down R2624-1#Show ip interface br

17、iefIP-AddressOK? Method StatusProtocol192.16.3.1YES manual upupunassignedYES unset administratively down downunassignedYES unset administratively down downunassignedYES unset administratively down downunassignedYES unset administratively down d192.16.2.1YES manual upupInterfaceFastEthernet0FastEther

18、net1FastEthernet2FastEthernet3Serial0Serial1R2624-1#show interface serial 1 Serial1 is up, line protocol is upHardware is HDLC4530B Internet address is 192.16.2.1/24MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last

19、 input 00:00:06, output 00:00:03, output hang neverLast clearing of show interface counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fairOutput queue: 0/64/0 (size/threshold/drops) Conversations 0/2 (active/max active) Reserved Conversations 0/0 (a

20、llocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec273 packets input, 10716 bytes, 0 no buffer Received 269 broadcasts0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 276 packets output, 12255 bytes, 0 underruns 0 output err

21、ors, 0 collisions, 32 int0 output buffer failures, 0 output buffers swapped out 0 carrier transitionsDCD=down DSR=up DTR=up RTS=up CTS=upOK? Method StatusYES manual upYES manual upYES unset administratively down downProtocol up up對(duì) R2620-2 配置 R2620-2en R2620-2#configure terminal Enter configuration

22、commands, one per line. End with CNTL/Z. R2620-2(config)#exit R2620-2#show ip int b InterfaceIP-AddressFastEthernet0192.16.1.1Serial0192.16.2.2Serial1unassigned255.255.255.0R2620-2#configure terminal Enter configuration commands, one per R2620-2(config)#interface fa 0 R2620-2(config-if)#ip address 1

23、92.16.1.1 R2620-2(config-if)#no shutdown R2620-2(config-if)#exit R2620-2(config)#inter serial 0R2620-2(config-if)#ip address 192.16.2.2 255.255.255.0 R2620-2(config-if)#no shutdownR2620-2(config-if)#end R2620-2#show ip interface briefInterfaceIP-AddressOK? Method StatusProtocolFastEthernet0192.16.1.

24、1YES manual upupSerial0192.16.2.2YES manuaSerial1unassignedYES unset administratively down downR2620-2#show interface serial 0 Serial0 is up, line protocol is upHardware is HDLC4530A Internet address is 192.16.2.2/24MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation

25、 HDLC, loopback not set, keepalive set (10 sec)Last input 00:00:00, output 00:00:08, output hang neverLast clearing of show interface counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fairOutput queue: 0/64/0 (size/threshold/drops)Conversations 0/2

26、 (active/max active)Reserved Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec441 packets input, 13551 bytes, 0 no bufferReceived 403 broadcasts0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort559 packet

27、s output, 23464 bytes, 0 underruns0 output errors, 0 collisions, 40 int0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=up DSR=up DTR=up RTS=up CTS=up動(dòng)態(tài)路由: 對(duì) R2624-1 的配置 Red-Giantenable Red-Giant#conf terEnter configuration commands, one per line. End with CNTL/Z.Red-Gi

28、ant(config)#hostname R2624-1R2624-1(config)#interR2624-1(config)#interface fastethernet 0R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0R2624-1(config-if)#clock rate 64000R2624-1(config-if)#no shutdownprotocol on Interface FastEthernet0, changed state to up FastEthernet0, changed state to upR

29、2624-1(config-if)#%UPDOWN: Line%UPDOWN: InterfaceR2624-1(config-if)#exitR2624-1(config)#exitR2624-1#show ip interface briefInterfaceIP-AddressFastEthernet0192.16.3.1FastEthernet1unassignedProtocolupOK? Method StatusYES manual upYES unset administrativelyFastEthernet2unassignedYES unset administrativ

30、ely down downFastEthernet3unassignedYES unset administratively down downSerial0unassignedYES unset administratively down downSerial1unassignedYES unset administratively down downR2624-1#show interface serial 1Serial1 is administratively down, line protocol is downHardware is HDLC4530BMTU 1500 bytes,

31、 BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input never, output never, output hang neverLast clearing of show interface counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted f

32、airOutput queue: 4/64/0 (size/threshold/drops) Conversations 1/2 (active/max active) Reserved Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts0 input error

33、s, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 28 packets output, 3752 bytes, 0 underruns0 output errors, 0 collisions, 13 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitions DCD=down DSR=up DTR=up RTS=down CTS=downR2624-1#enable R2624-1#conf terEnter config

34、uration commands, one per line. End with CNTL/Z. R2624-1(config)#router ripR2624-1(config-router)#network 192.16.3.0R2624-1(config-router)#network 192.16.2.0R2624-1(config-router)#exitR2624-1(config)#router ripR2624-1(config-router)#exitR2624-1(config)#eixtR2624-1#show ip routeCodes: C - connected,

35、S - static, R - RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2對(duì) R2620-2 的配置如下:R2620-2enableR2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z. R2620-2(config)#exitR2026-1#conf terEnter configuration commands, one per line. R2620-2(confi

36、g)#interface fa 0R2620-2(config-if)# ip address 192.16.1.1 255.255.255.0 R2620-2(config-if)#no shutdownR2620-2(config-if)#exitR2620-2(config)#inter serial 0R2620-2(config-if)# ip address 192.16.2.2 255.255.255.0 R2620-2(config-if)#no shutdownR2620-2(config-if)#endR2620-2#show ip int briefInterfaceIP

37、-AddressOK? Method StatusProtocolFastEthernet0192.16.1.1YES manual updownSerial0192.16.2.2YES manualSerial1unassignedYES unset administratively down downR2026-1#show int serial 0 Serial0 is up, line protocol is downHardware is HDLC4530AInternet address is 192.16.2.2/24MTU 1500 bytes, BW 2048 Kbit, D

38、LY 20000 usec, rely 255/255, load 1/255Encapsulation HDLC, loopback not set, keepalive set (10 sec)Last input never, output never, output hang neverLast clearing of show interface counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fairOutput queue:

39、0/64/0 (size/threshold/drops)Conversations 0/2 (active/max active)Reserved Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts0 input errors, 0 CRC, 0 frame,

40、0 overrun, 0 ignored, 0 abort 243 packets output, 9444 bytes, 0 underruns0 output errors, 0 collisions, 131 interface r0 output buffer failures, 0 output buffers swapped out0 carrier transitionsDCD=up DSR=up DTR=up RTS=up CTS=downR2026-1# conf terEnter configuration commands, one per line. End with

41、CNTL/Z. R2620-2(config)#rounter ripR2620-2(config)#router ripR2620-2(config-router)# network 192.16.1.0R2620-2(config-router)# network 192.16.2.0R2620-2(config-router)#endR2620-1#R2620-1#show ip int briefInterfaceIP-AddressOK? Method StatusProtocolFastEthernet0192.16.1.1YES manual updownSerial0192.1

42、6.2.2YES manual updownSerial1unassignedYES unset administratively down downR2620-2#show ip route Codes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2 六、實(shí)驗(yàn)結(jié)果及其分析靜態(tài)路由PC1Microsoft Windows XP 版本 5.1.2600 (C) 版權(quán)所有 1985-2001 Microsoft

43、Corp.C:Documents and SettingsAdministratoripconfigWindows IP ConfigurationEthernet adapter 本地連接 2:Connection-specific DNS Suffix . : IP Address: 192.16.3.2Subnet Mask : 255.255.255.0Default Gateway : 192.16.3.1C:Documents and SettingsAdministratorping 192.16.1.2Pinging 192.16.1.2 with 32 bytes of da

44、ta:Reply from 192.16.1.2: bytes=32 time=20ms TTL=126Reply from 192.16.1.2: bytes=32 time=18ms TTL=126Reply from 192.16.1.2: bytes=32 time=18ms TTL=126Reply from 192.16.1.2: bytes=32 time=18ms TTL=126Ping statistics for 192.16.1.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round

45、 trip times in milli-seconds:Minimum = 18ms, Maximum = 20ms, Average = 18msC:Documents and SettingsAdministratorPc2Microsoft Windows XP 版本 5.1.2600 (C) 版權(quán)所有 1985-2001 Microsoft Corp.C:Documents and SettingsAdministratoripconfigWindows IP ConfigurationEthernet adapter 本地連接 2:Connection-specific DNS S

46、uffix . : IP Address: 192.16.1.2Subnet Mask : 255.255.255.0Default Gateway : 192.16.1.1C:Documents and SettingsAdministratorping 192.16.3.2Pinging 192.16.3.2 with 32 bytes of data:Reply from 192.16.3.2: bytes=32 time=20ms TTL=126Reply from 192.16.3.2: bytes=32 time=18ms TTL=126Reply from 192.16.3.2:

47、 bytes=32 time=18ms TTL=126Reply from 192.16.3.2: bytes=32 time=18ms TTL=126Ping statistics for 192.16.3.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:Minimum = 18ms, Maximum = 20ms, Average = 18msC:Documents and SettingsAdministrator動(dòng)態(tài)路由PC1Microsoft Windows XP 版本 5.1.2600 (C) 版權(quán)所有 1985-2001 Microsoft Corp.C:Documents and SettingsAdministratoripconfigWindows IP ConfigurationEthernet adapter 本地連接 2:Connection-specific DNS Suffix . : IP Add

溫馨提示

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

評(píng)論

0/150

提交評(píng)論