計(jì)算機(jī)網(wǎng)絡(luò)-試驗(yàn)報(bào)告_第1頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)-試驗(yàn)報(bào)告_第2頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)-試驗(yàn)報(bào)告_第3頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)-試驗(yàn)報(bào)告_第4頁(yè)
計(jì)算機(jī)網(wǎng)絡(luò)-試驗(yàn)報(bào)告_第5頁(yè)
已閱讀5頁(yè),還剩50頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、電子科技大學(xué)計(jì)算機(jī)科學(xué)與工程學(xué)院標(biāo)準(zhǔn)實(shí)驗(yàn)報(bào)告(實(shí)驗(yàn))課程名稱計(jì)算機(jī)網(wǎng)絡(luò)基礎(chǔ)電子科技大學(xué)教務(wù)處制表電子科技大學(xué)實(shí)驗(yàn)報(bào)告、實(shí)驗(yàn)項(xiàng)目名稱:交換機(jī)和路由器的基本配置二、實(shí)驗(yàn)?zāi)康模豪斫夂驼莆战粨Q機(jī)和路由器的工作原理;掌握交換機(jī)和路由器命令行各種操 作模式的區(qū)別;能夠使用各種幫助信息,以及用命令進(jìn)行基本的配置。三、實(shí)驗(yàn)內(nèi)容:假設(shè)是某公司新進(jìn)的網(wǎng)管,公司要求你熟悉網(wǎng)絡(luò)產(chǎn)品。首先要求你登錄交換機(jī)或路由器,了解并掌握交換機(jī)和路由器的命令行操作, 以及如何使用一些基本命令對(duì)設(shè)備進(jìn)行配置, 包括交換機(jī)和路由器的設(shè)備名、登 錄時(shí)的描述信息、端口參數(shù)的基本配置,以及設(shè)備運(yùn)行狀態(tài)的查看。四、實(shí)驗(yàn)環(huán)境:2950*24 Sf

2、titchO1B41HcuterjPC-PTPCI交換機(jī)console方式連接圖路由器console方式連接圖五、實(shí)驗(yàn)設(shè)備交換機(jī)1臺(tái)、路由器1臺(tái)、計(jì)算機(jī)1臺(tái)。六、實(shí)驗(yàn)原理:交換機(jī)和路由器(以下簡(jiǎn)稱設(shè)備)的管理方式基本分為兩種:帶內(nèi)管理和帶 外管理。通過設(shè)備的Console口管理設(shè)備屬于帶外管理,不占用設(shè)備的網(wǎng)絡(luò)接口, 其特點(diǎn)是需要使用配置線纜,近距離配置。第一次配置交換機(jī)或路由器時(shí)必須利 用Console端口進(jìn)行配置。交換機(jī)或路由器的命令行操作模式,主要包括:用戶模式、特權(quán)模式、全局 配置模式、端口模式等幾種。用戶模式:進(jìn)入設(shè)備后得到的第一個(gè)操作模式,該模式下可以簡(jiǎn)單查看 設(shè)備的軟、硬件版本信

3、息,并進(jìn)行簡(jiǎn)單的測(cè)試。用戶模式提示符為switch 或 router特權(quán)模式:由用戶模式進(jìn)入的下一級(jí)模式,該模式下可以對(duì)設(shè)備的配置 文件進(jìn)行管理,查看設(shè)備的配置信息,進(jìn)行網(wǎng)絡(luò)的測(cè)試和調(diào)試等。特權(quán) 模式提示符為switch#或router#全局配置模式:屬于特權(quán)模式的下一級(jí)模式(子模式),該模式下可以配 置設(shè)備的全局性參數(shù)(如設(shè)備名、登錄信息等)。在該模式下可以進(jìn)入下 一級(jí)的配置模式,對(duì)設(shè)備的具體功能進(jìn)行配置。全局配置模式提示符為 switch(config)#或 router(config)#端口配置模式:屬于全局配置模式的下一級(jí)模式(子模式),該模式下可 以對(duì)交換機(jī)或路由器的網(wǎng)絡(luò)端口進(jìn)行參數(shù)

4、配置。端口模式提示符為 switch(config-if)# 或 router(config-if)#交換機(jī)或路由器的基本操作命令包括:Exit命令是退回到上一級(jí)操作模式。End命令是指用戶從特權(quán)模式以下級(jí)別直接返回到特權(quán)模式。交換機(jī)和路由器的命令行支持獲取幫助信息、命令的簡(jiǎn)寫、命令的自動(dòng)補(bǔ)齊、快捷鍵功能。配置交換機(jī)的設(shè)備名稱和配置交換機(jī)的描述信息必須在全局配置模 式下執(zhí)行。Hostname配置交換機(jī)和路由器的設(shè)備名稱。當(dāng)用戶登錄交換機(jī)或路由器時(shí), 你可能需要告訴用戶一些必要的信息。你可以通過設(shè)置標(biāo)題來達(dá)到這個(gè)目的。 你可以創(chuàng)建兩種類型的標(biāo)題:每日通知和登錄標(biāo)題。Banner motd配置交換

