實驗四BosonNetsim路由配置_第1頁
實驗四BosonNetsim路由配置_第2頁
實驗四BosonNetsim路由配置_第3頁
實驗四BosonNetsim路由配置_第4頁
實驗四BosonNetsim路由配置_第5頁
已閱讀5頁,還剩3頁未讀 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、實驗四Boson Netsim的使用;路由配置一、實驗?zāi)康?、熟悉 Boson Netsim 軟件;2、 學(xué)會利用Boson Netsim進行靜態(tài)路由配置、動態(tài)路由 RIP/OSPF配置實驗說明般進行網(wǎng)絡(luò)配置的步驟如下: 根據(jù)設(shè)計的網(wǎng)絡(luò)拓撲結(jié)構(gòu),選擇網(wǎng)絡(luò)設(shè)備,并把這些網(wǎng)絡(luò)設(shè)備連接起來。 當(dāng)網(wǎng)絡(luò)設(shè)備按要求連接完成之后,保存以.top為后綴名。 再用網(wǎng)絡(luò)配置軟件打開剛才所存儲的網(wǎng)絡(luò)拓撲文件,進行網(wǎng)絡(luò)配置。(1)靜態(tài)路由配置在手工配置靜態(tài)路由時,需要在全局模式下執(zhí)行。一般命令執(zhí)行模式如下:例:Router(config)#ip route 192.168.1.0 255.255.255.0 192.

2、16822上圖為靜態(tài)路由配置的拓撲圖。3個Cisco 2514路由器分別為 Router1, Router2和Router3,兩臺PC分別是 PC1 和 PC2。Router1 的 Ethernet 0 接口連接 PC1,Router1 的 Serial 0 接口連接 Router2的Serial 0接口,用HDLC格式封裝;Router2的Serial 0接口提供時鐘 頻率,Router2的Serial 1接口連接Router3的Serial 0接口,用PPP格式封裝, Router2的Serial 1接口提供時鐘頻率;Router3的Ethernet 0接口連接PC2。5個 設(shè)備分別處于4

3、個不同的網(wǎng)段。各個設(shè)備的接口都有接口IP地址,子網(wǎng)掩碼均為255.255.255.0。在為每個路由器都配置了到達非直連網(wǎng)段的靜態(tài)路由后,使得兩臺PC能夠互相ping通。配置步驟:1 配置各路由器和PC的接口首先配置3個路由器和2臺PC的接口,然后再測試設(shè)備之間的連通性。1) 配置路由器 RouterlPress En ter to StartRouterRoutere nableRouter#con figure termi nalEn ter con figurati on comma nds, one per line. End with CNTL/Z.Router(co nfig)#ho

4、st name RouterlRouter1(c on fig)#i nterface ether net 0Router1(config-if)#ip address 192.168.1.1 255.255.255.0Router1(c on fig-if)# no shutdow n%LINK-3-UPDOWN: In terface EthernetO, chan ged state to upRouter1(config-if)#interface serial 0Router1(config-if)#encapsulation hdlcRouter1(config-if)#ip ad

5、dress 192.168.2.1 255.255.255.0Router1(c on fig-if)# no shutdow n%LINK-3-UPDOWN: In terface Ethernet0, chan ged state to up%LINK-3-UPDOWN: In terface Ethernet0, chan ged state to dow n %LINEPROTO-5-UPDOWN: Line protocol on In terface Serial0, cha nged state to dow nRouter1(co nfig-if)#同理配置路由器Router2

6、、Router3。2) 配置2臺PC用ipconfig命令配置PC1和PC2,如圖所示。Boson BOSS 5.0Copyright 1998-2003 Boson Softwarer Inc.Use the canrnand help to get startedPress Enter to beginC:C:ipconfig /ip 192.168.1.2 255.255.255.0C:ipconfig /dg 192.168.1.1C:2測試網(wǎng)絡(luò)的連通性在配置完成3個路由器和2臺PC后,可以利用路由器Router3來ping 路由器Routerl的Serial 0接口和Ethernet

7、 0接口,檢測是否可以pi ng通。 Router3#pi ng 192.16821可以看到,5個圓點表示不能ping通,路由器Router3到路由器Router1 的Serial 0接口和Ethernet 0接口都是不通的。之所以不通,是因為路由 器Router3沒有到達網(wǎng)絡(luò)192.168.1.0和192.168.2.0的路由。3 查看路由表信息可以使用show ip route命令來查看各個路由器的路由表信息。1)路由器Router1的路由表信息Router1#show ip routeCodes: C - conn ected, S - static, I - IGRP, R - RIP

8、, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, 0 - 0SPF, IA - OSPE inter areaE1 - OSPE external type 1, E2 - OSPE external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - can didate defaultU - per-user static routeGateway of last resort is not setC192.168.1.0/24 is direct

