思科3750交換機中文配置手冊_第1頁
思科3750交換機中文配置手冊_第2頁
思科3750交換機中文配置手冊_第3頁
思科3750交換機中文配置手冊_第4頁
思科3750交換機中文配置手冊_第5頁
免費預覽已結(jié)束,剩余1頁可下載查看

下載本文檔

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

文檔簡介

1、先把這個學會吧,再去搞哪個,會容易入手,是一樣的結(jié)構(gòu)。思科的命令和這不 同,我這有路由模擬器要的話告訴我你的郵箱我發(fā)給你。SWITCH筆記1. Switch comma nd2. Switch setup3. Vian setup4. VLAN TRUNK5. Switch in terface setup6. SHOW comma nd7. Cisco catalyst 2950 交換機的密碼恢復8. VTP9. STP10. 三層交換11. 5.Switch comma ndSwitch en 進入特權(quán)模式Switch # conf t 進入全局配置模式SwitchSw

2、itchSwitchSwitch(config)# in terface in terface-num 進入接口(config)# host name n ame 給交換機命名(config)# enable password password設置明文密碼(config)# enable secret password 設置加密的啟用秘密口令。如果設 置則取代明文口令Switch # copy runnin g-c onfig startup-c onfigSwitch # write 保存設置保存設置Switch # erase startup-co nfig恢復交換機出廠值置頂Switch

3、 setupswitch ( config)# in terface via n 1switch ( config-if)# ip address ip-address netmaskswitch ( 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交換機上設置遠程訪問,用于交換機管理配

4、置IP地址開起端口退出設置缺省網(wǎng)關域名服務(自身用)域名服務地址(自身用)文檔頂端Vian setupSwitch # via n databaseswitch ( vian) # vian vian-id name vian-nameswitch ( vian) # exitswitch # config teriminai 創(chuàng)建 VLAN (全局配置模式下)倉U建vian推出啟用switch # config tswitch (config ) # vian vian-idswitch (con fig-via n ) # n ame via n-n ameswitch (config-v

5、ian ) # exit 創(chuàng)建 VLAN (VLAN 數(shù)據(jù)庫中)命名推出生效Switch # config teriminaiswitch (config ) # in terface in terface-numswitch (config-if) # switchport mode accessswitch (config-if) # switchport access vian vian-idswitch (config-if) # endswitch # show runnin g-c onfig in terface in ter-idswitch # show in terface

6、 in ter-id switch port 給 VLAN 添加端口進入要分配的端口定義二層端口把端口分配給某一 VLAN退出驗證端口的VLAN號驗證端口的管理模式和VLAN情況switch#c onfig terimi naiswitch (config ) #interface range fO/1 - 10switch (config-if) #switchport access vian vian-idswitch (config-if) #endswitch#show via n briefswitch#show vlan vian-id添加多個端口到一個 VLAN選擇多個端口加入V

7、LAN查看驗證VLAN查看指定VLANSwitch # config tswitch (config ) # no vian vian-idswitch (config ) # end 刪除 VLANswitch ( config)# ip http sever 啟用 HTTP 訪問 文檔頂端VLAN TRUNKswitch ( config)# in terface in terface mod/portswitch ( config-if)# switchport mode trunkswitch (config-if)# switchport trunk encapsulation is

8、l|dotlq|酉己置 VLAN 中繼線switch ( config)# in terface in terface-idswitch ( config-if)# switchport mode dynamic desirable/auto進入端口設置設置接口為中繼動態(tài)協(xié)商模式,desirable或autoswitch(config-if)#switchport trunk allowed vlan none阻止所有 VLAN 通過switch(config-if)#switchport trunk allowed vlan remove vlan-listswitch (config-if

9、)# switchport trunk allowed vlan add vlan-list從 TRUNK 中刪除VLAN,阻止通過在TRUNK中添加VLAN,允許通過文檔頂端Switch in terface setupSwitch # config tSwitch ( config)# in terface in ter-idswitch ( config-if)# duplex auto|full|halfswitch (config-if)# speed10|100|auto 交換機上設置端口速度 switch ( config-if)# description description

