switch>  用户模式
switch>enable
switch#  特权模式
switch#cinfig terminal
switch(config)# 全局配置模式
switch(config)# interface fastethernet0/1
switch(config-if)# 接口模式
exit命令返回上一个模式  end返回特权模式 Ctrl+z返回到特权模式
?显示可以使用的命令和帮助 
Tab 补全命令 Ctrl+a光标移动到首位  Ctrl+e光标移动到尾部
switch(config)#hostname 配置主机名
switch#show version 显示系统ios名称及版本信息
switch#show running-config 查看当前交换机的配置
switch#show startup-config 查看已保存的交换机配置
switch#copy running-config startup-config 保存当前配置信息
switch#erase startup-config 删除已保存的配置信息
设备初始化
switch(config)#line con 0
switch(config-if)#exec-timeout 0 0 永不掉出界面
switch(config)#line con 0
switch(config-if)#logging synchronous 禁止控制台消息
switch(config)#no ip domain-lookup 禁止查询dns