Show Switchshow interface Switchshow macaddresstable VLAN Switchdelete flash
常用的Show指令 ‣ 顯示交換器介面的狀態 – Switch#show interface ‣ 顯示交換器的交換表 – Switch#show mac-address-table
重新設定交換器的步驟 ‣ 刪除VLAN資訊 – Switch#delete flash: vlan. dat ‣ 刪除啟動設定檔(NVRAM) – Switch#erase startup-config ‣ 重新啟動交換器 – Switch#reload
設定交換器的基本步驟 ‣ 設定交換器主機名稱 – Switch(config)#hostname taipei ‣ 設定進入特權模式(Privileged Mode)密碼 – taipei (config)#enable secret cisco ‣ 設定交換器console(控制台)連線的密碼 – taipei (config)#line console 0 – taipei (config-line)#password cisco – taipei (config-line)#login
設定交換器的基本步驟 ‣ 設定交換器telnet(遠端連線)連線的密碼 – taipei (config)#line vty 0 4 – taipei (config-line)#password cisco – taipei (config-line)#login ‣ 設定交換器的IP(預設管理 VLAN是 VLAN 1) – taipei (config)#int vlan 1 – taipei (config-if)#ip address 192. 168. 1. 253 255. 0 – taipei (config-if)#no shutdown
設定交換器的連接埠安全性 ‣ ‣ ‣ 進入要設定的連接埠 – taipei (config)#int f 0/1 先關閉連接埠 – taipei (config-if)#shutdown 連接埠模式要設定為access才能使用連接埠安全機制 – taipei (config-if)#switchport mode access 設定連接埠只能允許一個MAC位址 – taipei (config-if)#switchport-security maximum 1 設定安全機制違反時的動作 – taipei (config-if)#switchport-security violation shutdown
設定交換器的連接埠安全性 ‣ ‣ ‣ 設定連接埠允許的MAC 位址 – taipei (config-if)# switchport-security mac-address 00 D 0. D 306. 3 B 4 B 啟動連接埠 – taipei (config-if)# no shutdown 顯示連接埠 F 0/1的安全機制設定 – taipei# show port-security int f 0/1
- Slides: 12