10、-string交換機的端口描述文檔頂端SHOW comma ndSwitch # show versi onSwitch # show runnin g-c onfig列出當前運行配置信息Switch # show startup-c onfigSwitch # show in terface in terface-num產(chǎn)看借口信息Switch # show cdp n eighborswitch # show cdp n eighbor detailswitch # show cdp trafficswitch # show cdp in terface in terface-numswi

11、tch # show cdp entry 顯示直連的相鄰設備及其詳細信息顯示IP地址和IOS版本和類型,并且包括show cdp neighbor命令顯示的所有 信息顯示設備發(fā)送和接收的CDP分組數(shù)以及任何出錯信息顯示接口的CDP配置信息顯示所有入口項的細節(jié)Switch # show in terface vlan 1查看交換機有關IP協(xié)議的配置信息Switch # show mac-address-table aging-time 查看 MAC 地址表超時時間Switch # show mac-address-table 查看整個 MAC 地址表Switch # show in terfac

12、e f0/0 switchport 查看端口模式Switch # show vlan brief 查看 VLAN 信息Switch # show vtp status 查看 VTP 狀態(tài)信息Switch # show spa nnin g-treee查看生成樹信息Switch # show spanning-treee vlan vlan-id detail查看某個 VLAN 的生成書詳細信息Switch # show ip cef 產(chǎn)看 FIB 表Switch # show adjace ncy detail產(chǎn)看鄰接關系表文檔頂端Cisco catalyst 2950 交換機的密碼恢復1.

13、拔下交換機的電源線。2. 用手按住交換機的MODE鍵,插上電源線。3. 出現(xiàn) “SWITCH后,松開 MODE SWITCH:4. 在 SWITCH:后執(zhí)行 “flashnit命令;初始化 SWITCH:flash_init5. 查看 FLASH 中的文件。Switch:dir flash6. 把 “config.text文件改名為 “config.old文件。switch:renameflash:c on fig.text flash:c on fig.old7. 執(zhí)行“ boo命令,啟動交換機8. 進入特權(quán)模式查看 FLASH的文件switch#show flash9. 把文件 confi

14、g.old 改為 config.text。 switch:rename flash:config.oldflash:c on fig.text10. 把 config.text 考入系統(tǒng)的 running-config。 switch#copy flash config.text system:r unnin g-c onfig11. 加入配置模式重新設置密碼并存盤 文檔頂端VTPSwitch (config ) # vtp domain domain-name設置 VTP 域名Switch ( config)# vtp mode server|client|transparent設置 VTP

15、 模式Switch ( config)# vtp password password 設置 VTP 密碼Switch ( config)# vtp pruning 配置 VTP 修剪Switch ( config)# vtp version 2 配置 VTP 運行版本為 2 文檔頂端STPSwitch (config)# spanning-tree vlan vian-list啟用生成樹Switch ( config)# spanning-tree vian vian-list root primary|secondary配置交換機為根網(wǎng)橋Switch ( config)# spanning-

16、tree vlan vian-list priority Bridge-priority 修改交換 機的優(yōu)先級Switch ( con fig)#spa nnin g-tree vla n via n-list vla n-list cost cost修改端口路徑成本Switch ( config)# spanning-tree vian vian-list vian-list port-priority priority修改端口優(yōu)先級Switch ( con fig)# spa nnin g-tree upli nkfast酉己置上行速鏈路Switch ( con fig)# spa nnin g-tree portfast酉己置速端口文檔頂端三層交換switch ( config)#switch ( con fig)# in terface via n via n-idswitch ( con fig-if)# ip address ip-address sub nek-maskswitch (config-if)# no shutdown 配置 VLAN IP 地址switch ( config-if)# no switchport 配置接 口為三層模式 switch ( config)# in terface in terface-idSwitch ( conf

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論