計算機網(wǎng)絡(luò)局域網(wǎng)的設(shè)計 實驗報告_第1頁
計算機網(wǎng)絡(luò)局域網(wǎng)的設(shè)計 實驗報告_第2頁
計算機網(wǎng)絡(luò)局域網(wǎng)的設(shè)計 實驗報告_第3頁
計算機網(wǎng)絡(luò)局域網(wǎng)的設(shè)計 實驗報告_第4頁
計算機網(wǎng)絡(luò)局域網(wǎng)的設(shè)計 實驗報告_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

計算機網(wǎng)絡(luò)《局域網(wǎng)的設(shè)計》姓名:學(xué)號:班級:指導(dǎo)教師:拓?fù)鋱D二、實驗所需設(shè)備3臺路由器,型號為:18413臺交換機,型號為:2950-246臺個人電腦,型號為:PC-PTServe-PT地址表設(shè)備接口IP地址子網(wǎng)掩碼默認(rèn)網(wǎng)關(guān)R1Se0/0/0172.17.12.1255.255.255.0不適用R2Se0/0/0172.17.12.2255.255.255.0不適用Se0/0/1172.17.23.1255.255.255.0R3Se0/0/1172.17.23.2255.255.255.0不適用S1Vlan99172.17.99.21255.255.255.0172.17.99.1S2Vlan99172.17.99.22255.255.255.0172.17.99.1PC1網(wǎng)卡172.17.10.31255.255.255.0172.17.10.1PC2網(wǎng)卡172.17.20.31255.255.255.0172.17.20.1PC3網(wǎng)卡172.17.20.32255.255.255.0172.17.20.1PC4網(wǎng)卡172.17.10.34255.255.255.0172.17.10.1PC5網(wǎng)卡172.17.34.35255.255.255.0172.17.34.1Serve網(wǎng)卡172.17.23.10255.255.255.0172.17.23.1二、實驗步驟任務(wù)1:基本交換機配置執(zhí)行根據(jù)地址表和以下說明配置S1和S2和S3交換機配置交換機主機名。禁用DNS查找。將執(zhí)行模式口令配置為class。為控制臺連接配置口令cisco。為vty連接配置口令cisco。S1顯示的輸出Switch>enableSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnameS1S1(config)#enablesecretclassS1(config)#noipdomain-lookupS1(config)#ipdefault-gateway172.17.99.21S1(config)#lineconsole0S1(config-line)#passwordciscoS1(config-line)#loginS1(config-line)#linevty015S1(config-line)#passwordciscoS1(config-line)#loginS1(config-line)#end%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleS1#copyrunning-configstartup-config任務(wù)2:配置并激活以太網(wǎng)接口使用地址表中的IP地址和默認(rèn)網(wǎng)關(guān)配置五臺PC的以太網(wǎng)接口任務(wù)3:在交換機上配置VLAN步驟1.在交換機S1上創(chuàng)建VLAN。在全局配置模式下使用vlanvlan-id命令將VLAN添加到交換機S1。創(chuàng)建VLAN之后,您將處于vlan配置模式,在該模式下可以使用vlanname命令為VLAN指定名稱。S1(config)#vlan99S1(config-vlan)#exitS1(config)#vlan10S1(config-vlan)#exitS1(config)#vlan20S1(config-vlan)#exit步驟2.在交換機上將交換機端口分配給VLAN。在接口配置模式下使用switchportaccessvlanvlan-id命令將端口分配給VLAN。S1(config)#interfacefastEthernet0/1S1(config-if)#switchportaccessvlan10S1(config-if)#interfacefastEthernet0/2S1(config-if)#switchportaccessvlan20S1(config-if)#endS1#copyrunning-configstartup-configDestinationfilename[startup-config]?[enter]Buildingconfiguration...[OK]步驟3.分配管理VLAN。在接口配置模式下,使用ipaddress命令為交換機分配管理IP地址。S1(config)#interfacevlan99S1(config-if)#ipaddress172.17.99.21255.255.255.0S1(config-if)#noshutdownS2(config)#interfacevlan99S2(config-if)#ipaddress172.17.99.22255.255.255.0S2(config-if)#noshutdownS3(config)#interfacevlan99S3(config-if)#ipaddress172.17.99.23255.255.255.0S3(config-if)#noshutdown步驟4.為所有交換機上的中繼端口配置中繼和本征VLAN。中繼是交換機之間的連接,它允許交換機交換所有VLAN的信息。默認(rèn)情況下,中繼端口屬于所有VLAN,而接入端口則僅屬于一個VLAN。S1(config)#interfacefa0/1S1(config-if)#switchportmodetrunkS1(config-if)#switchporttrunknativevlan99S1(config-if)#endS1(config)#interfacefa0/2S1(config-if)#switchportmodetrunkS1(config-if)#switchporttrunknativevlan99S1(config-if)#end使用showinterfacetrunk命令檢驗中繼的配置情況。S1#showinterfacetrunk步驟5.檢驗交換機之間是否能夠通信。從S1pingS2的管理地址。S1#ping172.17.99.22Typeescapesequencetoabort.Sending5,100-byteICMPEchosto172.17.99.22,timeoutis2seconds:..!!!Successrateis100percent(5/5),round-tripmin/avg/max=1/2/9ms任務(wù)4:對路由器進行基本配置。步驟1.在路由器上創(chuàng)建基本配置。將路由器主機名配置為R1,R2,R3。禁用DNS查找。將加密特權(quán)執(zhí)行模式口令配置為

