網路中斷時,乙太網介面故障是高頻嫌疑點。Cisco IOS 內建 show version 與 show interface 兩大核心指令,能在幾秒內判斷是「物理層損壞」還是「配置/邏輯層問題」,避免盲目換線、換模組。本文建立標準化診斷流程與判讀對照表。
疑似乙太網故障
│
▼
show version ──► 介面是否出現在列表? ──否──► 物理損壞/模組未就位 ──► 換模組/換設備
│ │
是 ▼
▼ show interface
│ │
▼ ▼
show interface ◄───────────────── 觀察 Line/Protocol 狀態組合
│
▼
對照狀態組合表採取對應動作
Router# show version
...
2 FastEthernet/IEEE 802.3 interface(s)
1 GigabitEthernet/IEEE 802.3 interface(s)
2 Serial(sync/async) interface(s)
...
FastEthernet0/1) **完全不在列表中** → 物理層故障:模組未就位、插槽損壞、模組故障、不支援該模組的機型。| Line Status | Protocol Status | 含義 | 典型原因 | 對策 |
|---|---|---|---|---|
| Up | Up | 正常通訊 | — | 無需處理 |
| Up | Down | 實體連結正常,封裝/協定不匹配 | 對端 shutdown、封裝不同 (HDLC/PPP/Frame Relay)、IP 子網不匹配、ACL 阻擋、Keepalive 失敗 | 檢查對端介面狀態、封裝、IP、ACL、keepalive 設定 |
| Down | Down | 實體連結斷開 | 網線斷/鬆、對端關機/關介面、光模組故障、速率/雙工不匹配、MDI/MDIX 錯誤 | 檢查線序、對端燈號、speed/duplex auto、換線/換模組 |
| Administratively Down | Down | 介面被管理員手動關閉 | 配置 shutdown | no shutdown 啟用介面 |
| Up | Up (Err-Disabled) | 錯誤禁用狀態 | Port-security 違規、UDLD 雙向檢測失敗、STP Loop Guard、Link Flap | show interfaces status err-disabled 查看原因 → 修正根因 → shutdown/no shutdown 或 errdisable recovery |
Router# show interfaces FastEthernet0/0
FastEthernet0/0 is up, line protocol is up
Hardware is AmdFE, address is 001a.2b3c.4d5e (bia 001a.2b3c.4d5e)
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is 10/100BaseTX
input flow-control is off, output flow-control is off
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:01, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 1000 bits/sec, 2 packets/sec
5 minute output rate 2000 bits/sec, 3 packets/sec
123456 packets input, 12345678 bytes, 0 no buffer
Received 12345 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
123456 packets output, 12345678 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
重點計數器異常判讀:
shutdown:show running-config interface 檢查是否有 shutdown,執行 no shutdown。speed 100 duplex full,另端 auto → 導致 duplex mismatch (大量 Collisions/CRC)。建議雙端同為 auto。encapsulation dot1Q VLAN ID 錯誤。show port-security interface 查看違規計數與動作 (shutdown/restrict/protect)。
故障單編號: INC-20240115-001
時間: 2024-01-15 14:30
設備: Core-SW1 (10.1.1.1)
介面: GigabitEthernet1/0/24
現象: 伺服器斷網
執行指令:
show version | include GigabitEthernet1/0/24 → 存在
show interfaces Gi1/0/24 → Up / Down
show interfaces Gi1/0/24 counters errors → CRC 1245, Frame 12
判斷: 物理層訊號品質差 (CRC/Frame 錯誤)
處理: 更換 Cat6a 跳線、清潔光模組/銅纜接頭、對端同步 auto/auto
結果: 介面 Up/Up,CRC 停止增長,業務恢復
建立「先查版本確認物理存在 → 再查介面狀態組合 → 再看計數器 → 最後查配置」的標準化診斷肌肉記憶,能將乙太網故障平均修復時間 (MTTR) 從 30 分鐘壓縮至 5 分鐘以內。