




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、先把這個(gè)學(xué)會(huì)吧,再去搞哪個(gè),會(huì)容易入手,是一樣的結(jié)構(gòu)。思科的命令和這不同,我這有路由模擬器要的話告訴我你的郵箱我發(fā)給你。SWITCH筆記1. Switch command2. Switch setup3. Vlan setup4. VLAN TRUNK5. Switch interface setup6. SHOW command7. Cisco catalyst 2950交換機(jī)的密碼恢復(fù)8. VTP9. STP10. 三層交換11. 12. 13. 14. 15. Switch commandSwitch > en 進(jìn)入特權(quán)模式Switch # conf t 進(jìn)入全局配置模式Switc
2、h(config)# interface interface-num 進(jìn)入接口Switch(config)# hostname name 給交換機(jī)命名Switch(config)# enable password password 設(shè)置明文密碼Switch(config)# enable secret password 設(shè)置加密的啟用秘密口令。如果設(shè)置則取代明文口令Switch # copy running-config startup-config Switch # write 保存設(shè)置保存設(shè)置Switch # erase startup-config 恢復(fù)交換機(jī)出廠值置頂Switch se
3、tupswitch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# no shutswitch(config-if)# exitswitch(config)# ip default-gateway ip-addressswitch(config)# ip domain-name domain-nameswitch(config)# ip name-server IP-address 交換機(jī)上設(shè)置遠(yuǎn)程訪問(wèn),用于交換機(jī)管理配置IP地址開(kāi)起端口退出設(shè)置缺省網(wǎng)關(guān)域
4、名服務(wù)(自身用)域名服務(wù)地址(自身用)文檔頂端Vlan setup Switch # vlan database switch(vlan)# vlan vlan-id name vlan-name switch(vlan)# exit switch # config teriminal 創(chuàng)建VLAN(全局配置模式下)創(chuàng)建vlan推出啟用 switch # config t switch(config)# vlan vlan-id switch(config-vlan)# name vlan-name switch(config-vlan)# exit 創(chuàng)建VLAN(VLAN數(shù)據(jù)庫(kù)中)命名推出生
5、效Switch # config teriminalswitch(config)# interface interface-num switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-idswitch(config-if)# endswitch # show running-config interface inter-idswitch # show interface inter-id switch port 給VLAN添加端口進(jìn)入要分配的端口定義二層端口把端口分配給
6、某一VLAN退出驗(yàn)證端口的VLAN號(hào)驗(yàn)證端口的管理模式和VLAN情況switch#config teriminalswitch(config)#interface range f0/1 - 10 switch(config-if)#switchport access vlan vlan-idswitch(config-if)#endswitch#show vlan briefswitch#show vlan vlan-id 添加多個(gè)端口到一個(gè)VLAN選擇多個(gè)端口加入VLAN查看驗(yàn)證VLAN查看指定VLANSwitch # config tswitch(config)# no vlan vlan
7、-idswitch(config)# end 刪除VLAN switch(config)# ip http sever 啟用HTTP訪問(wèn)文檔頂端VLAN TRUNKswitch(config)# interface interface mod/port switch(config-if)# switchport mode trunk switch(config-if)# switchport trunk encapsulation isl|dotlq| 配置VLAN中繼線switch(config)# interface interface-idswitch(config-if)# switc
8、hport mode dynamic desirable/auto 進(jìn)入端口設(shè)置設(shè)置接口為中繼動(dòng)態(tài)協(xié)商模式,desirable或autoswitch(config-if)#switchport trunk allowed vlan none 阻止所有VLAN通過(guò)switch(config-if)#switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list 從TRUNK中刪除VLAN,阻止通過(guò)在TRUNK中添加VLAN,允許通過(guò)文檔頂端S
9、witch interface setupSwitch # config tSwitch(config)# interface inter-idswitch(config-if)# duplex auto|full|halfswitch(config-if)# speed10|100|auto 交換機(jī)上設(shè)置端口速度switch(config-if)# description description-string 交換機(jī)的端口描述文檔頂端SHOW commandSwitch # show version Switch # show running-config 列出當(dāng)前運(yùn)行配置信息Switch
10、# show startup-config Switch # show interface interface-num 產(chǎn)看借口信息Switch # show cdp neighborswitch # show cdp neighbor detailswitch # show cdp trafficswitch # show cdp interface interface-numswitch # show cdp entry 顯示直連的相鄰設(shè)備及其詳細(xì)信息顯示IP地址和IOS版本和類(lèi)型,并且包括show cdp neighbor命令顯示的所有信息顯示設(shè)備發(fā)送和接收的CDP分組數(shù)以及任何出錯(cuò)信息
11、顯示接口的CDP配置信息顯示所有入口項(xiàng)的細(xì)節(jié)Switch # show interface vlan 1 查看交換機(jī)有關(guān)IP協(xié)議的配置信息Switch # show mac-address-table aging-time 查看MAC地址表超時(shí)時(shí)間Switch # show mac-address-table 查看整個(gè)MAC地址表Switch # show interface f0/0 switchport 查看端口模式Switch # show vlan brief 查看VLAN信息Switch # show vtp status 查看VTP狀態(tài)信息Switch # show spannin
12、g-treee 查看生成樹(shù)信息Switch # show spanning-treee vlan vlan-id detail 查看某個(gè)VLAN的生成書(shū)詳細(xì)信息Switch # show ip cef 產(chǎn)看FIB表Switch # show adjacency detail 產(chǎn)看鄰接關(guān)系表 文檔頂端Cisco catalyst 2950交換機(jī)的密碼恢復(fù)1. 拔下交換機(jī)的電源線。 2. 用手按住交換機(jī)的MODE鍵,插上電源線。 3. 出現(xiàn)“SWITCH:”后,松開(kāi)MODE SWITCH:4. 在SWITCH:后執(zhí)行“flash_init”命令,初始化 SWITCH:flash_init5. 查看
13、FLASH中的文件。 Switch:dir flash6. 把“config.text”文件改名為“config.old”文件。 switch:rename flash:config.text flash:config.old7. 執(zhí)行“boot”命令,啟動(dòng)交換機(jī) 8. 進(jìn)入特權(quán)模式查看FLASH的文件 switch#show flash9. 把文件config.old改為config.text。 switch:rename flash:config.old flash:config.text10. 把config.text考入系統(tǒng)的running-config。 switch#copy fl
14、ash config.text system:running-config11. 加入配置模式重新設(shè)置密碼并存盤(pán)。 文檔頂端VTPSwitch(config)# vtp domain domain-name 設(shè)置VTP域名Switch(config)# vtp mode server|client|transparent 設(shè)置VTP模式Switch(config)# vtp password password 設(shè)置VTP密碼Switch(config)# vtp pruning 配置VTP修剪Switch(config)# vtp version 2 配置VTP運(yùn)行版本為2文檔頂端STPSwi
15、tch(config)# spanning-tree vlan vlan-list 啟用生成樹(shù)Switch(config)# spanning-tree vlan vlan-list root primary|secondary 配置交換機(jī)為根網(wǎng)橋Switch(config)# spanning-tree vlan vlan-list priority Bridge-priority 修改交換機(jī)的優(yōu)先級(jí)Switch(config)#spanning-tree vlan vlan-list vlan-list cost cost 修改端口路徑成本Switch(config)# spanning-
16、tree vlan vlan-list vlan-list port-priority priority 修改端口優(yōu)先級(jí)Switch(config)# spanning-tree uplinkfast 配置上行速鏈路Switch(config)# spanning-tree portfast 配置速端口 文檔頂端三層交換switch(config)# switch(config)# interface vlan vlan-idswitch(config-if)# ip address ip-address subnek-maskswitch(config-if)# no shutdown 配置VLAN IP地址switch(config-if)# no switchport 配置接口為三層模式switch(config)# interface interface-idSwitch(c
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 吉林農(nóng)業(yè)大學(xué)《大數(shù)據(jù)專(zhuān)業(yè)英語(yǔ)》2023-2024學(xué)年第二學(xué)期期末試卷
- 畢節(jié)工業(yè)職業(yè)技術(shù)學(xué)院《計(jì)量統(tǒng)計(jì)學(xué)》2023-2024學(xué)年第二學(xué)期期末試卷
- 煙臺(tái)大學(xué)《對(duì)外漢語(yǔ)教學(xué)法》2023-2024學(xué)年第二學(xué)期期末試卷
- 梅河口康美職業(yè)技術(shù)學(xué)院《計(jì)算機(jī)專(zhuān)業(yè)英語(yǔ)閱讀》2023-2024學(xué)年第二學(xué)期期末試卷
- 海南省東方市民族中學(xué)2024-2025學(xué)年高三下學(xué)期第二次月考?xì)v史試題試卷含解析
- 江蘇省泰安市長(zhǎng)城中學(xué)2025年高三下學(xué)期3月月考(文理)語(yǔ)文試題含解析
- 廣東工程職業(yè)技術(shù)學(xué)院《行業(yè)創(chuàng)業(yè)實(shí)務(wù)》2023-2024學(xué)年第二學(xué)期期末試卷
- 大理護(hù)理職業(yè)學(xué)院《數(shù)學(xué)史與數(shù)學(xué)思想方法》2023-2024學(xué)年第二學(xué)期期末試卷
- 廣西壯族自治區(qū)百色市田東中學(xué)2025屆高三生物試題一模試卷含解析
- 1.2 《離騷(節(jié)選)》 任務(wù)式課件(共51張) 2024-2025學(xué)年統(tǒng)編版統(tǒng)編版高中語(yǔ)文選擇性必修下冊(cè)
- 建筑空間組合論
- 特種工作作業(yè)人員體格檢查表
- 清遠(yuǎn)市城市樹(shù)木修剪技術(shù)指引(試行)
- 廣州國(guó)際文化中心詳細(xì)勘察報(bào)告正文-171229end
- 警察禮儀(PPT53頁(yè))
- 《關(guān)于加強(qiáng)高等學(xué)校食堂管理工作的意見(jiàn)》解讀
- 《尚藝發(fā)型標(biāo)準(zhǔn)剪裁》PPT課件
- 中國(guó)現(xiàn)代文學(xué)史00537
- 110kV升壓站電氣施工工藝及方案培訓(xùn)資料(共107頁(yè))
- 年產(chǎn)萬(wàn)噸碳酸飲料廠的工藝設(shè)計(jì)
- 流砂過(guò)濾器設(shè)計(jì)說(shuō)明書(shū)
評(píng)論
0/150
提交評(píng)論