




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、實(shí)驗(yàn)四:交換機(jī)的配置、實(shí)驗(yàn)名稱:交換機(jī)的配置二、實(shí)驗(yàn)?zāi)康模菏煜そ粨Q機(jī)的配置方式,對(duì)交換機(jī)進(jìn)行基本配置三、實(shí)驗(yàn)環(huán)境: PacketTracer5四、實(shí)驗(yàn)過程:實(shí)驗(yàn)拓?fù)洌篊C任務(wù)一:清除交換機(jī)的現(xiàn)有配置進(jìn)入特權(quán)模式單擊交換機(jī)的CLI,鍵入en命令,進(jìn)入特權(quán)模式,如圖:1-1 汀土#SwitchSwitchmenSwitch#刪除vlan數(shù)據(jù)庫文件在刪除vlan數(shù)據(jù)庫文件前,增加vlan90。在特權(quán)模式下,輸入conf t進(jìn)入全局模式,再輸入vlan 90,結(jié)果如下:Switch : ccnzig) #vlan 90Switch : ccnzig-vlan) #|回到特權(quán)模式,查看生成的vlan文件
2、,輸入dir,結(jié)果如下:Switchpdir Directory cf flash:/-rw- 3058048 c2930-i5q412-ir.z 1-rw-ISdate vlsn.dat4015384 bytes total (S0957720 bytes free) Switch#刪除vlan文件,在特權(quán)模式下輸入delete vlan.dat,如下圖Switch#delete vlsn.datDelete filenBir.e vlan. dat 2Delete flash:/vlsn.dat? ccnziEjr.使用dir查看閃存里的文件Switch#dirDizectcry of f
3、lash:/1 -rw- 3058048 c2930-i5q412-jr.z . 121-22 ZA4 . bin4015384 bytes total (0958335 bytes free)Stji rkiirl在特權(quán)模式下,使用write命令,將當(dāng)前配置寫入閃存中Switch#writeBuilding ccnziguratian.OK重新加載交換機(jī)。在特權(quán)模式下,輸入reload,開始次過程Leading ,Fflash:/c2930-iSq412-ir.z . 121-22 . ZA4bin,F .Restricted Rights LegendUser duplicaticnr c
4、r disclosure by the Gcvermr.ent is subject tc zestricticns as set ferth in suhparagraph (c) cr the Ccjrjr.ezcisl Ccirputez Scztware - Etestricted Sights cIeuss st FA3. sec. 52.227-19 and suhparagraph任務(wù)二:檢驗(yàn)?zāi)J(rèn)交換機(jī)配置進(jìn)入特權(quán)模式:SwitchensbleSwitch#檢查當(dāng)前交換機(jī)配置:發(fā)出show running-config,檢查當(dāng)前的運(yùn)行配置,如圖Switch#shew runnin
5、g-cenzigBuilding ccnziguratian.Current ccnziguraticn : 947 bytes !versicn 121nc service timestsir.ps leg dstetiir.e msec nc service tiTT.estsTT.ps debug datetiir.e msec nc service pssswerd-encrypticn!hcatnair.e SwitchinterzaceiFsstthernetO/linterzbceiFes tZ theme 10/2interzaceiFas tZ theme 10/3inter
6、zaceiFsstthernet0/4interzbceFes tZ theme 10/5-More-發(fā)出show startup-config,檢查當(dāng)前NVRAM的內(nèi)容Switch#show startup-ccnzigUsing 947 bytes!version 12.1nc service time stair.ps leg date time ir.se cnc service tiir.eatajr.pa debug datetiir.e msecnc service passwcrd-encrypticn !hcstnair.e SwitchinterzaceiFas tZ th
7、eme 10/1interfaceiFESt:thernetO/2interzsceiFastZtheznetO/3interzaceiFa s tZ the me tO/4interZBceiFBStH theme 10/5interzsce一一Mcre-Fa s tZ the zne 10/WinterzaceVlanlno ip addressshutdownline ccn 0line vty 0 4loginline vty 5 15loginend發(fā)出show interface vlanl命令,檢查虛擬接口 vlanl的特征Switch#:shew interzsce vlsnl
8、71anl is bdir.inistrstive 1 y dcwnr line prctcccl is down Hardware is CPU Interzacer sddrsss is 0003 e482 -0e43 -:bis 0003 .e482 -0e43) MTU 1500 bytesF BW 100000 Kbitr DLY 1000000 usecF reliability 2SS/25Sr txlcad l/255r rxlcad 1/255 Kncapsulaticn AlEAr Iccpback net settype: AEAr AP limecut 04:00: 0
9、0Last input 21: 40: 21 r output never r output hang never Last clesring cf shew interzacecounters never Input cjueue: 0/75/0/0 (size/ir.Ex/drcps/zlushes) ; Tctsl output dreps: 0 Queueing stratagy: fifeOutput queue: 0/40 (size/jr.ax)5 minute input rate 0 bits/secr 0 packets/sec 5 minute output rate 0
10、 bits/secr 0 packets/sec 1582 packets inputr 530955 bytesr 0 nc buzzer Received 0 bresdeasts (0 IP multicsst) 0 runtsr 0 gisntsr 0 throttles 0 input errersr 0 CRCr 0 frajr.eF 0 cverrun, 0 ignered SS38S9 packets outputF 0 bytesF 0 underruna 0 output errezsF 23 interface resets Q output buffer failure
11、sr 0 output buzzers swapped cut使用show interface vlanl命令查看接口的ip屬性Switch#Switch#show ip interrace vlanlVIbelI is edbr.inistrative 1 y dcwnr line prctccol is dewn Internet prctcccl precessing disabledSwitch#顯示Cisco IOS信息使用show version命令顯示Cisco IOS信息Switchfshcw versionCi see Int e me twe r k Operating S
12、ysteir. ScztwareIOS i:tm) C2950 Scftware !:C2950-ISQ4L2-M:i r Version 12 1 (22 ) EA4 r R:E:LEASZ SOFTrTAElZ ( fcl)Ccpyright (c) 198S-2005 by ciscc Systemsr Inc.Ccir.piled Wed lS-May-05 22:31 Image text-bsse: 0 x80010000rby jharizba datB-base: 0 x80552000ROM: Bcctstrap prcgzair. is isC2930 beet leade
13、rSwitch uptiir.e is 23 minutesr35 secondsSysteir. returned tc ROM by power-cnCisco WS-C2950-24 (RC32300) prccesscr prevision CO) with 21039K bytes cz ir.eir.cry.-Prccesscz beard ID FHK0510Z0WCLast reset zrcir. systeir.-resetRunning Stands rd Iir.sge24 Fast:thernet/IEEE 802 -3 interzace j:s)53488K by
14、tes cr riash-siir.ulated ncn-vclatile ccnzigTj.raticn ir.eir.cry_ Base ethernet MAC Address: 0003.E482.0E43Mctherbcsrd asseirt-ly nuirBer: 73-5781-09Fewer supply psrt nuirJser: 34-0955-01Mother beard serial nuirBez: FDC0-cl004SZFewer supply serial nuirtez: DAB0S09127DMedel revisicn nuirBer: COMcther
15、bcsrd revisicn nuirBer: A0-Mere-Medel nwrher: WS-C2950-24Systeir. serial nuirter: FHK0510Z0WC Ccnziguraticn register is OxF drs 4r檢查快速以太網(wǎng)接口使用show interface fastethernet 0/18命令檢查pci所用快速以太網(wǎng)接口的默 認(rèn)屬性Switch#show interzsce Fs s tE the me t 0/18 Fa s tZ the me 10/18 is dcwnr line pr c t c c c1 is dewn disa
16、bled) Hardware is Lancer address is 0001.3d-112 (bia 0001.S3Sd5112) BW 100000 Kbitr D:LY 1000 usecr reliability 255/255r txlcad l/255r rxlcsd 1/255 Encapsulaticn A?LPAr Iccpback not set Keepalive ast s; 10 sec) Hsl=-duplexr 100Mb/s input fIcw-ccntrcl is cffr cutput fIcw-ccntrcl is eff AP type: APAr
17、AP Tiir.ecut 04:00 :00 Last input 00:00:08r cutput 00:00:05r output hsng never Last cleBring cf 1,1 shew interface,F ccunters never Input queue : 0/75/0/0 (3ize/ir.ax/drcps/f lushes) ; Total cutput drops : 0 Queueing strategy: zif Output cjueue : 0 / 4 0 (size/max) 5 Tr.inute input rate 0 bits/secr
18、0 packets/sec 5 minute output rste 0 bits/secr 0 packets/sec 93? packets inputr 193351 bytesr 0 nc buzfer deceived 935 brcadcaatsr 0 runtar 0 giantsr 0 thrcttlea 0 input errors P 0 CRCr 0 frair.e r 0 cverzuiip 0 ignczedF 0 sbert 0 wstchdcgr 0 ir.ulticastr Q pBuse input 0 input packets with dribble c
19、cnditicn detected 2357 packsts cutputF 253570 hytesr 0 underruns 0 cutput errersr 0 collisicnsr 10 interzace resets 0 babhlesr 0 late ccllisicn,. 0 dezerred 0 lest carrier F 0 nc carrier 0 cutput bufzer zailures r 0 output buzfers swapped cut檢查vlan信息使用show vlan命令檢查交換機(jī)的默認(rèn)vlan設(shè)置Switch#show vlsnVLANNsi
20、r.eStatus1defaultactiveFa0/lrFeO/2,.FaO/3P FaO/4Fa0/5rFeO/E,.FaO/7P FaO/8TaO/9,.FBd/10rFa0/llF FaO/12Ta0/13rFaO/14F Fa0/15r FsO/lSFa0/17rFaO/18 Fa0/19r Fa0/20Fa0/21rFaO/22 Fa0/23r FaO/241002zddi-defaultact/unsup1003teken-ring-defaultact/unsup1004zddinet-dezBultset/unsup1005t met-de faultEct/unsupVLA
21、NSAIDMTUParentTLingNcBridgeNc StpBrdgMcde IrsnslTrsnsS1enet1000011S00 -001002fddi1010021S00- -001003tr1010031S00- -001004zdnet1010041500-ieee-001005tznet1010051300-ibir._00Seir.cte SPAN VLANsPrimary Secondary TypePorts檢查閃存使用show flash,檢查閃存目錄的內(nèi)容Switch#shew flash Directcry cz zlssh:/1 -rw- 3058048 c29
22、50-i5q412-jr.z 121-22 -ZA4 .bin4015384 bytes total (50358335 bytes free)Switch#任務(wù)三:創(chuàng)建基本交換機(jī)配置為交換機(jī)制定名稱進(jìn)入全局配置模式,輸入hostname S1,將交換機(jī)命名為S1,如下圖:Switch#ccnf tEnter ccnziguraticn ccirir.Bnds r one per line. End with CNIL/Z Switch,: cenzig) #hcstnsir.e S1SI(ccnzig)#設(shè)置訪問口令,如下圖:Sl#ccnz tEnter ccnziguraticn ccir
23、zr.snds r cne per line. End with CNIL/ZSI(ccnzig)#line ccnscle 0SI (cenzig-1 ine)mswerd siir.pleSIccnzig-line)#1口ginSI(ccnzig-line)#line vty 0 15SI ccnzig-line) tpasswerd siirpleSIcenzig-1ine)#exitSI ccnzig) #|設(shè)置命令模式口令將能加密口令設(shè)置為class在全局模式輸入enable secret class,結(jié)果如下SI(ccnzig)tenahle secret class配置交換機(jī)的第
24、3層地址在內(nèi)部虛擬接口 vlan99上將交換機(jī)的ip設(shè)置為172.17.99.11,子網(wǎng)掩碼為255.255.255.0.。首先,必須在交換機(jī)創(chuàng)建vlan,然后分配地址。S1(config)#vlan 99S1(config-vlan)#exitS1(config)#interfaceS1(config-if)#ip address 172.17.99.11 255.255.255.0S1(config-if)#no shutdownS1(config-if)#exitSI ccnzig:rvlEn 99SIccnzig-vlsn)#exitSI ccnzig) #interzsce v1ee
25、l99%:LINK-5-CHANGED: Interface Vlan99r changed state tc upSI (ccn=ig-if :i Sip sddress 172 17.99 11% Inccirplete ccirir.End.SI(ccnzig-if)#ip sddress 172.1799.11 255 255.255-0SI(ccnzig-if)#nc shutdownSI ccnzig-if)SI Desktop (桌面)選項(xiàng)卡- IP配置, 如下圖:檢查連通性從pc0 ping交換機(jī),結(jié)果如下圖任務(wù)4:管理MAC地址表記錄主機(jī)的MAC地址。通過下列步驟確定并記錄P
26、C網(wǎng)絡(luò)接口卡的第2層(物理)地址:單擊PC。選擇Desktop (桌面)選項(xiàng)卡。單擊Command Prompt (命令提示符)。鍵入 ipconfig /all如圖:確定交換機(jī)已學(xué)習(xí)的MAC地址。在特權(quán)執(zhí)行模式下使用show mac-address-table命令顯示MAC地址。命令如下:S1#show mac-address-table結(jié)果如下:Sl#shcw ir.B c - a ddr e s s -1 abl e Mac Address TableVian Mac AddreaaTypePcrts990001.9Sd2 . a848 DYNiMIC FaO/1_ - i清除MAC地址
27、表。要?jiǎng)h除現(xiàn)有MAC地址,請(qǐng)?jiān)谔貦?quán)執(zhí)行模式下使用clear mac-address-tabledynamic命令。具體命令如下:S1#clear mac-address-table dynamic確認(rèn)結(jié)果。確認(rèn)MAC地址表已清除。S1#show mac-address-table結(jié)果如下:Sl#clear ir.sc-bddress-table dynmir.icSl#shcw ir.BC-address-tableMac Address TableVian Mac AddressTypePorts再次檢查MAC表。在特權(quán)執(zhí)行模式下再次查看MAC地址表。如果地址表沒有變化,請(qǐng)從PC1 ping
28、 S1,然后再次檢查。設(shè)置靜態(tài)MAC地址。要指定主機(jī)可以連接到哪些接口,一個(gè)方法是創(chuàng)建主機(jī)MAC地址與端口的靜態(tài)映 射表。使用本任務(wù)步驟1中為PC1記錄的地址0002.16E8.C285設(shè)置快速以太網(wǎng)接口0/18的靜態(tài)MAC地址。具體命令如下:S1(config)#mac-address-table static 0002.16E8.C285 vlan 99 interface fastethernet 0/18確認(rèn)結(jié)果。檢查MAC地址表?xiàng)l目。S1#show mac-address-table 結(jié)果如下:Sl#ccnf tZntez ccnziguraticn ccirir.Bnds r on
29、e per line - End with CNIL/Z -SI (ccnzig) #ir.ac-Bddress-table ststic 0002.1SZ8 -C28S vlsn 99 interzace fastethezne t 0/1SSI(ccnzig)#exit%SZS-5-CONFIG_I: Ccnzigured f edit, ccnscle by ccnscleSl#show ir.sc-eddress-1ableMac Address TableVianMac Address二理Zorts9931#000215e8-c285STATICFaO/18刪除靜態(tài)MAC條目。進(jìn)入配置模式,在命令串前加上no以刪除靜態(tài)MAC。S1(config)#no mac-address-table static 0002.16E8.C285 vlan 99 interface fastethernet 0/18確認(rèn)結(jié)果。使用show mac-address-table static命令確認(rèn)靜態(tài)MAC地址已刪除。具體如下圖:Sl#ccnz tEnter ccnziguraticn ccirjr.ands r cne per
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 批發(fā)業(yè)貨架陳列技巧考核試卷
- 健康營(yíng)養(yǎng)品批發(fā)商的智慧物流技術(shù)創(chuàng)新應(yīng)用考核試卷
- 勘察項(xiàng)目項(xiàng)目管理海洋工程文化建設(shè)考核試卷
- 體育組織的歷史與演變考核試卷
- 用火安全主題班會(huì)課件
- 交通文明與安全課件
- 作品采購合同范本模板
- 芒果直播代售合同范本
- 裝修工程供應(yīng)合同范本
- 酒店客房服務(wù)規(guī)范與操作流程優(yōu)化制度
- 臨床家庭化產(chǎn)房開展經(jīng)驗(yàn)分享
- 2024年世界職業(yè)院校技能大賽高職組“市政管線(道)數(shù)字化施工組”賽項(xiàng)考試題庫
- 安徽省六安市裕安區(qū)六安市獨(dú)山中學(xué)2024-2025學(xué)年高一上學(xué)期11月期中生物試題(含答案)
- 低血糖的護(hù)理查房
- GB/T 44718-2024城市軌道交通無障礙運(yùn)營(yíng)服務(wù)規(guī)范
- DB41T 2567-2023 消防技術(shù)服務(wù)機(jī)構(gòu)服務(wù)規(guī)范
- 音樂鑒賞與實(shí)踐 第一單元第四課音樂的力量(下)
- 《外科護(hù)理學(xué)(第七版)》考試復(fù)習(xí)題庫-上(單選題)
- 92槍械課件教學(xué)課件
- 追覓科技在線測(cè)評(píng)邏輯題
- (人教PEP2024版)英語一年級(jí)上冊(cè)Unit 1 教學(xué)課件(新教材)
評(píng)論
0/150
提交評(píng)論