5、機(jī)和路由器每日提示信息。motd是message ofthe day的縮寫。Banner login配置交換機(jī)和路由器登錄提示信息, 位于每日提示信息 之后。查看交換機(jī)或路由器的系統(tǒng)和配置信息,相應(yīng)的查看命令要在特權(quán)模式下執(zhí) 行。Show version查看交換機(jī)或路由器的版本信息,可以查看到交換機(jī)或路 由器的硬件版本信息和軟件版本信息,用于進(jìn)行交換機(jī)路由器操作系統(tǒng) 升級(jí)時(shí)的依據(jù)。Show mac-address-tableli看交換機(jī)當(dāng)前的MAC地址表信息。Show ip route查看路由器中的路由表信息。Show running-config查看交換機(jī)路由器當(dāng)前生效的配置信息。七、實(shí)驗(yàn)步

6、驟.交換機(jī)各個(gè)操作模式直接的切換E*1土匕之hSwitch 0或星匕10 igurt tc-ruinalEnter confiatiratlan uonund% pvr lint. End with CNTLZ flDLf士盲LFih看二口/: 0/1Switch明浩eerfij firjtEae faCy22017060202006Suitch ccnfig-Lf tend計(jì)一耳機(jī)網(wǎng)絡(luò)實(shí)驗(yàn)5SYS-5-COUFI; Confxgutvd fcan Conaol* by Ccnsol*.交換機(jī)命令行界面基本功能Srsscn nuxJaz tc yuoccle AX3ct functionsel

7、ockKnage th system clrckznfigureInter conignratisn.cormecvOpen a terninaL 匚二nna匚事1二口copyCopy ,工。國(guó) one f1I 。debugfunctica* ttt *li ; wd*bu4 jdelete* tiltdirLi fit f 11A on * f llfiE/tB:disableTurn off priviigd crwLindsdll 5 connectDlsconnCE an exlscing uccwdek ennaut1*口enableIun on px.lvileged ucnnEL

8、arxi、匚一上土青 XJi XA /A tCffi&XLtExil z&b iho EXEC付明浩工”口口七xii fcon th- xXSC50170601202006SHOE#Di splay th ccntsnt of 3 fileLH 機(jī)網(wǎng)絹* 二;:nodetu3rinq in:maticnspin?fend cho iw5g鴕至reloadHdlv and ”二tci cold 上看,:*工fresumej.e=ump ati act4-e network tonnecti;riseup二kg Eh啟 SiTUI ConnEand itiiityshowShow rm tin i

9、 ng s 7srdir in5c ntAtian“La 工Op*n *connvcionSE1H 口Scl tzxkinal IinCpK*l.七工CULhIxdLZ* 工out 七 t; d 歸 ntLdlLliHtmdebugis&blc debugs mg fund lens see also debugr jvlanCcnfIgura VLAK pazAKiazazswriteVrlla running coTifiguFation to aasor/. n-七woh上r mninn】SvlrcKfn 自應(yīng) tThkgbl# SwitchtcDn?centigure connectS

