![計算機網(wǎng)絡課程試驗報告_第1頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/18/6e586c29-d99f-466e-8bdb-43c81963f6ae/6e586c29-d99f-466e-8bdb-43c81963f6ae1.gif)
![計算機網(wǎng)絡課程試驗報告_第2頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/18/6e586c29-d99f-466e-8bdb-43c81963f6ae/6e586c29-d99f-466e-8bdb-43c81963f6ae2.gif)
![計算機網(wǎng)絡課程試驗報告_第3頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/18/6e586c29-d99f-466e-8bdb-43c81963f6ae/6e586c29-d99f-466e-8bdb-43c81963f6ae3.gif)
![計算機網(wǎng)絡課程試驗報告_第4頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/18/6e586c29-d99f-466e-8bdb-43c81963f6ae/6e586c29-d99f-466e-8bdb-43c81963f6ae4.gif)
![計算機網(wǎng)絡課程試驗報告_第5頁](http://file3.renrendoc.com/fileroot_temp3/2021-12/18/6e586c29-d99f-466e-8bdb-43c81963f6ae/6e586c29-d99f-466e-8bdb-43c81963f6ae5.gif)
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、v1.0可編輯可修改電子科技大學計算機科學與工程學院標準實驗報告課程名稱 計算機網(wǎng)絡基礎電子科技大學教務處制表電子科技大學 實驗報告 學生姓名:XX學號:指導教師:實驗地點:實驗時間:實驗1交換機基本配置【實驗名稱】 交換機的基本配置【實驗學時】2【實驗原理】交換機的管理方式基本分為兩種:帶內(nèi)管理和帶外管理。通過交換機的Con sole 口管理交換機屬于帶外管理, 不占用交換機的網(wǎng)絡接口, 其特點是需要使用配置線纜, 近距離配 置。第一次配置交換機時必須利用 Console端口進行配置。交換機的命令行操作模式,主要包括:用戶模式、特權模式、全局配置模式、端口模 式等幾種。用戶模式進入交換機后得
2、到的第一個操作模式,該模式下可以簡單查看交換機的軟、硬件版本信息,并進行簡單的測試。用戶模式提示符為switch特權模式由用戶模式進入的下一級模式,該模式下可以對交換機的配置文件進行管理,查看交換機的配置信息,進行網(wǎng)絡的測試和調(diào)試等。特權模式提示符為 switch#全局配置模式屬于特權模式的下一級模式,該模式下可以配置交換機的全局性參數(shù)(如主機名、登錄信息等)。在該模式下可以進入下一級的配置模式,對交換 機具體的功能進行配置。全局模式提示符為switch(co nfig)#端口模式屬于全局模式的下一級模式,該模式下可以對交換機的端口進行參數(shù)配置。端口模式提示符為switch(co nfig-i
3、f)#【實驗目的】掌握交換機命令行各種操作模式的區(qū)別,能夠使用各種幫助信息,以及用命令進行基本的配置。【實驗內(nèi)容】假設是某公司新進的網(wǎng)管,公司要求你熟悉網(wǎng)絡產(chǎn)品,公司采用全系列銳捷網(wǎng)絡產(chǎn)品, 首先要求你登錄交換機,了解、掌握交換機的命令行操作技巧, 以及如何使用一些基本命令 進行配置。需要在交換機上熟悉各種不同的配置模式以及如何在配置模式間切換,使用命令進行基本的配置,并熟悉命令行界面的操作技巧?!緦嶒炘O備】三層交換機1臺【實驗步驟】第一步:交換機各個操作模式直接的切換Swi tch>enabl e-Switch#coafie rermltlaIintez conf ignrati口口
4、ccmiELandg, one per Lieie - EndCNTL/ Z -Swi tch (cam. fig ) # in t erf ace fa st 11 ii e xne t 0/1Switch(config-ifJ 9Switch (eonfig-ifSvi tch (esrafig)fasti thG/2StJitch;i第二步:交換機命令行界面基本功能宣淸i匚匚h ; 口三ig) 盟瓷耳日匸2匚hEEa國匸 OflSrixeh (conf ig-if *Switch#S5ifS -£ COMF1 C- I z Can£ J. g-uredi £
5、rcm ccnscle b y aonsol e"ZSwitehtpinij 1.1/1.1Ttp« JCap» sa-quanc to.S ending 5鼻 100-byte ICMP Echos ta 1. 1.1.1 "timeouit. if 2 s econ da :呂口匚c巳勻占 匸mte is 0 f呂匚aent ; OZS)Swi 占 chi第三步:配置交換機的名稱和每日提示信息Switch(co nfig)#hos tn ame SW-1!使用host name命令更改交換機的名稱SW-1(config)# banner motd $
6、!使用banner命令設置交換機的每日提示信息,參數(shù)motd指定以哪個字符為信息的結束符Sh*icehtcoci£j.flure tcfaIh-bLccmfLTurniKi乩工h* sac per Lna Ena9Z.SVl ccti cozzEig-1 fB.aarcnzff SW-1S3-1 ; QinCig ;xxkrd Sklute± lilXJ. j-age. Er. MlcJti CJhe ch±za.c"u Bi 1 fiSV-l Ecmfig: tS»-丄;H=Z3i:ljo f EZLtif15Y3-5-CWFT?_r Cmf
7、iguEed 氐cm w環(huán)rwpLe by cwiwleCMCSH-1 ciznO Is kcvfxass UTL'JIN co sat i-TAr?«a.B第四步:配置接口狀態(tài)銳捷全系列交換機 Fastethernet 接口默認情況下是 10M/100Mbit/s自適應端口,雙工 模式也為自適應(端口速率、雙工模式可配置)。默認情況下,所有交換機端口均開啟。如果網(wǎng)絡中存在一些型號比較舊的主機,還在使用10Mbit/s半雙工的網(wǎng)卡,此時為了能夠?qū)崿F(xiàn)主機之間的正常訪問, 應當在交換機上進行相應的配置, 把連接這些主機的交換機 端口速率設為10Mbit/s,傳輸模式設為半雙工。S
8、岡-confi guce 匚rxiimlEntae canf Lguracion csmaands cna-ina £nd with 口TIL2 Sl (configi) tint-irfdCG0/1f spaed 10SSfl (CQnliJ-IT) grduplex J141C%LIHK5-CEiiNGZ:. Tnte = ±e匚已 Fa.stStE.e = ne0/1 r dia.ngsd stable t- 己口麗匚IKir3.0TO SttDC'WT - L-zia p工口tc:cal mil 二zrt 口二£ jlu口±2thi!Qr
9、LC:七二/丄匸 cJa-ngadi st sO- dDVE1iL INX-5 - CHM1GZ D -ITae 尸>審1更一匕旨工£出二口#】卡 uh&ijg 獨Q 豐匸LO up+匸 TNZE 耳 OTO &-UP-K?5iN : Line pcocccal anerf ace Fathe x net 1 r chcnfedi seeQ uprtii3 is a Accesspgzx'£W-1 (ccnf x gri-x) f flq sh-utdownSSf-11 con*Hj-XX) deacxLpXi.anS5f-1 (confi-i
10、f) tend£匸匚rn ccn.= cL£ by can = de 0/1prtcol u up (canxet&d)SS-1#%SYS-£-CCN?IG_I: ConiLguzed ahet-r xxi» as £ ac« 藝 啟七 h<GMn.a*tFastitnem色上0> L i 尊 qp, lineKb rdu8a n ia LB-ne* p addr««a is 0050 . Ofae 1901>bi a 0050- . Of*-? .1901)DH-JCXlptLaei.脾
11、Th.;L Li 心為曲 A 昌pEiE卿show interface: fatxEhcrnti 0/1&ddz»s 0050.0fec.19ai (bia ODSD. Dfec.190 丄)&a匸E匸上門匸Ofl. ii 謝.11 n« protaeel ia up (esrme&ted) Hardware 19 Lane«D&fleEiptiem:RThlfl盤 Aeeaaapazt"10000 Kbit, DLY 1000 usee.MTU 1500 bytes, BWEfillability 25S/25S, ix
12、load l/25Sr rxload 1/2S5EEieapsulaDlen ARPA, loopback not setKeepalive 自色七 (ID 自色亡)HaIf-duplexF 10Mb/aifiptit flaw-cant;13L is offr 口utput fIfiw-cont£d! £s offAJ1P tj?pei A3.PA, A2LP Tizneaut 04 : 00i00Last xnput 00 : 00: G 9 p. outpult 00 z 00: 0G r Qutpat; hang neverLast cleaning 口壬 *Bsh
13、aw int已工三au已ccon匸巳二:日 never工口pti七 queue :0/7S/ 0/ 0: size/ma.K/drops/flush.es) ; I-otal output drops :Queue ±ng st;ra 匸 Eg y: f if aOutpu匸 queue : 0/40 (sise/max :>5 minxitze input rate D bilzs/sec, 0 packets/sec5 minu.te output zat;e 0 bita/secp 0 packets/sec95E packers inp口匸* 1933S1 bytes,
14、0 old bufferdeceived 9S6 broadcaslzs, 0 zmzits p 0 gia.nrts,0 tihLrottles ±nput< errors F 0 CKG, 0 framer 0 nveEEiinr 0 ignored, 0 abort;0 watcHdcrij 0 HmltiCaL旦匸. C pause input; input packets with dribble condition detected23S7 packers output, 263570 bytegf 0 underruns0 output erroxff, 0 co
15、llisions, 10 interface resets0 babble?f 0 late collision 0 deferred0 iQst caErie-Ep 0 nc carrier0 output buffer failuze9r 0 output buffers svrapp«d ouSW-lt第五步:查看交換機的系統(tǒng)和配置信息SW-1#Show version!查看交換機的系統(tǒng)信息SW-1#Show runnin g-c onfig!查看交換機的配置信息5v1.0可編輯可修改S» -1# show zunnj.ng-c cnf ig Building con
16、f Lgnx a* ion. _ interface FastEthernetO/17Curzeat ccnfifura ti en1116 byr&sversion 1左企J1U -fei£. v 丄umno =esvice匚 i sea*lug ddtrt- trlaiK ILust-C debug date time msecnsqrvieo.avatd-fineeypEiefihastnajM SW-1第六步:保存配置F面的3條命令都可以保存配置。SW-1#Copy runnin g-c onfig startup-c onfigSW-1#Write memorySW
17、-1#WriteBuilding cnfigursticn. OK5¥-lt|【實驗數(shù)據(jù)及結果分析】SW-1#show running-configBuilding configuration.Current configuration : 1116 bytes!versionno service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname SW-1!v1.0可編輯可修改description "Thi
18、s is a Accessport" duplex halfspeed 10!interface FastEthernetO/2!interface FastEthernetO/3!interface FastEthernetO/4!interface FastEthernetO/5!interface FastEthernetO/6!interface FastEthernetO/7!interface FastEthernetO/8!interface FastEthernetO/9!interface FastEthernet0/10!interface FastEtherne
19、tO/11!interface FastEthernetO/12!interface FastEthernetO/13#v1.0可編輯可修改interface FastEthernetO/14 interface FastEthernetO/15 interface FastEthernetO/16 interface FastEthernetO/17 interface FastEthernetO/18 interface FastEthernetO/19 interface FastEthernet0/20 interface FastEthernetO/21 interface Fast
20、EthernetO/22 interface FastEthernetO/23 interface FastEthernetO/24 interface GigabitEthernetO/1 interface Vlanlno ip addressshutdown!ip classless!banner motd ACAC!line con 0line vty 0 4login!end【實驗結論】了解了交換機的命令行界面和基本操作,通過簡單的操作完成了交換機的基本配置【總結及心得體會】命令行操作進行自動補齊或命令簡寫時,要求所簡寫的字母必須能夠惟一區(qū)別該命令。配置設備名稱的有效字符是22個字節(jié)
21、?!緦Ρ緦嶒炦^程及方法、手段的改進建議會】希望能進一步了解產(chǎn)生的配置文件的具體說明實驗2跨交換機實現(xiàn)VLAN【實驗名稱】跨交換機實現(xiàn)VLAN【實驗學時】2【實驗原理】VLAN (Virtual Local Area Network,虛擬局域網(wǎng))是指在一個物理網(wǎng)段內(nèi),進行邏輯 的劃分,劃分成若干個虛擬局域網(wǎng)。VLAN最大的特性是不受物理位置的限制,可以進行靈活的劃分。VLANM備了一個物理網(wǎng)段所具備的特性。相同VLAN內(nèi)的主機可以互相直接訪問,不同VLAN間的主機之間互相訪問必須經(jīng)由路由設備進行轉(zhuǎn)發(fā)。廣播數(shù)據(jù)包只可以在本 VLAN內(nèi)進行傳播,不能傳輸?shù)狡渌鸙LAN中。Port Vlan是實現(xiàn)VL
22、AN的方式之一,Port Vlan是利用交換機的端口進行 VLAN的戈U分, 一個端口只能屬于一個 VLANTag Vla n 是基于 :交換機端口的另外一種類型,主要用于實現(xiàn)跨交換機的相同VLAN內(nèi)主機之間可以直接訪問,同時對于不同VLAN的主機進行隔離。Tag Vlan遵循了協(xié)議的標準。在利用配置了 Tag vlan的接口進行數(shù)據(jù)傳輸時,需要在數(shù)據(jù)幀內(nèi)添加 4個字節(jié)的標簽信息,用于標識該數(shù)據(jù)幀屬于哪個VLAN以便于對端交換機接收到數(shù)據(jù)幀后進行準確的過濾?!緦嶒災康摹空莆杖绾卧诮粨Q機上劃分基于端口的VLAN如何給VLAN內(nèi)添加端口,理解跨交換機之間VLAN的特點?!緦嶒瀮?nèi)容】假設某企業(yè)有兩個
23、主要部門:銷售部和技術部,其中銷售部門的個人計算機系統(tǒng)連接在不同的交換機上,他們之間需要相互進行通信,但為了數(shù)據(jù)安全起見,銷售部和技術部需要進行相互隔離,現(xiàn)要在交換機上做適當配置來實現(xiàn)這一目標。通過劃分Port VLAN實現(xiàn)交換機的端口隔離,然后使在同一VLAN里的計算機系統(tǒng)能跨17交換機進行相互通信,而在不同VLAN里的計算機系統(tǒng)不能進行相互通信?!緦嶒炘O備】三層交換機 1 臺二層交換機 1 臺【實驗步驟】第一步:配置兩臺交換機的主機名第二步:在三層交換機上劃分VLAN添加端口L3-SW1JL3-SK config-vlan)vlan 20L3-SK config-vlan) tnanne
24、jxahuL3-SW '.config-vlan) texitL3-SW tcnff tithornst O/LCl czanf ig-i-ranqe) #gwitch.pcrt imde sucesiaL3-SHccnigif-range)tswitchpzrt dcsss vlan 10L3-JHiconfig-if-ringe)texitL3-SW configjInterface cange fasiiEthernet 0/11-15L3-S ' can.£ig-if-i:&nge) fawitchpofv ude acceajL3-SMc口nfi穹亠
25、1蘭亠上angm)舉自甘丄tchmu工匸 access vl=n 201>3 SW - czcnf i g- i 蘭一r a n-ge f 羊 asci, tL3-SW (config; #第三步:在二層交換機上劃分VLAN添加端口LZ-STf (config) #vldn 10L2-S¥ (cnnflg-vlan?LZSU 'canfi-vlan; #vlan.LZ-lSTt ;can,f j-g-vlsanJ oamieLiZ - £"W ; confxgvlseziJL2-ETT i: confi iri-teracerane stithern
26、et 0/ 10L2-SW i config- i f-xanje t avitchport inode acce 旦 sL2*SW (config*i f-x*ngr«> # svitchpart access vlan 10L2-SW con££g- iange # axitLN STJ-;ennf£gH第四步:設置交換機之間的鏈路為TrunkL3-SW (conf i-g) 91nt«r faea fastZho-EnA9& QflL3-SWig-ifftrunk ancapsul&XQn dotlqL3»
27、SW(config-lf>fswltchporT sode trunkLINKBlOTO-Ei-UPDOWN : Lxne prntncz口 1. czi Interf sac e Fastitib-ezznetO/ lp czhanged downLINEFROTO&UPDOWN; Line pro&ocQl on.Fas-tEthernetO/1 j, changed0 upL3=SW i;eanf iq-±f > 軍旦匾1匸state 匸耳匸耳匸咅 tL2EW (configif) tswit:ciiport mode t;rxirtkLZNEBRO
28、TQ-5-UPDOWK zprat-a cal nn Int«iErfac 耳弓呂匸 E 匸h 耆 sn 自匕0/1changed 匸ta downLINimOTO-3-UPDOWN: Lins prcrcol cn In.ts*faes FatEchereisdO/L, changed 勺匸二to up:L2SW (canfigi±) fescxTt n mrv ar in第五步:查看 VLAN和Trunk的配置L2-SW#show vlanLZ-SWSli SYS-S-CONF IG_I: Csnfi gnirftd f Kent conn ole by cohb:oL
29、« jihew vlanTLM; NansStatuaPorta1de ami tE匚匸iveFaO/:,FaO/3P Fa074f Fa0/EF$0/12,FaO/13,FaO/14FaO/lS?Faa/L6PFaO/17rFaO/lSFaO/lSrF*a/20fF-O/;lrFaO/22FaO/23,Faa/24Gigl/lrGlgl/2Rise=haascriveFaO/S,Fa0/7p FaO/8, FaD/9FaO/lO2ajlshiiaclLiveId DSddi def a ult三匕七/ un sixp1003tnkeEi- x:i ng-deaij-l Zm 匚匸
30、”51 supiaoifddinet-defaultac/unauplOOstzn4t"de faultcc/unsupVLANTie SAIDMTUParent RingNo Brid.g&No StpBrdgMadeTranslTcansS1enst 10 0Q01ISOCI 一0_?lOOaiaIS 00- - D0ZUenet lOOQiQ1500 一一001002fddi 101口甘2isoa- - 一=00L2-SW#show in terfaces fastEthernet 0/1 switchportLi-SWfrshow interfaces fastEtt
31、iernet 0/1 switciiportNat&e: FaO/1SwxT- cKpe zt 1 亙 na.b ledAchninis trative 1£口de : tzrixnkOpe r at 1 Dual. Mede : tz:i_LnkAjdmxnLLat工ai:壬寸辱 ToirLliriij Ziic apsul-at;! oti : dotlcjOpe era七 i 口即m J. Tmrvkim甲 ancaps-ulatLo n; 旦口七 Hgaf TEunting: CmAacsg Mod VLMTi 1 (dfau.lt)L3-SW#show vlansh
32、owVLSfl;- r =riara-103ti,=.Q=h.Dt:activeran/S B ran/a ,rsn/-, ranizlfa.0/17 «a.a/L = r FsaO,丄自FdD/Z: FbQ/31?F電吃卸 fa9/£4GigCi/1,器衛(wèi)屋FqEJE. Faa/7, FaC/e. FaOSFa.C r10iC triTFa/: 'll, "a&/L2, ThC /13p th:弓Faaris1Q141Q1EVUNf4±z.ir:<ide- -»u 11 t ZTLBt- d* 二二口It皿a&X
33、I£>JflU1ClU-t1C0C9LiSd:IQED.=-tl£0C10LEO-za±EL=:tLC 02:LtQ1032fdkj£10 id 02LSOD1093crlaiooai"g10s t10151: rr.fi-EXCL 口 <0日L50=-.QJTjZ» 號 DAfi叮 LA1I 二103?r«i-oefaidit】口藥e Qk-fij; 陣 i ndAfnS-'EPajronT暮匕爐tExdsM-da金丄 Txuifljiteos.PrijnMrTypcPortsLAM*L3-SW#sho
34、w interfaces fastEthernet 0/1 switchportL2-S»3hnv z-nt&sfaae fastZ0/1 at±tth.patt Nseb z i'aO/ 1Stritchport: SnahledI Admlnia匸Mods: trunkI Oparatianal Mods: trunkAimlniiMatiwe Trujiking incaiiaula匸Lan: dotlqCpezaticna 1 丁二uzikiuj Encapultisn dGtlq Neijntiaticn 二蘭 Trunliingr On|臨弋 7
35、LAN; 1 N乍匸第六步:驗證配置PC3和PC1都屬于 VLAN 10,它們的IP地址都在 C類網(wǎng)絡內(nèi),PC2屬于VLAN 20,它的IP地址在C類網(wǎng)絡內(nèi),可以看到從 PC3是可以ping通PC1的,如錯誤味找到引用源。所示,而從PC3是不能ping通PC2的,如錯誤!未找到引用源。 所示。PC,p 丄軸 192.150.10-173ringing 192.13- I0 -173 with 32 byt&a of 且三七直:Replyfrom19E.160.10.173:I)yteB«32tiE5e=2O3nuf TTL=L28i<e£lyf£邊1
36、52,ia,io.173:bytfis-32Litae73iiuTTL-LZeReplyf E 口匸192.L£B .10.173:l?yEe5=iL匸iias=m 咅 ouTTL=L2BReplyfrom192 .iee.io_173 :lsytesi=32t iire=93ni=?TTTLZHPiEig xtatistica For 192 .l&B . 10.173 ;Packets: £»nt 4, deceived « 4, Loat 0 (0 Laii)r ApprajeiEiate raufii trip tinej in Biil
37、li-5etead.9!MLimnnm 7 Sna r MaiiijnELirL = 202ms, Average = 117ms圖3-1從PC3可以ping通PC1peeing L92.1a_2&. tssPinging 19:.18,20,1&& with 32 bytea of data:Reou«at tilled one. Rgg電旦匸 time-d our .Request 匚 1 hk<1 out. Request nimE-d out;.Ping.19.2 Q . 155 :Packers: Sene 4F Keeeived 0, Las
38、t 4 (1001 Loss)j圖 3-2 從 PC3不能 ping 通 PC2此時,如果把PC1的連線轉(zhuǎn)移到屬于 VLAN20的端口上去,PC3和PC1將不再能夠ping通了,如錯誤!未找到引用源。所示。pOping 192 .168.10 .1*73P192 -169.10 .3_*73 wa_th 勺2a o£ data:plecjLiea'b t inzhe日 out;,t;isiedout -?含切包it; t izwd out *& ague a lx t i血電 d oil匸亠Ping sta 11 sitics for_iO_l 73 :Packe-t
39、 s: Sent: =4f Received = 0f Zom匸 =4(100% los9)r【實驗數(shù)據(jù)及結果分析】L3-SWL3-SW#show running configureA% Invalid input detected at 'A' marker.L3-SW#show running-configBuilding configuration.Current configuration : 1613 bytesversionno service timestamps log datetime msecno service timestamps debug datet
40、ime msecno service password-encryptionhostname L3-SWinterface FastEthernetO/1switchport trunk encapsulation dot1qswitchport mode trunkinterface FastEthernetO/2interface FastEthernet0/3interface FastEthernet0/4interface FastEthernet0/5interface FastEthernet0/6 switchport access vlan 10 switchport mod
41、e accessinterface FastEthernet0/7 switchport access vlan 10 switchport mode access interface FastEthernetO/8 switchport access vlan 10 switchport mode access !interface FastEthernet0/9 switchport access vlan 10 switchport mode access !interface FastEthernet0/10 switchport access vlan 10 switchport m
42、ode access !interface FastEthernet0/11 switchport access vlan 20 switchport mode access !interface FastEthernet0/12 switchport access vlan 20 switchport mode access !interface FastEthernet0/13 switchport access vlan 20 switchport mode access !interface FastEthernet0/14switchport access vlan 20switch
43、port mode accessv1.0可編輯可修改interface FastEthernetO/15 switchport access vlan 20 switchport mode access !interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interfac
44、e FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet0/1!interface Vlanlno ip addressshutdown!ip classless!line con 0line vty 0 4login!L2-SWL2-SW#show running-configBuilding configuration.Current configuration : 1286 bytes!versionno service timestamps log datetime msecno service ti
45、mestamps debug datetime msecno service password-encryption!hostname L2-SWinterface FastEthernetO/1#v1.0可編輯可修改switchport mode trunkinterface FastEthernetO/2interface FastEthernetO/3interface FastEthernetO/4interface FastEthernetO/5interface FastEthernetO/6 switchport access vlan 10 switchport mode ac
46、cessinterface FastEthernetO/7 switchport access vlan 10 switchport mode accessinterface FastEthernetO/8switchport access vlan 10switchport mode accessinterface FastEthernetO/9 switchport access vlan 10 switchport mode access switchport access vlan 10 switchport mode accessinterface FastEthernetO/11i
47、nterface FastEthernetO/12interface FastEthernetO/13interface FastEthernetO/14interface FastEthernetO/15interface FastEthernetO/16interface FastEthernetO/17interface FastEthernetO/18interface FastEthernetO/19interface FastEthernet0/20interface FastEthernetO/21interface FastEthernetO/22#v1.0可編輯可修改inte
48、rface FastEthernetO/23!interface FastEthernetO/24!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlanlno ip address shutdown!line con 0!line vty 0 4loginline vty 5 15loginend【實驗結論】了解了交換機的基本配置方法,VLAN的工作原理和配置方法,Trunk的工作原理和配置方法【總結及心得體會】VLAN1屬于系統(tǒng)的默認 VLAN不可以被刪除刪除某個 VLAN 使用 no 命令。例如:s
49、witch(config)#no vlan 10刪除當前某個 VLAN時,注意先將屬于該 VLAN的端口加入別的 VLAN再刪除VLAN【對本實驗過程及方法、手段的改進建議會】希望能進一步了解vlan的實際作用價值實驗3利用三層交換機實現(xiàn)VLAf間路由【實驗名稱】利用三層交換機實現(xiàn) VLA N間路由【實驗學時】4【實驗原理】在交換網(wǎng)絡中,通過VLAN對一個物理網(wǎng)絡進行了邏輯劃分,不同的VLAN之間是無法直接訪問的,必須通過三層的路由設備進行連接。一般利用路由器或三層交換機來實現(xiàn)不同VLAN之間的互相訪問。三層交換機和路由器具備網(wǎng)絡層的功能,能夠根據(jù)數(shù)據(jù)的IP包頭信息,進行選路和轉(zhuǎn)發(fā),從而實現(xiàn)不
50、同網(wǎng)段之間的訪問。直連路由是指:為三層設備的接口配置IP地址,并且激活該端口,三層設備會自動產(chǎn)生該接口 IP所在網(wǎng)段的直連路由信息。三層交換機實現(xiàn) VLA N互訪的原理是,利用三層交換機的路由功能,通過識別數(shù)據(jù)包的IP地址,查找路由表進行選路轉(zhuǎn)發(fā)。三層交換機利用直連路由可以實現(xiàn)不同VLAN之間的互相訪問。三層交換機給接口配置 IP地址,采用SVI (交換虛擬接口)的方式實現(xiàn) VLAN間互 連。SVI是指為交換機中的 VLAN創(chuàng)建虛擬接口,并且配置 IP地址?!緦嶒災康摹空莆杖绾卧谌龑咏粨Q機上配置SVI端口,實現(xiàn)VLAN間的路由。【實驗內(nèi)容】【實驗設備】三層交換機1臺二層交換機1臺【實驗步驟】第
51、一步:配置兩臺交換機的主機名第二步:在三層交換機上劃分VLAN添加端口,并設置 TrunkIL3-SH ccnfig-if) fswiLchpczL nriuik encap aula Lion dotlqL2-SW (ecrifig-if j (switc!hj>e*t Eide tsuakI %LINZ P3OTO- S-UPDOWN: Lijie protocol on 工 ut 歸匸Fa s the met /1, Lzthang-edtI O dOlWTlLINtP3OTO'SHUTDOWN: Lin» pcstouoJ. an匚Enue七0FI changs
52、dt° UP| L3-SH(eonfig-ifJ #exit第三步:在二層交換機上劃分VLAN添加端口,并設置 Trunk匚2G CEi±X9iftctxpart me日殳 tsrunk1 LINS PROTO- S - U PDOW:pracacal on I 軌 t也益三匸怎 E 巨ktE th匚話廉 *0/1$ clangs 1 二1為匸 匸o dswn4 Ni F SLOTO £ - U 匚口OUN: l-ne protacn 1 on 工 ii 匸ace KastE then he tO/1 tzHmngmcL七總 to up第四步:查看 VLAN和Tr
53、unk的配置L2-SW#show vla n29L2-SW(config)*L2-SH*%SYS-5-CONFIG_I: Ccnfigursd fram cannole tiy conaole flhow vlanVLMib;臺口皀Stat-usPerti1def a liltactLveFa0/2, Fa0/3r Fa(3/4r FaO/SFaO/llr Fa0/12r Fa0/13r FaO/14Fa0/l£r FaO/lCF Fa0/17, FaO/16FaO/19, Sa0/20r Fa0/;lr FaO/22FaC/23r Fa0/:4, Gigl/1, Gigl/210x
54、iaoslicuact i_veFaC/, Fa0/7r FaO/9, Fa0/9?a0/3.d2 2jishuae* i_ve1: 32fdd-i - de f ault:a £=£/ unsup1003token ringde f anil:act/- iznsup1004fddine匸一 de faultact/unsup1005trnet-dfaut尋匚t/un supVLM<TypeSAIDXHJRingNcBridgeKoSpBrdgMod-eTranslTs-ansZ110Q0011500010enet10001015000020enet100020160001002fddi1010021
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 蘇科版數(shù)學八年級上冊5.1《物體位置的確定》聽評課記錄
- 八年級道德與法治下冊第三單元人民當家作主第五課我國基本制度第3框基本政治制度(第1課時中國共產(chǎn)黨領導的多黨合作和政治協(xié)商制度)聽課評課記錄(新人教版)
- 人教版九年級數(shù)學上冊第二十五章概率初步《25.3用頻率估計概率》聽評課記錄
- 八年級思想讀本《6.2軍強才能國安》聽課評課記錄
- 小學二年級上乘法口算天天練
- 五年級下冊數(shù)學聽評課記錄《折紙》北師大版
- 孵化樓租賃合同范本
- 二零二五年度酒店設施租賃及使用權購買合同
- 外架工班組勞務分包協(xié)議書范本
- 工程項目全過程管理協(xié)議書范本
- 一級建造師繼續(xù)教育最全題庫及答案(新)
- 2022年高考湖南卷生物試題(含答案解析)
- GB/T 20909-2007鋼門窗
- GB/T 17854-1999埋弧焊用不銹鋼焊絲和焊劑
- GB/T 15593-2020輸血(液)器具用聚氯乙烯塑料
- 直線加速器專項施工方案
- 聯(lián)苯二氯芐生產(chǎn)工藝及產(chǎn)排污分析
- 儲能設備項目采購供應質(zhì)量管理方案
- 2022年全國卷高考語文答題卡格式
- 復旦大學簡介 (課堂PPT)
- CKD馬達使用說明
評論
0/150
提交評論