华为交换机Console密码恢复、取消
1、通过Console口连接交换机,并重启交换机;
2、当界面出现BootROM/BootLoad信息时,及时按下快捷键“Ctrl+B”并输入密码 Admin@huawei.com,进入主菜单;
3、选择Clear password for console user (选择清除console用户密码模式)输入y确定;
4、选择1 Boot with default mode(键入1启动默认模式),重启后输入默认出厂或者无密码即可登录;
5、默认密码一般为:Admin@huawei.com、admin@huawei.com
0x0 管理方式的介绍
1.设备管理方式有几种?
两种:本地管理、远程管理
2.这两种管理方式分别使用什么线路?
本地管理使用console线路 远程管理使用vty线路
0x1 console认证模式分类
authentication-mode aaa //进入设备的时候首先输入用户名再输入密码
authentication-mode password //只需要输入密码就可以登录
0x2 设置认证模式为password
系统模式下:
1、user-interface console 0 // 进入console模式
2、authentication-mode password // 选择认证模式password
3、set authentication password cipher password // 设置认证密码加密为password
4、user privilege level 15 //设置账户权限等级
5、idle-time 10 //超时10分钟退出
注:authentication-mode none //取消认证模式,console连接直接登录
0x3 设置认证模式为aaa
系统模式下:
user-interface console 0 // 进入console模式
authentication-mode aaa // 选择认真模式aaa
aaa //进入aaa模式
local-user user0 password cipher huawei //创建用户user0 密码为huawei
local-user user0 privilege level 15 //给user0 配置0级权限,无法进入系统模式,权限15级
local-user user0 service-type terminal //配置服务类型
注:默认情况下设备厂商已经配置好了console,不需要自己配置,如果要配置请把权限放大些,不然配置ssh不能超过个console的权限。