Switch>用戶模式
Switch>enble 進全局模式 特權(quán)模式
Switch> enable password **** 進入特權(quán)模式明文密碼
Switch>enable secret ****密文密碼
Switch#disable 退出
Switch#exit退出
Switch# clock set 16:33:33 17 JUN 2013 設(shè)置時間
Switch#show clock顯示時間
Switch#show version查看版本
Switch#config terminal全局配置模式
Switch(config)# hostname **** 主機名
Switch(config)#interface vlan 1 給交換機配IP地址
Switch(config-if)#ip address 10.1.1.1 255.255.255.0
Switch(config-if)#exit
Switch#show interface fa0/1顯示接口信息
Switch(config)#interface fa0/0
Switch(config-if)# duplex full 配置全雙工
Switch(config-if)# speed 100 配置速率
Switch(config-if)# duplex auto 配置全雙工自動協(xié)商
Switch(config-if)# speed auto 配置速率自動協(xié)商
Switch#ping 10.1.1.1
Switch# show runing-config
Switch#show starup-config
Switch#copy running-config starup-config 存盤(覆蓋)
Switch#copy startrup-config unning-config (合并)
Switch#write 存盤
Switch#erase starup-config清除配置文件
備份配置文件
Router# copy startup-config tftp:
Address or name of temot host [ ]? TFTP服務(wù)器的IP地址
Destination filename [router-config]?
恢復(fù)配置文件
Router#copy tftp:starup-config
Address or name of remote host [ ]? TFTP服務(wù)器的IP地址
Sourse filename [ ]? router-config
Destination filename [startup-config] ?
Switch#show running-config | include hostname
Switch#show running-config | section hostname
思科IOS命令快捷操作
1、?幫助顯示后續(xù)命令
對應(yīng)提示分類:非法輸入、無法識別、未完成、<cr>表示輸入完成
2、TAB鍵自動補全無歧義的命令
3、上健恢復(fù)上次輸入的命令
4、Ctrl-A光標 回到一行最前
5、Ctrl -E光標回到一行最后
6、Ctrl-C 撤銷命令回到EXEC
7、Ctrl-Z 執(zhí)行命令回到EXEC
8、Ctrl+Shift+6 中斷正在執(zhí)行的ping或者Traceroute進程,直接退出Telnet
9、Ctrl-U 清除一行
10、Ctrl-K 恢復(fù)前次輸入的命令
11、空格顯示更多,防火墻按Q退出,路由器按任何字母退出