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
转载于:https://blog.51cto.com/itxiaoliu/528982
本文介绍了Cisco交换机的基本配置步骤,包括进入不同配置模式的方法、常用配置命令如设置主机名、显示版本信息等,以及如何保存和删除配置。此外还提供了设备初始化时的一些配置建议。
4634

被折叠的 条评论
为什么被折叠?



