—————————————-
Cisco交换机4506/4006密码恢复详细过程
 
 
步骤:
1、 打开45交换机的电源后,出现提示后按住键盘上的“Ctrl−C”5秒。然后进入系统ROM moniter状态(ROMmon)
 
!−−−Here, you power cycle the switch.
 
**********************************************************
 
* Welcome to ROM Monitor for WS−X4014 System. *
 
* Copyright (c) 1999−2000, 2001 by Cisco Systems, Inc. *
 
* All rights reserved. *
 
**********************************************************
 
ROM Monitor Program Version 12.1(10r)EY(1.21)
 
Board type 1, Board revision 7
 
Swamp FPGA revision 16, Dagobah FPGA revision 43
 
Timer interrupt test passed.
 
MAC Address : 00−02−b9−83−af−fe
 
IP Address : 172.16.84.122
 
Netmask : 255.255.255.0
 
Gateway : 172.16.84.1
 
TftpServer : Not set.
 
Main Memory : 256 MBytes
 
***** The system will autoboot in 5 seconds *****
 
Type control−C to prevent autobooting.
 
!−−−At this point, press Ctrl+C.
 
Autoboot cancelled……… please wait!!!
 
Autoboot cancelled……… please wait!!!
 
rommon 1 > [interrupt]
 
!−−−The module ended in the ROMmon.
 
rommon 1 > [interrupt]
 
 
 
2、 进入了ROMmon模式后使用命令“confreg”进入系统恢复阶段。
 
   rommon 1 > confreg
 
Configuration Summary :
 
=> load ROM after netboot fails
 
=> console baud: 9600
 
=> autoboot from: commands specified in 'BOOT' environment variable
 
do you wish to change the configuration? y/n [n]: y
 
enable "diagnostic mode"? y/n [n]: n
 
<span style

一、分层排障模型(从物理层到应用层)

网络故障排查最忌”乱试”。按 OSI 自底向上:物理层(网卡/线缆/光模块/端口灯)→ 数据链路层(VLAN、MAC、STP、协商速率)→ 网络层(IP、网关、路由、ARP)→ 传输层(TCP/UDP 端口、ACL)→ 应用层(DNS、代理、证书)。先确认链路通断(网卡 up、协商速率正常),再 ping 网关,再 traceroute 看断点在第几跳,最后查应用端口与日志。

Cisco 4506 交换机密码恢复:ROM 模式步骤
图片素材来自免费商用图库(pixabay,摄影师 ElasticComputeFarm),非本站项目实拍。

二、排障工具箱

  • ping / pathping / mtr:看连通性与逐跳丢包延迟。
  • traceroute / tracert:定位故障跳点,区分运营商侧还是内网侧。
  • Wireshark:抓包看 TCP 重传、RST、DNS 超时、ARP 风暴,可复现 NAT 穿透与三次握手异常。
  • 交换机端口:err-disable、CRC 错包、双工不匹配、loop guard 是端口故障高频原因,show interface 看 counters 是第一步。
  • 防火墙:iptables/firewalld/nftables/ufw 规则顺序与默认策略决定放行,改前先备份规则、确认 SSH 不会被锁死。

三、工程经验

交换机端口频繁 err-disable 多因 BPDU guard 或线缆接触不良;无线与有线混排时优先固化上联端口;变更防火墙前在测试环境验证并保留回滚命令。运维类故障的闭环是:复现 → 定位 → 临时恢复 → 根因修复 → 复盘沉淀。

相关阅读

分类: › 标签:# # # # # # # # #

相关推荐