系統化的故障排除方法論是網管核心競爭力。本文建立 Cisco 故障診斷四大工具箱,並針對 TCP/IP 乙太網、序列專線、電話撥號、幀中繼、X.25、IBM 大型機連接七大典型場景,提供分層排查流程、關鍵 Show/Debug 指令與決策樹。
| 工具 | 適用階段 | 典型指令 | 風險 |
|---|---|---|---|
| Show | 資訊收集、狀態確認 | show interface, show running-config, show ip route, show version, show controllers, show buffers/memory/processes | 低,唯讀 |
| Debug | 深度分析、即時追蹤 | debug ip rip, debug ppp negotiation, debug isdn q921, debug ip packet | **高 CPU**,必須 no debug all 關閉,建議輸出導向 buffer 或 syslog |
| Ping | 連通性驗證 | ping ip, ping ip repeat 100 size 1500 df-bit (MTU/丟包測試) | 低 |
| Trace | 路徑定位 | traceroute ip, trace ip | 低 |
show interface ethernet 0 看 Line protocol:Down:纜線未接/壞、對端 Port Down、Speed/Duplex 不匹配 (10M NIC 接 100M Port 需手動 speed 10 duplex half)。Administratively Down:no shutdown 啟用介面。Up/Up 但 Ping 不通:檢查 IP 子網是否一致、ACL 阻擋、ARP 表、防火牆。Serial 接口狀態
├─ Down/Down → 檢查 DCE 端 clock rate、纜線、CSU-DSU/Modem 電源、CD 訊號
├─ Up/Down → 封裝不一致 (HDLC vs PPP)、對端 Down、Keepalive 失敗、忽略 DCD (Newbridge DTU 需 ignored-dcd)
├─ Up/Up (looped) → 本端/對端/電信局 環回測試未關閉,clear loopback
└─ Administratively Down → no shutdown
show interface serial 0
show controllers serial 0
debug serial interface
debug ppp negotiation
debug ppp authentication
telnet 2001 (Reverse Telnet 到 Aux/Async 線路),發 AT 指令測試 Modem。show line 解讀 Line 狀態 (Ready/Active/Idle)。debug dialer 觀察撥號觸發、CHAP/PAP 交互、斷線原因。debug modem 觀察 Modem 控制訊號 (DTR/DSR/RTS/CTS/CD)。show frame-relay pvc:PVC 狀態 ACTIVE/INACTIVE/DELETED/STATIC。show frame-relay lmi:LMI 類型 (Cisco/ANSI/Q933a)、狀態交換計數。debug frame-relay lmi / debug frame-relay events。show frame-relay map,Inverse ARP 或靜態 map 是否正確。show x25 vc、show x25 map、debug x25 events。show llc2、show dlsw peers、debug llc2。show tech-support 導出,copy logging 保存日誌。