




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
.../基于BosonNetSim的虛擬局域網(wǎng)和路由協(xié)議配置 姓名:王濤 學(xué)號(hào):pb07210360實(shí)驗(yàn)?zāi)康模?、學(xué)習(xí)交換機(jī)上VLAN的配置,驗(yàn)證VLAN的工作原理。2、學(xué)習(xí)路由器上路由協(xié)議的配置,查看路由表的內(nèi)容。3、完成實(shí)驗(yàn)報(bào)告,內(nèi)容包括網(wǎng)絡(luò)拓?fù)鋱D,交換機(jī)、路由器端口配置,VLAN和路由協(xié)議的配置命令、VLAN內(nèi)容〔showvlan、路由信息〔showiproute、實(shí)驗(yàn)室結(jié)果等。實(shí)驗(yàn)環(huán)境:模擬軟件BosonNetSim實(shí)驗(yàn)內(nèi)容:一:虛擬局域網(wǎng)的配置。1、用BosonNetworkDesigner繪制拓?fù)鋱D:2.PC機(jī)配置如下,其中相同顏色的主機(jī)處于一個(gè)部門。PC主機(jī)IP地址子網(wǎng)掩碼A1A2A3B1B2表2.主機(jī)IP配置在各自主機(jī)上,配置主機(jī)的IP地址:a1:IP maska2:IP maska3:IP maskb1:IP maskb2:IP maskpc設(shè)置完后可以用ipconfig來查看主機(jī)狀態(tài)〔如圖1,〔注:圖3只顯示a1的,其余主機(jī)情況類似圖1以上設(shè)置用到的代碼為:主機(jī): ipconfig/ipip_addrnet_mask對(duì)主機(jī)ip地址和掩碼進(jìn)行設(shè)置。Ping192.168.1.*[問題1]:每臺(tái)主機(jī)相互ping,查看哪些主機(jī)可以連通,哪些不可以?為什么?答:都可以連通,因?yàn)橛捎诂F(xiàn)在局域網(wǎng)還沒設(shè)定所有主機(jī)可以由交換機(jī)相連。交換機(jī):Sw1:Switch>enSwitch#vlandatabaseSwitch<vlan>#vlan2namedept1VLAN2added:Name:dept1Switch<vlan>#endSwitch#congSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch<config>#intfa0/1Switch<config-if>#switchportaccessvlan2Switch<config-if>#intfa0/3Switch<config-if>#switchportaccessvlan2Switch<config-if>#endSwitch#vlandatabaseSwitch<vlan>#vlan3namedept2VLAN3added:Name:dept2Switch<vlan>#endSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch<config>#intfa0/2Switch<config-if>#switchportaccessvlan3Switch<config>#intfa0/11Switch<config-if>#switchportmodetrunkSwitch<config-if>#endsw1配置如圖2:圖2Sw2:Switch>enSwitch#vlandatabaseSwitch<vlan>#vlan2namedept1VLAN2added:Name:dept1Switch<vlan>#vlan3namedept2VLAN3added:Name:dept2Switch<vlan>#endSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch<config>#intfa0/1Switch<config-if>#switchportaccessvlan3Switch<config-if>#intfa0/2Switch<config-if>#switchportaccessvlan3Switch<config>#intfa0/11Switch<config-if>#switchportmodetrunkSwitch<config-if>#end[問題2]:在配置VLAN之后,每臺(tái)主機(jī)相互ping,查看哪些主機(jī)可以連通,哪些不可以?為什么?答:〔1主機(jī)a1和a3相連〔2主機(jī)a2,b1和b2相連?!?與〔2的主機(jī)不連通。因?yàn)樵O(shè)置VLAN后,〔1〔2已經(jīng)處于不同的局域網(wǎng)中了,〔1在dept1中,〔2在dept2中。二:路由協(xié)議的配置。1、用BosonNetworkDesigner繪制拓?fù)鋱D:Pc選擇win98,switch選擇3550,router選擇4500其中router設(shè)置1slots;selectoptions<4Ethernet>按要求端口連線。1.在各臺(tái)主機(jī)上按表6配置主機(jī)IP地址、子網(wǎng)掩碼和默認(rèn)網(wǎng)關(guān)A1:A2:A3:B1:B2:C1:主機(jī)配置完后,回答以下問題:[問題3]:每臺(tái)主機(jī)相互ping,查看哪些主機(jī)可以連通,哪些不可以?為什么?答:由于路由器是工作在網(wǎng)絡(luò)層的,并且現(xiàn)在路由器現(xiàn)在還沒設(shè)定網(wǎng)絡(luò)協(xié)議,而交換機(jī)是工作在數(shù)據(jù)鏈路層,所以〔1A1、A2、A3互連〔2B1、B2互連〔3C1?!?〔2〔3互不相連!2.在各臺(tái)路由器上按表4配置路由器IP地址和路由協(xié)議a對(duì)各路由器端口按表4配置IP地址。Router1:Router>enRouter#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#intea0/0Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/0,changedstatetoupRouter<config-if>#intea0/1Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/1,changedstatetoupRouter<config-if>#endRouter2:Router>enRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#intea0/0Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/0,changedstatetoupRouter<config-if>#intea0/1Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/1,changedstatetoupRouter<config-if>#endRouter3:Router>enRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#intea0/0Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/0,changedstatetoupRouter<config-if>#intea0/1Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/1,changedstatetoupRouter<config-if>#intea0/2Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/2,changedstatetoupRouter<config-if>#end配置完路由器IP地址后回答以下問題:[問題4]:每臺(tái)主機(jī)相互ping,查看哪些主機(jī)可以連通,哪些不可以?為什么?答:結(jié)果和[問題3]相同。〔1A1、A2、A3互連〔2B1、B2互連〔3C1?!?〔2〔3互不相連!由于此時(shí)設(shè)了路由器的ip地址,但網(wǎng)絡(luò)協(xié)議仍然沒設(shè)定,所以局域網(wǎng)間不能相互通信。[問題5]:當(dāng)前每臺(tái)路由器的路由表是什么內(nèi)容?答:對(duì)3個(gè)路由器分別執(zhí)行命令showiproute即可得到結(jié)果:Router1:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.61.0isdirectlyconnected,Ethernet0/0C210.45.110.0isdirectlyconnected,Ethernet0/1Router2:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.62.0isdirectlyconnected,Ethernet0/0C210.45.112.0isdirectlyconnected,Ethernet0/1Router3:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.64.0isdirectlyconnected,Ethernet0/0C202.38.61.0isdirectlyconnected,Ethernet0/1C202.38.62.0isdirectlyconnected,Ethernet0/2b在各路由器配置路由協(xié)議。在各個(gè)路由器上分別配置RIP、OSPF或靜態(tài)路由協(xié)議。Router1:Router#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#routeripRouter<config-router>#endRouter2:Router#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#routeripRouter<config-router>#endRouter3:Router#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#routeripRouter<config-router>#end配置完路由器路由協(xié)議后回答以下問題:[問題6]:每臺(tái)主機(jī)相互ping,查看哪些主機(jī)可以連通,哪些不可以?為什么?答:所有主機(jī)都能互連!由于現(xiàn)在路由協(xié)議已經(jīng)設(shè)定,并且在動(dòng)態(tài)設(shè)定路由時(shí),將三條路徑都設(shè)定了。[問題7]:此時(shí)每臺(tái)路由器的路由表是什么內(nèi)容?答:對(duì)3個(gè)路由器分別執(zhí)行命令showiproute即可得到結(jié)果:Router1:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.61.0isdirectlyconnected,Ethernet0/0C210.45.110.0isdirectlyconnected,Ethernet0/1R202.38.64.0[120/1]via202.38.61.1,00:02:18,Ethernet0/0R210.45.112.0[120/2]via202.38.61.1,00:010:20,Ethernet0/0R202.38.62.0[120/1]via202.38.61.1,00:010:29,Ethernet0/0Router2:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.62.0isdirectlyconnected,Ethernet0/0C210.45.112.0isdirectlyconnected,Ethernet0/1R202.38.64.0[120/1]via202.38.62.1,00:09:32,Ethernet0/0R202.38.61.0[120/1]via202.38.62.1,00:09:31,Ethernet0/0R210.45.110.0[120/2]via202.38.62.1,00:02:29,Ethernet0/0Router3:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortis
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025湖南高速工程咨詢有限公司招聘專業(yè)技術(shù)人員22人筆試參考題庫附帶答案詳解
- 二零二五擔(dān)保合同與主合同的關(guān)系
- 二零二五技術(shù)服務(wù)合同格式模板
- 二零二五協(xié)議離婚手續(xù)辦理流程
- 2025樓層涂料施工合同
- 2025便利店加盟合同書(合同版本)
- 2025酒店宴會(huì)合同
- 2025項(xiàng)目管理服務(wù)合同(合同版本)
- 2025設(shè)備租賃合同案例
- 2025上海市知識(shí)產(chǎn)權(quán)許可合同
- 期中檢測(cè)卷2023-2024學(xué)年人教版數(shù)學(xué)八年級(jí)下冊(cè)
- (完整版)東南大學(xué)工程項(xiàng)目管理陸惠民第二章工程項(xiàng)目策劃和決策(課后習(xí)題答案)
- 地連墻施工質(zhì)量標(biāo)準(zhǔn)化手冊(cè)
- 《歌手大賽-小數(shù)加減混合運(yùn)算》教學(xué)反思
- 不動(dòng)產(chǎn)抵押物清單(新)
- 山東省實(shí)驗(yàn)科創(chuàng)班試題2022
- 文創(chuàng)產(chǎn)品設(shè)計(jì)開發(fā)(new)
- 輸變電工程標(biāo)準(zhǔn)化施工作業(yè)卡變電工程
- MSA-測(cè)量系統(tǒng)分析模板
- 10kV配電安裝工程施工方案
- 電機(jī)與變壓器(第6版)PPT完整全套教學(xué)課件
評(píng)論
0/150
提交評(píng)論