10、wiLchlccn 匚Enttt ecniecmunds, 4n ptx Lint End vith CHTL/Z.ch (config) linger fe* ?thernIEEE &02.3付叫沽20 602(.20-16:|力機(jī)網(wǎng)絡(luò)/ Invalid, lput detected at a二比w工.Switchiconfxg) (Xnr*rf* E合土工三廠工以*t 0/1Swinch 4.配置接口狀態(tài)忖明潔門算乩網(wǎng)絡(luò)型皖hte(there enablecn*igural;lcTi ccmwncii, perwith ClUL Z.hekh*ro(config)0/1 heekheroI

11、 coniia-if)tpeed 10 hbekKe工二,zzr.*i 5-z.* f dup31 h_i.2.* hekh*rc? ( ccri;ig-2. ) tna 與tiutd口wn htekherc(ccnfig-if)*This apn by h餐上 h*ichi:Q (conf ig-if) *ni h4kh*rot 工金_工:CcnfiLiEtd -rottby ccnsolcheekher = tshew interface 日巧工三thwrn+t 0/1 Fistthrntj/l li dewn, line pris down disabled Hardvar ic Lan

12、ce ti. k uOCOx 70*d. cOOl - Ba 000.7 0ttd.cODX)Descziptlon : *Thls b open by heekher c BM 1000CJ Kb工t, DLI 1000 usee, relLability 2aS, txlcad 1 /2a5rxlsad 1/2sz Enoipii larlon A3 PA, I oopbidt not 1七 Ket41iv t (IO Half-duplex, lotw/s input ficwcom:rcl 工自 off, output fIcw-conrcl 工與 cif ASPAr 0P Tune

13、cut 04 :00 :0Q La ft i nput 0 t: uT :i-9 f curpvt : DQ : 05+ cutpun hang n0i*r fL也摩*口曰 Qf hQwuaum工,nv*cInput 3uu: 0/75/0/0 Iilza/iux/drDps/flusbejj; lotil output drops: O uuexng strategy: fifo5.查看交換機(jī)的系統(tǒng)和配置信息h&eMh.ftEcf sh5w vftrfilonCisco Ir;ter:netvQrk Opezamg Systen Su$h3匚uIQS (WJ C2950 SsftwaF (C

14、29S0-I6Q4L2-M) f Vrsiefl 12.1 (22)Ur KELSASE SOFHiA0E ( fcl)Copyright (c) 1S3C-20Q5 by ciso SycEs, IncCaoqplltd Wed )電-也打一。營(yíng) 22: 31 工3L&g- txt-baf : GxS 00X00 0 3rb/ jhAfliba&匕: jx8 S 12 二GQAOH:pf&gzun is IsSwitch uptime xs 2S jsainues.55 5iecQ:nci5HyfireEi retumfid to 2OH By pcwer-onCIvcq WS*C2&S0-

15、2 4 1302300) prar uith 2im bytc 0f iMimry壯he bad ID rHXuLOZGVCLa與匚 芻去g feed sysie*-iesM,jizriig ftincie rd Iri*gs24 fasZtherrev/mz 3CEE*Tbly nuznbr: 73-6T8L-0S F#工 suppl/ p*工t nkmLi*i 34-055-01 Hzth*rbcirdniurtr : FOCDE1004SZm二wv工 mppLv 與u=i事工 nunbef; DA30G312D Mz de 1 kgv二 s 3-c n feA.4 = : CO Mztt

16、i*rbcir4 xsviicn nuinbr-: 43WS-CZS53-24 nuReerr FHK061OZ0WC z*gittc is jkT6.配置路由器的接口弁查看接口配置Route z 言*料-匕工士 PcuEerfccnfi-ure Ettirdril1mt工 ccnf i 7ux atiQfk cnetni t r cn*L*n一 Znd with CNTL/ 2 .SDiit*r (config) tintrfthEntt 0/0floutercn*ig-Af ffip Addcets lS2.lt: .1.1 二三芻.二335三.口 scuzer(ccnrig-ir *口口

17、 snutaoimliLIMK- E -CHRNCED : Intr ic raElZth*rnlO/0, chanjtd slat b t c up Pout*r(ecnfig-if;t*nd Soiitr#,5SY5-lGNE1G_I z znligyix! f xcm t二n與匚1e 47 ecnsz-feBQUt*rJsfiow inteifac*s. ,a竽nEuE一工n匚,;/QFastEthernKcO/C is up, 工工pcccseol dawn :dibled)Hirdvaxa 工工 Lane*, iddr* is u . ilb. 461 :bx a OOaJ. jib

18、 . abOL ) Intirret addiau is iS5.L9.1.1/4MTU 1E00 bytes, 3W lOGOOO Kbit, DLY 100 usee.付明浩reliaBxLlty 25S/.2SS, cxlcad 1 255, rxlcaa2006Emu.p箏u工.ELon ARFA1f loopback no&f計(jì)算機(jī)網(wǎng)絡(luò)空驗(yàn) AlRP typ:JkRP Tlswui G4;0O:U0.Las inpu& OC:00:00 f eupu GO:DO:C 5, nu:pu, hang neverLat clearing of 1,1hew int

19、erface counevxv neverInput: Queue : 0/7S/0 (size iMx/drps) ; To*al output drops r 0 Queueing strategy: fifo gtpux queue :Q/40 slze/mx)S injLnuiLfi Inputs m事匕 0 bl&s/Jiftc:r 0 pftczkebi/aec& minute utpuc rat 口 bixi/ 0 packers; sez 0 packets input 0 b/tes r 0 o tue =Se&iv&d C braaLdast.s:, 0 runt r 0

20、gi ant s, 5 t.hrettles0 input erxor5P 0 CHC, 0 fra5_ 0 dvermn, 0 ignored, 0 abort 0 input pacMets with dribble ccEzdltin detsc*ed 0 packers output. Q byes0 underruns。 匚ucpqN eO5j 0 collxslons 1 Interface 匚若,u雷,0 baLbbles r Cl late0 deferred0 lest: Cax,Xs|r 0 no carzjLezr etiEpiit buffer failcirsftf

