首页/网络/网络设备配置速查/Console 口密码与认证
本包目录(508 条)
设备开局与基础配置61 条
接口与链路73 条VLAN 与二层交换60 条路由(静态 / OSPF)62 条ACL 与安全65 条NAT 与出口31 条DHCP 与地址服务32 条堆叠、高可用与备份升级52 条设备排障72 条

Console 口密码与认证

Console 是设备失联后的最后救命通道,必须设密码但同时要登记管理,避免真的变成“谁都进不去”;三厂配置入口都是 user-interface console。

网络设备配置速查网络更新于 2026-10-12
场景机房物理安全、带外调试
适用全部设备
命令族user-interface console / line console / user-interface console

华为 VRP

华为 VRP
[Huawei] user-interface console 0
[Huawei-ui-console0] authentication-mode password
[Huawei-ui-console0] set authentication password cipher Cons0le@2026
[Huawei-ui-console0] idle-timeout 5 0

思科 IOS

思科 IOS
SW-CORE-01(config)# line console 0
SW-CORE-01(config-line)# password Cons0le@2026
SW-CORE-01(config-line)# login
SW-CORE-01(config-line)# exec-timeout 5 0

H3C Comware

H3C Comware
[H3C] user-interface console 0
[H3C-ui-console0] authentication-mode password
[H3C-ui-console0] set authentication password cipher Cons0le@2026
思科 Console 只需 line console 下 login + password;华为/H3C 用 authentication-mode password 配合 set authentication password;部分版本还要求先 authentication-mode 才接受 set 命令。

易错点

  • Console 口令丢失后只能物理接触走密码恢复流程,务必纳入密码管理系统登记
  • 改 Console 认证后不要立刻断开现有会话,先另开一个串口会话验证再关

数据来源与参考

  • 华为产品文档:Console 口登录配置
  • Cisco IOS Console 线路配置
  • H3C Comware 7 Console 登录

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