华为密码和用户授权
华为设备如何登录真机?
真机背部:
console控制口管理
通过特制的console线。来连接华为设备,模拟器中 选择绿色的 CTL线连接。
通过PC的 console线与华为设备相连。使用串口进行连接
真实情况下可以使用 CRT 进行连接,连接时选择 Serial
接口密码配置:
单密码方式配置
<Huawei>sys
[Huawei]user-interface console 0
[Huawei-ui-console0] authentication-mode password
[Huawei-ui-console0]set authentication password ?
cipher Set the password with cipher text -- 配置信息中显示密文密码
simple Set the password in plain text -- 配置信息中显示明文密码
[Huawei-ui-console0]set authentication password simple abc ## 密码设置为abc
取消配置:
[Huawei-ui-console0] undo authentication-mode
[Huawei-ui-console0] undo set authentication password
配置完成后效果:
用户名与密码方式配置(3A认证登录)
[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode aaa ## 改为3a配置
[Huawei-ui-console0]quit ## 退出
[Huawei-aaa]local-user leilei privilege level 3 password simple leilei ## 配置级别
[Huawei-aaa]local-user leilei service-type terminal ## 配置为com口登录
重新登录:
这样就实现了 用户密码登录
关于 level 级别对照表 3级基本够了
更改登录超时时间(默认10分钟)
idle-timeout 10 ## 更改为10分钟超时
idle-timeout 0 ## 更改为永不超时 不退出 不锁屏
更改历史命令显示【可选】
[Huawei]user-interface console 0
[Huawei-ui-console0]history-command max-size 200 ## 更改历史命令显示
super密码配置:
super密码 超级密码,默认为空,让低权限密码输入super密码后可以提升权限。
配置方法:
sys
[Huawei] super password simple 123
华为设备登录调试
多人登录,查看登录人数
[Huawei]dis users
查看哪些终端线路登录
dis user-interface
查看远程登录的用户:
[Huawei] dis access-user
重置华为路由器交换机密码
先配置一个用户密码模拟忘记密码
[Huawei] aaa ## 进入aaa
[Huawei-aaa] local-user chen privilege level 3 password cipher 123 ## 创建用户密码
[Huawei-aaa] local-user chen service-type terminal ## 指定登录类型
[Huawei]user-interface console 0 ## 指定在console口调用
[Huawei-ui-console0] authentication-mode aaa ## 指定认证类型
这样就配置好了console口用户和密码,在下次登录时需要进行输入
破解密码
首先通过笔记本连接到交换机,找到对应的com口,在系统硬件管理器中查看当前console口属于com几接口
通过接口首先连接到交换机或者服务器
密码恢复过程:
启动时按 ctrl + b 终止操作系统启动,进入BOOTROM,类似于PC进入BIOS
启动之后,输入BOOT默认密码 Admin@huawei.com 或者 huawei
进入后 选择 7 选择 1
进入后: 这个界面之前需要输入默认密码
选择7后进入该界面,选择1 清除用户密码保留配置
重新启动设置新密码:
重新设置i密码后 保留配置
通过web管理交换机
开启方式:
<Huawei>http server load S2700-V1--R005C01SPC100。web.zip
[Huawei] http server enable
配置ip地址:
int vlan 1
ip add 192.168.31.85 24


发表评论