計算機網(wǎng)絡(luò)實驗四:路由器的配置_第1頁
計算機網(wǎng)絡(luò)實驗四:路由器的配置_第2頁
計算機網(wǎng)絡(luò)實驗四:路由器的配置_第3頁
計算機網(wǎng)絡(luò)實驗四:路由器的配置_第4頁
計算機網(wǎng)絡(luò)實驗四:路由器的配置_第5頁
已閱讀5頁,還剩5頁未讀 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、天津理工大學(xué)實驗報告學(xué)院(系)名稱:計算機與通信工程學(xué)院姓名學(xué)號專業(yè)計算機科學(xué)與技術(shù)(中加)班級教學(xué)2班實驗項目實驗四:路由器的配置課程名稱計算機網(wǎng)絡(luò)課程代碼0662016實驗時間2015年6月25日 第7、8節(jié)實驗地點7-219批改意見成績教師簽字: (一) 實驗?zāi)康模?掌握利用超級終端配置路由器時的連接和參數(shù)設(shè)置;掌握路由器的常見模式及其轉(zhuǎn)換命令;掌握用配置向?qū)渲寐酚善鞯牟襟E和方法;掌握檢查路由器配置和狀態(tài)的路由器命令。掌握路由器配置文件管理方法,掌握靜態(tài)路由和動態(tài)路由的配置方法。(二)實驗環(huán)境:軟件環(huán)境:Windows 2000XP 硬件環(huán)境:IBMPC或兼容機局域網(wǎng)、PC機連入Int

2、ernet(三)實驗學(xué)時:2學(xué)時,必做.(四)實驗要求:利用超級終端進行路由器的配置,記錄配置過程,在實驗報告中注明各種命令的功能。進行網(wǎng)絡(luò)地址規(guī)劃,配置路由器;檢查路由器配置。掌握路由協(xié)議的種類和特點。掌握靜態(tài)路由、默認(rèn)路由的配置方法。掌握查看路由條目的方法,并驗證路由的作用。(6) 實驗步驟: 1.設(shè)計并連接網(wǎng)絡(luò)。2.連接主機與路由器。3.配置各個接口。 4.最后配置路由表。配置RIP:#rip 1 version 2 network 0.0.0.0#路由表:r1display ip routing-tableRouting Tables: Public Destinations : 10

3、 Routes : 10Destination/Mask Proto Pre Cost NextHop Interface20.0.1.0/24 Direct 0 0 20.0.1.1 Eth0/020.0.1.1/32 Direct 0 0 127.0.0.1 InLoop020.0.2.0/24 Direct 0 0 20.0.2.1 S2/020.0.2.1/32 Direct 0 0 127.0.0.1 InLoop020.0.2.2/32 Direct 0 0 20.0.2.2 S2/020.0.3.0/24 RIP 100 1 20.0.2.2 S2/020.0.4.0/24 RI

4、P 100 1 20.0.2.2 S2/020.0.5.0/24 RIP 100 2 20.0.2.2 S2/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0接口信息:r1display ip int b*down: administratively down(s): spoofingInterface Physical Protocol IP Address DescriptionAux0 down down unassigned Aux0 Inte.Cellular0/0 d

5、own down unassigned Cellular0.Eth0/0 up up 20.0.1.1 Ethernet0.Eth0/1 down down unassigned Ethernet0.S1/0 down down unassigned Serial1/0.S2/0 up up 20.0.2.1 Serial2/0.測試連通性:C:Documents and Settingsstudping 20.0.5.2Pinging 20.0.5.2 with 32 bytes of data:Reply from 20.0.5.2: bytes=32 time=36ms TTL=253R

6、eply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Ping statistics for 20.0.5.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 36ms, Maximum = 36ms,

7、Average = 36ms配置 IP:#interface Ethernet0/0 port link-mode route ip address 20.0.1.1 255.255.255.0#interface Ethernet0/1 port link-mode route#interface Serial1/0 link-protocol ppp#interface Serial2/0 link-protocol ppp ip address 20.0.2.1 255.255.255.0#配置 OSPF:#ospf 1 area 0.0.0.0 network 0.0.0.0 255.

8、255.255.255#路由表:r1display ip routing-tableRouting Tables: Public Destinations : 10 Routes : 10Destination/Mask Proto Pre Cost NextHop Interface20.0.1.0/24 Direct 0 0 20.0.1.1 Eth0/020.0.1.1/32 Direct 0 0 127.0.0.1 InLoop020.0.2.0/24 Direct 0 0 20.0.2.1 S2/020.0.2.1/32 Direct 0 0 127.0.0.1 InLoop020.

9、0.2.2/32 Direct 0 0 20.0.2.2 S2/020.0.3.0/24 OSPF 10 1572 20.0.2.2 S2/020.0.4.0/24 OSPF 10 3124 20.0.2.2 S2/020.0.5.0/24 OSPF 10 3125 20.0.2.2 S2/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0接口信息:r1display ip int b*down: administratively down(s): spoofingInterfac