21、stitput buffare 猿Uappad out7.顯7K路由表的信息何明浩20r060202006計(jì)算機(jī)網(wǎng)珞寶安二pnh.x ip uitGg電與:二-cum噂Utwd* 5 - static,I-I&M*r R - 5-IFr H - mobile, E - BePD 一 芭工RP* EX = 久工n exrrnil. 0 - asPFr 1A * OSPF inter ara甘工 一 CSls tfs SA *3tt:ftrnal 忙 L.代之一CStF NSSA extiarnal typ* 31 - 0Ts xtcnal typ 】,2 - 09PF cxleznal typo

22、 1, Z - ICTi - IS-IS, LI - I:S-IS leei-ip L3 - IS IS level-2, ia - 1S-IS 二ntu二 area* - candlddte dEtaulQ* U - per-usetroutr 口 - CDFP - p餐工工8工c down工口agd static rnut號(hào)Cat4w*y 二f lat T*om c nst ct八、實(shí)驗(yàn)結(jié)果(1)交換機(jī)的配置文件內(nèi)容heekhero#show running-configBuilding configuration.Current configuration : 1030 bytes !v

23、ersion 12.1no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname heekherointerface FastEthernet0/1description This is open by heekheroduplex halfspeed 10!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!

24、interface FastEthernet0/5!interface FastEthernet0/6interface FastEthernet0/7interface FastEthernet0/8interface FastEthernet0/9interface FastEthernet0/10interface FastEthernet0/11interface FastEthernet0/12interface FastEthernet0/13interface FastEthernet0/14interface FastEthernet0/15interface FastEthe

25、rnet0/16interface FastEthernet0/17interface FastEthernet0/18interface FastEthernet0/19interface FastEthernet0/20interface FastEthernet0/21interface FastEthernet0/22interface FastEthernet0/23interface FastEthernet0/24!interface Vlanlno ip addressshutdown!banner motd ACACline con 0!line vty 0 4loginli

26、ne vty 5 15 login!end(2)路由器的配置文件內(nèi)容:Router#show running-configBuilding configuration.Current configuration : 463 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msec no service password-encryption hostname Routerinterface FastEthernet0/0ip address 192.168

27、.1.1 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 no ip address duplex auto speed auto shutdown!interface Vlan1 no ip address shutdown!ip classless line con 0line vty 0 4 loginend報(bào)告評(píng)分:指導(dǎo)教師簽字:實(shí)驗(yàn)報(bào)告學(xué)生姓名:付明浩 學(xué) 號(hào):2017060202006 指導(dǎo)教師:王曉敏實(shí)驗(yàn)地點(diǎn): 主樓 A2-413-1實(shí)驗(yàn)時(shí)間:2019年5月22日一、實(shí)驗(yàn)項(xiàng)目名稱:虛擬局域網(wǎng)VLAN組網(wǎng)

28、二、實(shí)驗(yàn)?zāi)康模赫莆杖绾卧诮粨Q機(jī)上劃分基于端口的 VLAN、如何給VLAN內(nèi)添加端口, 理解跨交換機(jī)之間VLAN的特點(diǎn)。三、實(shí)驗(yàn)內(nèi)容:本實(shí)驗(yàn)包括兩階段組網(wǎng)需求:(1)階段一:使用VLAN實(shí)現(xiàn)隔離。假設(shè)某企業(yè)有兩個(gè)主要部門:銷售部 和技術(shù)部,其中銷售部門內(nèi)部的個(gè)人計(jì)算機(jī)系統(tǒng)連接在不同的交換機(jī)上,他們之間需要相互進(jìn)行通信,但為了數(shù)據(jù)安全起見,銷售部和技術(shù)部需要進(jìn)行相互隔離, 現(xiàn)要在交換機(jī)上做適當(dāng)配置來實(shí)現(xiàn)這一目標(biāo)。通過劃分Port VLAN實(shí)現(xiàn)交換機(jī)的端口隔離,然后使在同一 VLAN里的計(jì) 算機(jī)系統(tǒng)能跨交換機(jī)進(jìn)行相互通信,而在不同VLAN里的計(jì)算機(jī)系統(tǒng)不能進(jìn)行相互通信。(2)階段二:使用三層交換機(jī)實(shí)

29、現(xiàn) VLAN間互聯(lián)互通。在采用VLAN實(shí) 現(xiàn)了階段一的不同VLAN之間隔離需求后,現(xiàn)在銷售部和技術(shù)部之間也需要互 聯(lián)?,F(xiàn)要在交換機(jī)上做適當(dāng)配置來實(shí)現(xiàn)這一目標(biāo)。需要在網(wǎng)絡(luò)內(nèi)所有的交換機(jī)上配置 VLAN ,然后在三層交換機(jī)上給相應(yīng)的VLAN設(shè)置IP地址,以實(shí)現(xiàn)VLAN間的路由四、實(shí)驗(yàn)環(huán)境五、實(shí)驗(yàn)設(shè)備:(1)三層交換機(jī) L3-SW: 3560-24PS(2)二層交換機(jī) L2-SW: 2960-24(3)終端:PC-PT六、實(shí)驗(yàn)原理(1)使用VLAN實(shí)現(xiàn)隔離:VLAN (Virtual Local Area Network ,虛擬局域網(wǎng))是指在一個(gè)物理網(wǎng)段內(nèi), 進(jìn)行邏輯的劃分,劃分成若干個(gè)虛擬局域網(wǎng)。

