Switch>用户模式
Switch>enble 进全局模式 特权模式
Switch> enable password **** 进入特权模式明文密码
Switch>enable secret ****密文密码
Switch#disable 退出
Switch#exit退出
Switch# clock set 16:33:33 17 JUN 2013 设置时间
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 配置全双工自动协商
Switch(config-if)# speed auto 配置速率自动协商
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服务器的IP地址
Destination filename [router-config]?
恢复配置文件
Router#copy tftp:starup-config
Address or name of remote host [ ]? TFTP服务器的IP地址
Sourse filename [ ]? router-config
Destination filename [startup-config] ?
Switch#show running-config | include hostname
Switch#show running-config | section hostname
思科IOS命令快捷操作
1、?帮助显示后续命令
对应提示分类:非法输入、无法识别、未完成、<cr>表示输入完成
2、TAB键自动补全无歧义的命令
3、上健恢复上次输入的命令
4、Ctrl-A光标 回到一行最前
5、Ctrl -E光标回到一行最后
6、Ctrl-C 撤销命令回到EXEC
7、Ctrl-Z 执行命令回到EXEC
8、Ctrl+Shift+6 中断正在执行的ping或者Traceroute进程,直接退出Telnet
9、Ctrl-U 清除一行
10、Ctrl-K 恢复前次输入的命令
11、空格显示更多,防火墙按Q退出,路由器按任何字母退出