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

管理面被 ACL 锁死:自救与预防

把 VTY 管理 ACL 配错把自己挡在外面是最经典的自锁。自救只能走 Console;预防靠变更前先加一条放行自身网段的规则。

网络设备配置速查网络更新于 2026-10-12
场景SSH/Telnet 突然全部无法登录(自己配的 ACL)
适用三厂通用
命令族user-interface / line vty 下的 ACL 检查

华为 VRP

华为 VRP
display current-configuration | include telnet
# Console 登录后检查:
user-interface vty 0 4
display this
undo acl 2000 inbound     # 移除错误绑定

思科 IOS

思科 IOS
show running-config | include access-class
show line vty 0 4
# Console 登录后:
line vty 0 4
 no access-class 10 in

H3C Comware

H3C Comware
display current-configuration | include telnet
# Console 登录后检查:
user-interface vty 0 4
display this
undo acl 2000 inbound
差异:绑定位置都在用户线配置块(华为/H3C user-interface vty、思科 line vty);解除语法相似(undo acl / no access-class)。自救通道是 Console。

易错点

  • 变更管理 ACL 前先在规则里放行当前管理跳板/办公网段并留一条临时通道;改完立即用新会话验证再退出

数据来源与参考

  • 华为 VTY ACL 配置
  • Cisco access-class
  • H3C VTY ACL

相关工具

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