30、VLAN最大的特性是不受物理位置 的限制,可以進(jìn)行靈活的劃分。VLAN具備了一個(gè)物理網(wǎng)段所具備的特性。相同VLAN內(nèi)的主機(jī)可以互相直接訪問,不同 VLAN間的主機(jī)之間互相訪問必須經(jīng) 由路由設(shè)備進(jìn)行轉(zhuǎn)發(fā)。廣播數(shù)據(jù)包只可以在本VLAN內(nèi)進(jìn)行傳播,不能傳輸?shù)狡渌鸙LAN中。Port Vlan是實(shí)現(xiàn)VLAN的方式之一,Port Vlan是利用交換機(jī)的端口進(jìn)行 VLAN的劃分,一個(gè)端口只能屬于一個(gè) VLAN。Tag Vlan 是基于交換機(jī)端口的另外一種類型,主要用于實(shí)現(xiàn)跨交換機(jī)的相同 VLAN內(nèi)主機(jī)之間可以直接訪問,同時(shí)對(duì)于不同 VLAN的主機(jī)進(jìn)行隔離。Tag Vlan遵循了 IEEE802.1q協(xié)議的

31、標(biāo)準(zhǔn)。在利用配置了 Tag vlan的接口進(jìn)行數(shù)據(jù)傳 輸時(shí),需要在數(shù)據(jù)幀內(nèi)添加4個(gè)字節(jié)的802.1q標(biāo)簽信息,用于標(biāo)識(shí)該數(shù)據(jù)幀屬 于哪個(gè)VLAN ,以便于對(duì)端交換機(jī)接收到數(shù)據(jù)幀后進(jìn)行準(zhǔn)確的過濾。(2)使用三層交換機(jī)實(shí)現(xiàn)VLAN間的互聯(lián)互通在交換網(wǎng)絡(luò)中,通過VLAN對(duì)一個(gè)物理網(wǎng)絡(luò)進(jìn)行了邏輯劃分,不同的VLAN 之間是無法直接訪問的,必須通過三層的路由設(shè)備進(jìn)行連接。 一般利用路由器或 三層交換機(jī)來實(shí)現(xiàn)不同VLAN之間的互相訪問。三層交換機(jī)和路由器具備網(wǎng)絡(luò) 層的功能,能夠根據(jù)數(shù)據(jù)的IP包頭信息,進(jìn)行選路和轉(zhuǎn)發(fā),從而實(shí)現(xiàn)不同網(wǎng)段 之間的訪問。直連路由是指:為三層設(shè)備的接口配置 IP地址,并且激活該端口

32、,三層設(shè) 備會(huì)自動(dòng)產(chǎn)生該接口 IP所在網(wǎng)段的直連路由信息。三層交換機(jī)實(shí)現(xiàn)VLAN互訪的原理是,利用三層交換機(jī)的路由功能,通過 識(shí)別數(shù)據(jù)包的IP地址,查找路由表進(jìn)行選路轉(zhuǎn)發(fā)。三層交換機(jī)利用直連路由可 以實(shí)現(xiàn)不同VLAN之間的互相訪問。三層交換機(jī)給接口配置 IP地址,采用SVI (交換虛擬接口)的方式實(shí)現(xiàn) VLAN間互連。SVI是指為交換機(jī)中的VLAN創(chuàng) 建虛擬接口,并且配置IP地址。七、實(shí)驗(yàn)步驟:.配置兩臺(tái)交換機(jī)的主機(jī)名宮vite匚心工*Switch!conf t inter cocfi jjratzcn zosEianas, one per line. Znd vizt CNTL/ Z . S

33、uit;ig:*he與tn&E heech*htc-khfir _2 7-nf iql th? ttr h*-*v_2付明;Jih*e)tn*ro_*w_3 (亡。外工工中 EH.=tleSwitchtconf tinter conf igxiracIoji cCMSAnd r cm總 per line . 豈nd wlnii 二KTL/r _SvLt zh (c . i g?hwmkEh=:_m付明浩2017060202006計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn)a2tZrtiezneC Q/E-LQheekeh.zQ_sw_3 4confLj)10heskehro_sw_34eonf Lg-vlan與ruairw

34、 u包互t.u hsekekiio_sw_3 : coniLg-vl=n f vl.n 20 heeketiro_5w_3 (configvlan) #name _u&stc hfeskehro_sw3 Sai t cb.-=- 5 n割匕 1 eSw i t ch.# conf t 三力七0巴 configuration ccKmjands;, one per line . En3 with CNTL/Z .Switcli(conf ig) $hosT;nim hgEh得t口_2 he skheKO_2 (config hosc-naiM h e a kh# _51_2付明浩20170602