10、e Physical Protocol IP Address DescriptionAux0 down down unassigned Aux0 Inte.Cellular0/0 down down unassigned Cellular0.Eth0/0 up up 20.0.1.1 Ethernet0.Eth0/1 down down unassigned Ethernet0.S1/0 down down unassigned Serial1/0.S2/0 up up 20.0.2.1 Serial2/0.測試連通性:C:Documents and Settingsstudping 20.0

11、.5.2Pinging 20.0.5.2 with 32 bytes of data:Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Ping statistics for 20.0.5.2: Packets: Sent = 4, Received = 4, Lost =

12、 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 36ms, Maximum = 36ms, Average = 36ms配置靜態(tài)路由:R1ip routR1ip route-static 20.0.3.0 255.255.255.0 20.0.2.2R1ip routR1ip route-static 20.0.4.0 255.255.255.0 20.0.2.2R1ip routR1ip route-static 20.0.5.0 255.255.255 .0 20.0.2.2測試連通性:R1ping

13、20.0.5.2 PING 20.0.1.1: 56 data bytes, press CTRL_C to break Reply from 20.0.1.1: bytes=56 Sequence=1 ttl=255 time=25 ms Reply from 20.0.1.1: bytes=56 Sequence=2 ttl=255 time=24 ms Reply from 20.0.1.1: bytes=56 Sequence=3 ttl=255 time=25 ms Reply from 20.0.1.1: bytes=56 Sequence=4 ttl=255 time=25 ms

14、 Reply from 20.0.1.1: bytes=56 Sequence=5 ttl=255 time=24 ms - 20.0.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received0.00% packet lossround-trip min/avg/max = 24/24/25 msR2:配置RIP:#rip 1 version 2 network 0.0.0.0#路由表:H3C-rip-1display ip routing-tableRouting Tables: Public Destination

15、s : 12 Routes : 12Destination/Mask Proto Pre Cost NextHop Interface20.0.1.0/24 RIP 100 1 20.0.2.1 S2/020.0.2.0/24 Direct 0 0 20.0.2.2 S2/020.0.2.1/32 Direct 0 0 20.0.2.1 S2/020.0.2.2/32 Direct 0 0 127.0.0.1 InLoop020.0.3.0/24 Direct 0 0 20.0.3.1 Eth0/020.0.3.1/32 Direct 0 0 127.0.0.1 InLoop020.0.4.0

16、/24 Direct 0 0 20.0.4.1 S1/020.0.4.1/32 Direct 0 0 127.0.0.1 InLoop020.0.4.2/32 Direct 0 0 20.0.4.2 S1/020.0.5.0/24 RIP 100 1 20.0.4.2 S1/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0接口信息:H3C-rip-1display ip int b*down: administratively down(s): spoofingInterface

17、 Physical Protocol IP Address DescriptionAux0 down down unassigned Aux0 Inte.Cellular0/0 down down unassigned Cellular0.Eth0/0 up up 20.0.3.1 Ethernet0.Eth0/1 down down unassigned Ethernet0.S1/0 up up 20.0.4.1 Serial1/0.S2/0 up up 20.0.2.2 Serial2/0.測試連通性:C:Documents and Settingsstudping 20.0.5.2Pin

18、ging 20.0.5.2 with 32 bytes of data:Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Ping statistics for 20.0.5.2: Packets: Sent = 4, Received = 4, Lost = 0 (0%

19、loss),Approximate round trip times in milli-seconds:Minimum = 36ms, Maximum = 36ms, Average = 36ms配置IP:#interface Ethernet0/0 port link-mode route ip address 20.0.3.1 255.255.255.0#interface Ethernet0/1 port link-mode route#interface Serial1/0 link-protocol ppp ip address 20.0.4.1 255.255.255.0#inte

20、rface Serial2/0 link-protocol ppp ip address 20.0.2.2 255.255.255.0#配置OSPF:#ospf 1 area 0.0.0.0 network 0.0.0.0 255.255.255.255#路由表:H3Cdisplay ip routing-tableRouting Tables: Public Destinations : 12 Routes : 12Destination/Mask Proto Pre Cost NextHop Interface20.0.1.0/24 OSPF 10 1563 20.0.2.1 S2/020

21、.0.2.0/24 Direct 0 0 20.0.2.2 S2/020.0.2.1/32 Direct 0 0 20.0.2.1 S2/020.0.2.2/32 Direct 0 0 127.0.0.1 InLoop020.0.3.0/24 Direct 0 0 20.0.3.1 Eth0/020.0.4.0/24 Direct 0 0 20.0.4.1 S1/020.0.4.1/32 Direct 0 0 127.0.0.1 InLoop020.0.4.2/32 Direct 0 0 20.0.4.2 S1/020.0.5.0/24 OSPF 10 1563 20.0.4.2 S1/012