class。為控制臺連接配置口令

cisco。為vty連接配置口令

cisco。Router#enRouter#conftRouter(config)#hostnameR1R1(config)#enablesecretclassR1(config)#lineconsole0R1(config-line)#passwordciscoR1(config-line)#loginR1(config-line)#linevty015R1(config-line)#passwordciscoR1(config-line)#loginR1(config-line)#endR1#copyrunning-configstartup-config任務(wù)5:配置中繼接口步驟1:在路由器上配置中繼接口。進入子接口配置模式建立中繼封裝將VLAN與子接口關(guān)聯(lián)起來為子接口分配一個VLAN中的IP地址R1(config)#interfacefastethernet0/1

R1(config-if)#noshutdown

R1(config-if)#interfacefastethernet0/0.10

R1(config-subif)#encapsulationdot1q10

R1(config-subif)#ipaddress172.17.10.1255.255.255.0

R1(config-if)#interfacefastethernet0/0.20

R1(config-subif)#encapsulationdot1q20

R1(config-subif)#ipaddress172.17.20.1255.255.255.0R1(config-if)#interfacefastethernet0/0.99

R1(config-subif)#encapsulationdot1q99

R1(config-subif)#ipaddress172.17.99.1255.255.255.0步驟2:子接口的配置R1#conftR1(config)#intfa0/0R1(config-if)#ipadd172.17.53.1255.255.255.0R1(config-if)#noshutdownR1(config-if)#intse0/0/0R1(config-if)#ipadd172.17.12.1255.255.255.0R1(config-if)#noshutdownR1(config-if)#exitR2#conftR2(config)#intse0/0/0R2(config-if)#ipadd172.17.12.2255.255.255.0R2(config-if)#noshutdownR2(config-if)#intse0/0/1R2(config-if)#ipadd172.17.23.1255.255.255.0R2(config-if)#noshutdownR2(config-if)#exitR3#conftR3(config-if)#intse0/0/0R3(config-if)#ipadd172.17.23.2255.255.255.0R3(config-if)#noshutdownR3(config-if)#intfa0/0R3(config-if)#ipadd172.17.34.1255.255.255.0R3(config-if))#noshutdownR3(config-if)#exit步驟3:配置路由協(xié)議R1(config)#routerrip R1(config-router)#version2R1(config-router)#noauto-summaryR1(config-router)#network172.17.1.0R1(config-router)#network

溫馨提示

  • 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

提交評論