35、02006計(jì)算機(jī)啕實(shí)驗(yàn)hi& ekheEC_5W_2 Ce oiaf xg : #heektaeec_gw_2 Cc deiSxg) ftiie eklieEQ_sw_S C cncf Xg # vln 10heekheEQ_5W_2 Cconffiij-irlan)口胃與七uheekhtre_EW_2 Ceonffig-vlan) Svlan 20h*ekh*ro_sw_2 Cconfig-vlan) Wmazm且 _uestc heekherc_sw_2 eonflxg-vlan) fexxthe eklie rc_sw_il config # J-n-t, e r a c e r ang

36、e a.s t Z ttiezne t 07 -10iieekhero_sw_2 COTU.fi5if-zange J tsuitchport :med。accessheekiieriQ_5w_3 c&riffig-if-ange ) #s;vritcli.pQj;t ac&ss vlan L。heJch*;r。-sw_a C con f i g - if * ran j e )拿牙 Kit htekhre_sw_2 Cesnfig! t.設(shè)置交換機(jī)之間的鏈路為Trunkheekeh.rci_sinr_3 付明浩2017060202006計(jì)算機(jī)網(wǎng)絡(luò)實(shí)驗(yàn)Tcankiag Uavivv Hod ;

37、7LAN. 1 (dvfaalt) Voice 7LAN: nenedzdnisraxvcAdjums-crativeprivate-vlan hcs-associAicn: privae-vlan xiappmj: nonenoneJldsidnxsxracxvcprivate-vlan xrunk narivo XrUUT:ncnoencapsuiaLcn: aotlq normal VLAH$: none pxlvace VLiAKs. nonej-amnis,UEaCive privae-vian zzxmK AlcaAppliance trust: nonehe e kehro_sw

38、_3 # shew vlaaVLAK HwePeres110201002 1033 10D41052VLAIfdefauluo st c_nowtufddi-dofaultcn 乂 en-rxg-ceraul:fddinet-defaultType SAIDHTU?xenLactiveFa0/2rra0/17rraO/21, CigO/1, acivo7a0/rPaO/lO active7a0/lrao: Fa0/1 Switekpart: inablmd AdsLL n 1 sxx i 匕 ire Mod,: t runk Optzation&l Mcce: trunk AJlz-llnst

39、r d& 1 vticn r dor lqrunk nonul TLAEs: n*n*f : a a t .*e AdxtniEraEie ArfjHlnj crr*t:iv4 Adm nistan pri7*i*-vl*nAdmniszr ativepriviTe*lAntrunicprivate LAls: neatOp士a工土二cm工 piivace-vlan: n:ne Tcunkln n-AlTs Znabled ; Al L Wen二”Indbled : 2-L JvlCapture Md* DxEbl*d Captur* VLMI Allowtd: ALL fcr;ectedi;

