實(shí)驗(yàn)3 交換機(jī)基本配置新_第1頁(yè)
實(shí)驗(yàn)3 交換機(jī)基本配置新_第2頁(yè)
實(shí)驗(yàn)3 交換機(jī)基本配置新_第3頁(yè)
實(shí)驗(yàn)3 交換機(jī)基本配置新_第4頁(yè)
實(shí)驗(yàn)3 交換機(jī)基本配置新_第5頁(yè)
已閱讀5頁(yè),還剩3頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、實(shí)驗(yàn)3交換機(jī)基本配置3.1實(shí)驗(yàn)?zāi)康睦斫馓摂MLAN(VLAN)基本配置;掌握一般交換機(jī)按端口劃分VLAN的配置方法;掌握Tag VLAN配置方法。3.2實(shí)驗(yàn)知識(shí)點(diǎn)1、交換機(jī)的六種模式:用戶模式Switch特權(quán)模式Switch#全局配置模式Switch(config)#端口模式Switch(config-if)#Vlan 配置模式 Switch(config-vlan)Line 模式 switch(config-line)2、了解交換機(jī)命令行進(jìn)入特權(quán)模式(en)進(jìn)入全局配置模式(conf t)進(jìn)入交換機(jī)端口視圖模式(int f0/1)返回到上級(jí)模式(exit)從全局以下模式返回到特權(quán)模式(end)

2、幫助信息(如?、co?、copy?)命令簡(jiǎn)寫(xiě)(如conf t)命令自動(dòng)補(bǔ)全(Tab)快捷鍵(ctrl+c中斷測(cè)試,ctrl+z退回到特權(quán)視圖)Reload重啟。(在特權(quán)模式下)修改交換機(jī)名稱(hostname X)3.3實(shí)驗(yàn)要求交換機(jī)基本配置的實(shí)驗(yàn)拓?fù)鋱D如圖3-1所示。Switch_2960 2臺(tái);PC 4 臺(tái);直連線。FO/2490Y4TT192. 168. 1.2192. 168. 1.3PCIPC2PC3PC43-1實(shí)驗(yàn)拓?fù)鋱D其中:將PC1、PC2、PC3、PC4的IP地址分別設(shè)置為:192.168.1.2、 192.168.1.3、192.168.1.4、192.168.1.5 ,子網(wǎng)

3、掩碼和網(wǎng)關(guān)都 為:255.255.255.0 和 192.168.1.1。3.4實(shí)驗(yàn)內(nèi)容:交換機(jī)配置如下:Switch1SwitchenSwitch#conf tSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#inter fa 0/1Switch(config-if)#switch access vlan 2Switch(config-if)#exitSwitch(config)#inter fa 0/2Switch(config-i

4、f)#switch access vlan 3Switch(config-if)#exitSwitch(config)#inter fa 0/24Switch(config-if)#switch mode trunkSwitch(config-if)#endSwitch#show vlanSwitch2SwitchenSwitch#conf tSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#int fa 0/1Switch(confi

5、g-if)#switch access vlan 2Switch(config-if)#exitSwitch(config)#int fa 0/2Switch(config-if)#switch access vlan 3Switch(config-if)#exitSwitch(config)#int fa 0/24Switch(config-if)#switch mode trunkSwitch(config-if)#endSwitch#show vlan測(cè)試:PC1 ping PC2 結(jié)果?(截圖)PC1 ping PC3 結(jié)果?(截圖)思考問(wèn)題:交換機(jī)有多少種模式?交換機(jī)有6種模式;1、

6、普通用戶模式開(kāi)機(jī)直接進(jìn)入普通用戶模式,在該模式下我們只能查詢交換機(jī)的一些基礎(chǔ)信 息,如版本號(hào)(show version)等。2、特權(quán)用戶模式在普通用戶模式下輸入enable命令即可進(jìn)入特權(quán)用戶模式,在該模式下我 們可以查看交換機(jī)的配置信息和調(diào)試信息等等。3、全局配置模式在特權(quán)用戶模式下輸入cterminal命令即可進(jìn)入全局配置模式,在該模式下 主要完成全局參數(shù)的配置,具體配置以后介紹。4、接口配置模式在全局配置模式下輸入interface interface-list即可進(jìn)入接口配置模式, 在該模式下主要完成接口參數(shù)的配置,具體配置以后介紹。5、vlan配置模式在全局配置模式下輸入vlan v

7、lan-number即可進(jìn)入vlan配置模式,在該配 置模式下可以完成Vlan的一些相關(guān)配置。6、恢復(fù)交換機(jī)的缺省配置在實(shí)驗(yàn)開(kāi)始時(shí),為了不讓實(shí)驗(yàn)受交換機(jī)以前的配置影響,常常需要先恢復(fù)交 換機(jī)的缺省配置。在特權(quán)用戶模式下順序使用erase,restet命令即可恢復(fù)交換 機(jī)的缺省配置。為了方便管理,交換機(jī)需開(kāi)通telnet功能,請(qǐng)問(wèn)如何配置交換機(jī)? (截圖)1、配置交換機(jī)管理ip地址Switch(config)#interface vlan 1默認(rèn)情況下交換機(jī)所有端口都處于vlan 1當(dāng)中Switch(config-if)#ip address 192.168.1.1 255.255.255.0配

8、置交換機(jī)管理IP地址SwitchenSwitch#conf tEnter configuration ccmmandsp one per line- End with CNTL/Z.Switch(config)#interface vlan 1Switch(config-if)#ip address 192.1GB.1.1 255-255-255.0Switch(config-if)#no shutdown2、設(shè)置進(jìn)入特權(quán)模式的密碼設(shè)置Switch(config)#enable password 123456Switch(config)#line console ?3、通過(guò)console端口連

9、接設(shè)備的密碼設(shè)置Switch(config)#line console 0Switch(config-line)#password asdf備的密碼Switch(config-line)#loginSwitch(config-line)#exitSwitch(config)#line vty ?4、telnet遠(yuǎn)程登錄密碼Switch(config)#line vty 0 4Switch(config-line)#password abc123設(shè)置進(jìn)入特權(quán)模式的密碼設(shè)置通過(guò)console端口連接設(shè)設(shè)置telnet遠(yuǎn)程登錄密碼Switch(config-line)#loginSwitch(con

10、fig-line)#end1;O Upi. U-L LJUU-X LJ-I1 _L上J. L L JL HLZfef V J-idJenable password 12345S Switch(ccnfig)#line console? console Switch(ccnfig)#line console 0 Switch(ccnfig-line)sword asdf Switch(config-line)#lcgin Switch(config-line) Switch(ccnfig)#line vty? vty Switch(config)#line vty 0 4 Switch(ccnf

11、ig-line)#password abcl23 Switch tconfig-line)#lcgin5、查看配置情況Current conziguration : IOS6 bytes I version 12.2 no service time stands log datetime msec no service time stands debug datetime msec no service password-encrjrption I hostname Switch I enable password 123456 ! I I interface FastEthernetO/1

12、I interface FastEthernetO/2LUcnnecticn tc1JZ _ 1 bt: _ 1 1 closed By zcreign POtelnet 192.168.1.1Trying 192.18.1.1 .OpenUser Access VerificationPassword:SwitchenPassword:Swi t dh# show miming-configBuilding configurationCurrent configuration : 1086 bytes rversion 12.2no service timestairs log datetime msec no s e rri ce time stands debug date time maec no service pas sword- encrypt i on rhostname Switch renable password 123456int b rface Fas tE

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝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ù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 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)論