eNSP之PC通过Console连接网络设备
实验环境
PC通过串口连接网络设备
其中的设置参数使用默认值即可,直接点击连接。
配置设备Console接口,使得登录设备时需要认证。
1、密码认证(不安全)
[SW]user-interface console 0 //进入控制台接口
[SW-ui-console0]authentication-mode password //选择认证模式为密码认证
[SW-ui-console0]set authentication password cipher abc123 //设置密码为密文格式的abc123
[SW-ui-console0]quit
[SW]quit
PC重新连接时需要输入密码
考虑到使用密码认证模式时的不安全,建议使用AAA认证模式。
2、AAA认证
实验环境不变,通过配置AAA使得PC在通过console连接配置网络设备时需要输入用户名和密码。
[SW]user-interface console 0 //进入控制台接口
[SW-ui-console0]authentication-mode aaa //选择认证模式为AAA
[SW-ui-console0]quit
[SW]aaa //进入AAA配置
[SW1-aaa]local-user huawei password cipher hcip //添加新用户“huawei”,密码为“hcip”
[SW1-aaa]local-user huawei service-type terminal //设置该用户可进行的服务类型为“Terminal”
[SW1-aaa]quit
PC重新连接时,需要输入用户名与密码。
下一篇我们将介绍,网络设备的Telnet配置。