40、 tAleUntuQVTi gi.ua5七 blictea; clisalelUnknoMil rm工:淳* blocked; d二苧4V工號(hào)戊AppLitrxc*non*.驗(yàn)證配置見實(shí)驗(yàn)結(jié)果.在三層交換機(jī)上配置 SVI端口h*tec nf cEnt&r ccnfijuration cciratands r on& per line. nd with CUTL/2.neeitthrc_sw_3 *:ccniij tirterf vlan 10Titekelizc sw 3 (ccn-ij-it) 4%LrWK-5-CFiAJf(rEZ;工n二匕=fauu Vlanlj# changed st。

41、 upiLTWPHOTO-UPDCWNt Lir pratorol nn Tnlorf*r* VlanLG, ch*ng*d tto upheeKehxc_ sw_3(ccnlg-l j lip address L2 r 14:3.10 r 1 CSb . 355 ,Z6S , 0付明浩2017060202006十算機(jī)網(wǎng)絡(luò)史驍hu母上0h1匚_sn_3 l ccnf ig- if #二 shutdowri heekeiixz sw 3 ; c znfi j- j.f hAalrahre_vl tinrerf aca vlan 2 0,LZHK-5-CHANGED: Interface Vlin

42、ZO, =h&rq#d juit* to up 4LIirEFACTO-UEDCWtT: Lire prctQccl nn Inltzf *cc Vl&n2 0 t changed mt匕土 to uphOkhza sw_3#hk*hre_sw_3 (ernfi (ip iddrfr L92 , 19.20.1 2Ss . 255 .2SS . 0heetehr5w_3 ccnm-工f #n shutdown打*k*h工匚金討_3(ccnlig-ifi林工th*k*hfc *w 3configs *.啟動(dòng)三層交換機(jī)路由轉(zhuǎn)發(fā)heekthz:_s_31 config)fip zouting.查看S

43、VI端口的配置hekehra ev tehow ip xautaCodei: C - eonneded -鼻,Hu, Z -1R - mIF, H - iKbi.ler B - SGFD - ZI3Pf ZX -三O - OSBF, IA - OSPF inter (Il - O5FF N55A wxt號(hào)工na:3ype 1,- CSFF N55A exexaal type 2I,1 - QFE xcertiAl typ* i,豆二一D5PF *x七貶m而工 type ;r t - EGF i - IS-IS, LI - IS-IS 1*1-Lf L2 = T5-IS 1g,1-Z* la -

44、 IS-IS inttr ar?*ncticl4t:n diult p U - p*r-uc*r fttatic rout4 -心口二P - pacx2die dcwnlcdd t*cic 匕:Gdtewdq- Lmmtr ze%ert 15 net set12,1E3 , IQ T ?.4 xs cixecly c;nneted, i$2 L? . 20.0/24 it directly cannstrtsd,rJliTllCVlaTi2G付明浩2017(X5020200(5il算機(jī)網(wǎng)絡(luò)賣瞬.驗(yàn)證配置見實(shí)驗(yàn)結(jié)果八、實(shí)驗(yàn)結(jié)果:1.使用VLAN實(shí)現(xiàn)隔離:(1)每個(gè)交換機(jī)的配置文件內(nèi)容,即 sho

45、w running-config的結(jié)果 Switch3:heekehro_sw_3#show running-configBuilding configuration.Current configuration : 1750 bytes !version 12.2no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname heekehro_sw_3ip routinginterface FastEthernet0

46、/1switchport trunk encapsulation dotlq switchport mode trunk!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6switchport access vlan 10 switchport mode access!interface FastEthernet0/7switchport access vlan 10 switchport

47、 mode access!interface FastEthernet0/8switchport access vlan 10 switchport mode access!interface FastEthernet0/9switchport access vlan 10 switchport mode access interface FastEthernet0/10 switchport access vlan 10 switchport mode access !interface FastEthernet0/11 switchport access vlan 20 switchpor

48、t mode access!interface FastEthernet0/12 switchport access vlan 20 switchport mode access!interface FastEthernet0/13 switchport access vlan 20 switchport mode access!interface FastEthernet0/14 switchport access vlan 20 switchport mode access!interface FastEthernet0/15 switchport access vlan 20 switc

49、hport mode access!interface FastEthernet0/16!interface FastEthernet0/17interface FastEthernet0/18interface FastEthernet0/19interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet0/1!interface Gig

50、abitEthernet0/2!interface Vlan1no ip addressshutdown!interface Vlan10ip address 192.168.10.1 255.255.255.0 !interface Vlan20ip address 192.168.20.1 255.255.255.0ip classlessline con 0line vty 0 4loginend Switch2:heekhero_sw_2#show running-config Building configuration.Current configuration : 1232 by

51、tes!version 12.1no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption!hostname heekhero_sw_2interface FastEthernet0/1switchport mode trunkinterface FastEthernet0/2 !interface FastEthernet0/3 !interface FastEthernet0/4!interface FastEthernet0

52、/5!interface FastEthernet0/6 switchport access vlan 10 switchport mode access!interface FastEthernet0/7 switchport access vlan 10 switchport mode access!interface FastEthernet0/8 switchport access vlan 10 switchport mode access!interface FastEthernet0/9 switchport access vlan 10 switchport mode acce

53、ss!interface FastEthernet0/10switchport access vlan 10switchport mode accessinterface FastEthernet0/11interface FastEthernet0/12 !interface FastEthernet0/13 !interface FastEthernet0/14 !interface FastEthernet0/15 !interface FastEthernet0/16 !interface FastEthernet0/17 !interface FastEthernet0/18 !in

54、terface FastEthernet0/19 !interface FastEthernet0/20 !interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23 !interface FastEthernet0/24!interface Vlan1no ip addressshutdownline con 0!line vty 0 4 loginline vty 5 15 login!End(2)各個(gè)ping的測(cè)試結(jié)果截圖PC+pzLjiq 192_16fl_20,172Pinging

55、152,158.20.17232 bytem q工 data;Repast &imad suit, timad Ri&qpjeat tiffiad nut _ Retpjest timed. on I;.Fing 工可占Kcb for 132,1320.17;P目Uk:匚導(dǎo):Senv 三 Received = 0 r Ssfc = 4 *1口口,r付明浩20170602024X)6計(jì)算機(jī)網(wǎng)絡(luò)實(shí)改將PC2連線轉(zhuǎn)移到VLAN 20端口上,此時(shí)與PC4失去連接2,使用三層交換機(jī)實(shí)現(xiàn)VLAN間的互聯(lián)互通(1)每個(gè)交換機(jī)的配置文件內(nèi)容,即 show running-config的結(jié)果如上所示(2)各個(gè)p

56、ing的測(cè)試結(jié)果截圖 PC4 ping PC3 成功付明清Pingi-Ti 19with 32 bytes of dat a :二口 IRM。二次計(jì)爵中佛實(shí)般fromReplyR&plyReplyKoinfromflDHl142.1CB.Z0.17Z:132.t8,20.172 1byteg-32bvtag=32bVT:&3-32Tiime=36ms t jjna=7m9 tiine=69mg rinie=66ingTTL=1?7TTL=LZ7TTLIZ7TTL127Ping atatisticE for L9Z_LfiB _17i:Packets: Sent = 4, Received =

57、4, Loat = 。 (口, Ina a)r appxpxiinate roTind trip timeg in milli-gecQn.d.3 :MiruicuEi = 3$皿.= 53a. 露va=叫a = $ 3a PC4 ping PC2 成功付川浩PCKhlii尊 192.1G0.10-172Ping-inq .192.16B _10.L?2 vixh 32 bytes of data zXI一口網(wǎng)二03X1氏計(jì)打機(jī)網(wǎng)韋實(shí)膠Reply Reply 及金 ply Replyfrom f comfromflDEl132.lS_10.1721byteg=32 byte3=32 bytss

58、*32 bytea*32tinie=148Eis TTL=12Scne-37iri3TTL=1;8TTL=128TTL-125Ping- atatistics for 152. 172 zPackets: Sen右4, RecEived = 4 F Ix3t = 0(口* 1OS9),Appf-Qxxmate 工口und tdp tizzies in mil 14-3 ccrncis z凹皿二Hum = SThs, gKjjnwi = 工 4事ms, veEge = 7 3。報(bào)告評(píng)分:指導(dǎo)教師簽字:實(shí)驗(yàn)報(bào)告學(xué)生姓名:付明浩 學(xué) 號(hào):2017060202006 指導(dǎo)教師:王曉敏實(shí)驗(yàn)地點(diǎn): 主樓

59、A2-413-1實(shí)驗(yàn)時(shí)間:2019年5月25日一、實(shí)驗(yàn)名稱:靜態(tài)路由二、實(shí)驗(yàn)?zāi)康模豪斫忪o態(tài)路由的工作原理,掌握如何配置靜態(tài)路由。三、實(shí)驗(yàn)內(nèi)容:假設(shè)計(jì)劃建設(shè)的園區(qū)網(wǎng),分為兩個(gè)區(qū)域,距離較遠(yuǎn)。其中區(qū)域1中存在網(wǎng)絡(luò)NET1,區(qū)域2中存在網(wǎng)絡(luò)NET3, NET4。現(xiàn)在需要使用兩臺(tái)路由器實(shí)現(xiàn)兩個(gè)區(qū) 域之間的互聯(lián)互通。NET1, NET3和NET4均是通過二層交換機(jī)構(gòu)建的以太網(wǎng)局域網(wǎng),連接用戶PC機(jī),每個(gè)局域網(wǎng)均連接到各自的網(wǎng)關(guān)路由器以太網(wǎng)接口上。NET2是廣域網(wǎng),實(shí)現(xiàn)兩個(gè)區(qū)域兩臺(tái)路由器之間的連接。局域網(wǎng) NET1中的PC機(jī)與NET3、NET4 中PC機(jī)的通信通過廣域網(wǎng)NET2實(shí)現(xiàn)?,F(xiàn)要在路由器上做適當(dāng)配

60、置,實(shí)現(xiàn)園區(qū) 網(wǎng)內(nèi)各個(gè)區(qū)域子網(wǎng)之間的相互通信。兩臺(tái)路由器通過廣域網(wǎng)串行接口,以 V.35 DCE/DTE廣域網(wǎng)專用電纜連接在 一起,設(shè)置靜態(tài)路由,實(shí)現(xiàn)所有子網(wǎng)間的互通。四、實(shí)驗(yàn)環(huán)境:PCO五、實(shí)驗(yàn)設(shè)備:交換機(jī):3臺(tái);路由器(帶廣域網(wǎng)串行接口):2臺(tái);廣域網(wǎng)電纜V.35 DCE/DTE : 1對(duì)PC:若干六、實(shí)驗(yàn)原理:路由器屬于網(wǎng)絡(luò)層設(shè)備,能夠根據(jù)IP包頭的信息,選擇一條最佳路徑,將 數(shù)據(jù)包轉(zhuǎn)發(fā)出去。實(shí)現(xiàn)不同網(wǎng)段的主機(jī)之間的互相訪問。路由器是根據(jù)路由表進(jìn)行選路和轉(zhuǎn)發(fā)的。 而路由表里就是由一條條的路由信 息組成。路由表的產(chǎn)生方式一般有 3種:直連路由:給路由器接口配置一個(gè)IP地址,路由器自動(dòng)產(chǎn)生本

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(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ì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論