9、ly conn ected, Ethernet0C192.168.2.0/24 is directly conn ected, Serial0可以看到,路由器Router1只有兩個直連路由分別到達網(wǎng)絡(luò)192.168.1.0和 192.168.2.0,沒有到達網(wǎng)絡(luò) 192.168.3.0 和 192.168.4.0 的路 由,所以,在 Routerl 上 ping 網(wǎng)絡(luò) 192.168.3.0和 192.16840是 ping 不通 的。同樣,路由器Router2只有兩個直連路由分別到達網(wǎng)絡(luò) 192.168.2.0和 192.16830,沒有到達網(wǎng)絡(luò)192.168.1.0和192.168.4.0

10、的路由,所以,在 Router2上 ping 網(wǎng)絡(luò) 192.168.1.0和 192.168.4.0是 ping 不通的。為了能夠使非直連的網(wǎng)絡(luò)可以互通,可以通過手工配置的方法來添加 靜態(tài)路由。4. 配置靜態(tài)路由1)配置Router1到網(wǎng)絡(luò)192.168.3.0和192.168.4.0的靜態(tài)路由Router1#con figure termi nalEn ter con figurati on comma nds, one per line. End with CNTL/Z.Router1(co nfig)#ip route 192.168.3.0 255.255.255.0 192.168.

11、2.2Router1(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.2 Router1(co nfig)#5. 再次查看路由表信息1)查看路由器Router1的路由表信息Router1#show ip route6 .再次測試PC1和PC2之間的連通性可以看到,PC2可以ping通PC1,這表明PC1和PC2之間的3個路由器 配置的靜態(tài)路由在發(fā)揮作用。C:pi ng 192.168.1.27.再次查看路由器的配置可以通過show running-config命令再次查看各個路由器的配置信息。(2)動態(tài)路由RIP配置動態(tài)路由RIP拓撲圖

12、192.16&1.2sO: I92J6S.2.2si: 192J68.3Jutek2PCI192 1684.1PC2eO: 192.sO: 19216832Router IRouter 3eO: 192168.4.1sO: 192.16821配置步驟首先應(yīng)該配置好各個路由器接口,然后再啟動RIP協(xié)議,通過查看各個路 由器的路由配置信息,可以看出路由器已經(jīng)互相學(xué)習(xí)并更新了自己的路由 信息表,最終使得不在同一網(wǎng)段的PC可以互相ping通。1. 配置各個路由器和PC的接口2 啟動RIP協(xié)議1)在路由器Routerl上配置RIP協(xié)議Router1(config)#router ripRouter1(c

13、 on fig-router)# network 192.168.1.0Router1(co nfig-router)# network 192.168.2.0Router1(c on fig-router)#e ndRouter1#3. 查看各個路由器的路由表信息Router1#show ip route4. 可以使用show ip protocols命令查看各個路由器的路由公告信息5 .可以使用show running-config命令來查看路由器配置信息6.測試PC1和PC2之間的連通性(3) 動態(tài)路由OSPF配置1 配置各個路由器接口,并在各個路由器上配置 OSPF協(xié)議1)配置路由器R

14、outerl的各個接口及其OSPF協(xié)議RouterRoutere nableRouter#con figure termi nalEn ter con figurati on comma nds, one per line. End with CNTL/Z.Router(co nfig)#host name Router1Router1(c on fig)#i nterface ether net 0Router1(config-if)#ip address 192.168.5.1 255.255.255.0Router1(c on fig-if)# no shutdow n%LINK-3-U

15、PDOWN: In terface Ethernet0, chan ged state to upRouter1(config-if)#interface serial 0Router1(config-if)#ip address 192.168.2.1 255.255.255.0Router1(config-if)#clock rate 56000Router1(c on fig-if)# no shutdow n%LINK-3-UPDOWN: In terface Serial0, chan ged state to up%LINK-3-UPDOWN: In terface Serial0

16、, chan ged state to dow n %LINEPROTO-5-UPDOWN: Line protocol on In terface Serial0, cha nged state to dow n Router1(con fig-if)#i nterface serial 1Router1(config-if)#ip address 192.168.1.1 255.255.255.0Router1(config-if)#clock rate 56000Router1(c on fig-if)# no shutdow n%LINK-3-UPDOWN: In terface Se

17、rial1, chan ged state to up%LINK-3-UPDOWN: In terface Serial1, chan ged state to dow n %LINEPROTO-5-UPDOWN: Line protocol on In terface Serial1, cha nged state to dow nRouter1(co nfig-if)#exitRouter1(c on fig)#router ospf 1Router1(co nfig-router)# network 192.168.1.0 0.0.0.255 area 0Router1(co nfig-

18、router)# network 192.168.2.0 0.0.0.255 area 0Router1(co nfig-router)# network 192.168.5.0 0.0.0.255 area 0Router1(c on fig-router)#e nd%LINK-3-UPDOWN: In terface Serial0, chan ged state to up %LINEPROTO-5-UPDOWN: Line protocol on In terface Serial0, cha nged state to up2 .利用show running-config命令來顯示各個路由器的配置信息1)路由器Router1的配置信息Router1#show runnin g-c onfig3. 利用show ip route命令來查看各個路由器的路由表信息1)查看路由器Router1的路由表信息Router1#show ip route4. 測試各個路由器接口的連通性以路由器R

溫馨提示

  • 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)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論