思科 计算机网络操作系统
修改名称 / 修改密码 / 警戒标语 / 设置IP地址 / 保存配置文件
switch> enable 进入特权模式
switch# show running-config 检查当前交换机配置
switch# conf t 进入全局模式(configure terminal)
switch(config)# hostname S2 修改命名
S2(config)# line console 0 进入线路配置模式
S2(config-line)# password *** 修改控制台密码为***
S2(config-line)# login 生效/应用
S2(config-line)# line vty 0 15 虚拟终端线路
S2(config-line)# password *** 修改终端线路密码为***
S2(config-line)# login 生效/应用
S2(config-line)# exit 返回上一步
S2(config)# enable password *** 设置使能密码
S2(config)# enable secret *** 加密密码
S2(config)# service password-encryption 加密明文密码
S2(config)# banner motd "非法访问!" 警戒标语
exit
S2# copy running-config startup-config 保存配置文件
配置IP地址
S1(config)# interface vlan * 进入接口配置模式
S1(config-if)# ip address *.*.*.* *.*.*.* 配置IP地址
S1(config-if)# no shutdown 开启/激活端口
S1# show ip interface brief 显示所有交换机的端口和接口的IP地址和状态
注意:
- teb键补全(全局