配置console口认证(华为/思科)

为什么要配置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
退出系统从新登录时使用密码登录验证 (输入密码页面不会显示)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值