22、7.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0接口信息:H3Cdisplay ip int b*down: administratively down(s): spoofingInterface Physical Protocol IP Address DescriptionAux0 down down unassigned Aux0 Inte.Cellular0/0 down down unassigned Cellular0.Eth0/0 up up 20.0.3.1 Ether

23、net0.Eth0/1 down down unassigned Ethernet0.S1/0 up up 20.0.4.1 Serial1/0.S2/0 up up 20.0.2.2 Serial2/0.測試連通性:C:Documents and Settingsstudping 20.0.5.2Pinging 20.0.5.2 with 32 bytes of data:Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Reply from 20.0.5

24、.2: bytes=32 time=36ms TTL=253Reply from 20.0.5.2: bytes=32 time=36ms TTL=253Ping statistics for 20.0.5.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 36ms, Maximum = 36ms, Average = 36ms配置靜態(tài)路由:R2ip routR2ip route-static 20.0.1.0 255.25

25、5.255.0 20.0.2.2R2ip routR2ip route-static 20.0.5.0 255.255.255 .0 20.0.2.2測試連通性:R2ping 20.0.5.2 PING 20.0.5.2: 56 data bytes, press CTRL_C to breakReply from 20.0.5.2: bytes=56 Sequence=1 ttl=127 time=25 ms Reply from 20.0.5.2: bytes=56 Sequence=2 ttl=127 time=25 ms Reply from 20.0.5.2: bytes=56 Se

26、quence=3 ttl=127 time=24 ms Reply from 20.0.5.2: bytes=56 Sequence=4 ttl=127 time=25 ms Reply from 20.0.5.2: bytes=56 Sequence=5 ttl=127 time=25 ms - 20.0.5.2 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet lossround-trip min/avg/max = 24/24/25 msR3:配置RIP:#rip 1 version 2

27、 network 0.0.0.0#路由表:H3Cdisplay ip routing-tableRouting Tables: PublicDestinations : 10 Routes : 10Destination/Mask Proto Pre Cost NextHop Interface20.0.1.0/24 OSPF 10 3125 20.0.4.1 S1/020.0.2.0/24 OSPF 10 3124 20.0.4.1 S1/020.0.3.0/24 OSPF 10 1572 20.0.4.1 S1/020.0.4.0/24 Direct 0 0 20.0.4.2 S1/020

28、.0.4.1/32 Direct 0 0 20.0.4.1 S1/020.0.4.2/32 Direct 0 0 127.0.0.1 InLoop020.0.5.0/24 Direct 0 0 20.0.5.1 Eth0/020.0.5.1/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0接口信息:H3Cdisplay ip int b*down: administratively down(s): spoofingIn

29、terface Physical Protocol IP Address DescriptionAux0 down down unassigned Aux0 Inte.Cellular0/0 down down unassigned Cellular0.Eth0/0 up up 20.0.5.1 Ethernet0.Eth0/1 down down 10.0.0.9 Ethernet0.S1/0 up up 20.0.4.2 Serial1/0.S2/0 down down 2.0.0.1 Serial2/0.測試連通性:C:Documents and Settingsstudping 20.

30、0.3.2Pinging 20.0.3.2 with 32 bytes of data:Reply from 20.0.3.2: bytes=32 time=36ms TTL=253Reply from 20.0.3.2: bytes=32 time=36ms TTL=253Reply from 20.0.3.2: bytes=32 time=36ms TTL=253Reply from 20.0.3.2: bytes=32 time=36ms TTL=253Ping statistics for 20.0.3.2: Packets: Sent = 4, Received = 4, Lost

31、= 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 36ms, Maximum = 36ms, Average = 36ms配置 IP:#interface Ethernet0/0 port link-mode route ip address 20.0.5.1 255.255.255.0#interface Ethernet0/1 port link-mode route#interface Serial1/0 link-protocol ppp ip address 20.0.4.2 255.255.2

32、55.0#interface Serial2/0 link-protocol ppp#配置 OSPF:ospf 1 area 0.0.0.0 network 0.0.0.0 255.255.255.255#路由表:r3display ip routing-tableRouting Tables: Public Destinations : 10 Routes : 10Destination/Mask Proto Pre Cost NextHop Interface20.0.1.0/24 OSPF 10 1572 20.0.1.1 S2/020.0.1.1/32 Direct 0 0 127.0.0.1 InLoop020.0.2.0/24 OSPF 10 3124 20.0.2.1 S2/020.0.2.1/32 Direct 0 0 127.0.0.1 InLoop020.0.2.2/32 Direct 0 0 20.0.2.2 S2/020.0.3.0/24 OSPF 10 3125 20.0.2.2 S2/020.0.4.0/24 Direct 0

溫馨提示

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

評論

0/150

提交評論