华为交换机路由器设备怎样配置console串口登录用户密码

华为交换机路由器设备怎样配置console密码
在这里插入图片描述

在对路由器交换机等网络进行管理中,为了安全起见经常需要为设备配置登录密码,尤其是使用串口线直连设备时。
console线路密码认证有两种方式:1,只配置password(密码);2,aaa认证模式配置用户和密码管理权限

一,只使用密码验证登录console口

[R1]user-interface console 0 //配置console口
[R1-ui-console0]authentication-mode password //配置认证模式为密码模式
Please configure the login password (maximum length 16):admin123 //配置密码

打开电脑连线后进行连接
在这里插入图片描述
输入密码后进入登录进来
在这里插入图片描述

如果想修改密码,可通过set authentication password cipher XXXXX设置(XXXXX代表你需要输入的修改后的密码)

[R1]user-interface console 0 //先进入到console 0口进行配置
[R1-ui-console0]set authentication password cipher admin1234 //修改密码为admin1234


二,使用AAA认证模式,配置使用用户名和密码登录console口,以及管理权限级别

[R1]user-interface console 0 //配置console 0口
[R1-ui-console0]authentication-mode aaa //配置认证模式为aaa

进入aaa模式下配置用户和权限

[R1]aaa
[R1-aaa]local-user user password cipher user123 //创建用户user,密码user123。如果需要修改密码,也可在此重新配置密码来修改。
Info: Add a new user.

[R1-aaa]local-user user privilege level 15 //配置用户user的权限为level 15,此处用户等级有0-15共16级,可根据需要配置不同的用户使用不同的权限。

使用电脑连接设备,输入用户名密码,登录到设备

在这里插入图片描述

===========================================================================
三,如何使用ENSP模拟器使用console线连接路由器交换机

先新建模板,然后拖入PC和路由器,然后选择线缆中的CTL线,即串口线,然后连接PC和路由器交换机设备
在这里插入图片描述

连接后如下
在这里插入图片描述

打开PC设备,在串口选项中点击“连接”进行连接,正常连接
在这里插入图片描述


猜你喜欢

转载自blog.csdn.net/qq_33292195/article/details/121435990