模式切換
Switch>enable //輸入 enable 進入 Privilege Mode
Switch# //Privilege Mode
Switch#configure terminal //輸入 configure terminal 進入 Global Mode
Switch(config)# //Global Mode
設定 Switch Name
Switch(config)#hostname Name //Name 為自行定義的機器名稱
設定 Password
secret 及 password 的差別? 當您輸入 show running-config 後會看見 secret 是亂碼(因為有加密過)而 password 是明文
Switch(config)#enable password 密碼 //設定 Privilege Mode 密碼
Switch(config)#enable secret 密碼 //設定密碼加密
設定 Telnet
Switch(config)#line vty 0 4
Switch(config-line)#password 密碼 //設定 Telnet 密碼
設定 Switch 管理的 IP
Switch(config)#interface vlna 1 //設定管理的IP
Switch(config-if)#ip address 192.168.1.92 255.255.255.0
Switch(config-if)#no shutdown //changed state to up
Switch(config-if)#exit
Switch(config)#exit
Switch#show interface vlan 1 //檢查Interface設定
設定 Default Route
Switch(config)#ip default-gateway 192.168.1.254 //設定 Default Rroute
Switch(config)#exit //離開 config 模式
Switch# show ip default-gateway //檢查 Default Route 設定
設定 Port
Switch(config)#interface fastEthernet 0/1 //選定要設定的 Port
Switch(config-if)#speed speed //設定 Port Speed
Switch(config-if)#duplex duplex //設定 Port Duplex
清除設定
Switch#write erase //清除全部設定
Switch#reload //必須重新開機
儲存設定
Switch#copy run start //將目前的設定套用至 NVRAM (代表重開機後設定仍在)
沒有留言:
張貼留言