为什么要配置console口密码
默认情况下 通过console登录时无认证的,任何人都可以连接设备登录进去查看或者修改配置
为避免这样带来的风险,可以将console口配置密码认证登录(可以是明文或者密文)来降低风险
华为设备console口配置
[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode password /认证模式为明文
Please configure the login password (maximum length 16):huawei /明文密码
[Huawei-ui-console0]set authentication password cipher hauwei /认证模式为密文(建议使用密文)
查看配置
[Huawei-ui-console0]dis th
[V200R003C00]
user-interface con 0
authentication-mode password
set authentication password cipher %
%
LBWuGT7]EIlu^6EW{zbF,#F&XLB|KaTeX parse error: Expected 'EOF', got '&' at position 16: e_QbB*~J@IL zZB&̲#F),%%$
退出系统从新登录时使用密码登录验证 (输入密码页面不会显示)
思科设备console口配置
AR1#conf t
AR1(config)#line console 0 /进入console接口
AR1(config-line)#password cisco /设备密码为Cisco
AR1(config-line)#login
退出系统从新登录时使用密码登录验证 (输入密码页面不会显示)