1、交换机五大基本工作模式及命令
第一次配置网络设备需要使用console线
在pc需要使用“超级终端”或其他软件
(1)用户模式:switch>
可以查看交换机的基本简单信息,且不能做任何修改配置。
(2)特权模式:switch> enable ==> switch#
缩写:en
可以查看所有配置,且不能修改配置,但可以做测试、保存、初始化等操作。
(3)全局配置模式:switch#configure terminal ==> switch(config)#
缩写:conf
默认不能查看配置,可以修改配置,且全局生效。
(4)接口配置模式:switch(config)# interface f0/1 ==> switch(config-if)#
缩写:int f0/1
默认不能查看配置,可以丢该设置,且对该端口生效。
exit;退出一级
end:直接退到特权模式
(5)console口/线/控制台模式:switch(config)# line console 0 ==> switch(config-line)#
2、配置主机名
cong t
hostname 设备名