簡介
本文說明如何解決開放最短路徑優先(OSPF)的常見問題。
必要條件
需求
本文件沒有特定需求。
採用元件
本文件所述內容不限於特定軟體和硬體版本。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
慣例
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
主流程圖
如果您的Cisco裝置輸出了show ip ospf neighbor、show ip ospf neighbor或show tech-support命令,則可以使用Cisco CLI Analyzer顯示潛在問題和修復程式。要使用Cisco CLI Analyzer,您必須啟用JavaScript。
注意:只有註冊思科使用者才能訪問內部思科工具和資訊。
![Main Flowchart](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-00.jpeg)
排除OSPF鄰居狀態故障
請參閱OSPF鄰居狀態以瞭解鄰居狀態說明。
![Troubleshoot OSPF Neighbor States](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-01.jpeg)
排除OSPF路由表故障
![Troubleshoot OSPF Routing Table](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-02.jpeg)
排除OSPF Init狀態故障
有關OSPF Init狀態的詳細資訊,請參閱排除OSPF鄰居問題。
![Troubleshoot OSPF Init State](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-03.jpeg)
排除OSPF MTU故障
![Troubleshoot OSPF MTU](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-04.jpeg)
注意:如果問題與第2層相關,請檢查是否啟用了代理ARP。如果已啟用,請將其停用,並使用clear ip arp指令清除ARP快取。
排除OSPF損壞資料包故障
![Troubleshoot OSPF Corrupt Packets](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-05.jpeg)
排除OSPF雙向狀態故障
![Troubleshoot OSPF Two-way State](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-06.jpeg)
排除OSPF鏈路故障
![Troubleshoot OSPF Links](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-07.jpeg)
您可以使用嵌入式事件管理器(EEM)指令碼對連結擺動進行故障排除。
如需詳細資訊,請參閱此思科支援社群檔案,其中說明如何使用EEM指令碼,以便在發生OSPF翻動時從路由器收集資訊:使用EEM指令碼對OSPF翻動進行疑難排解。
.
完全鄰接故障排除
![Troubleshoot Full Adjacency](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-08.jpeg)
排除外部鏈路狀態通告故障
![Troubleshoot External Link-State Advertisements](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-09.jpeg)
排除OSPF NBMA網路故障
有關此主題的詳細資訊,請參閱排除開放最短路徑優先路由資料庫問題。
![Troubleshoot OSPF NBMA Networks](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-10.jpeg)
存取清單疑難排解
![Troubleshoot Access Lists](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-11.jpeg)
排除通過PRI的鄰居故障
![Troubleshoot Neighbors over PRI](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-12.jpeg)
Ping故障排除
![Troubleshoot Ping](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-13.jpeg)
排除OSPF介面故障
![Troubleshoot OSPF Interface](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-14.jpeg)
幀中繼環境故障排除
![Troubleshoot Frame Relay Environment](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-15.jpeg)
排除外部路由問題
![Troubleshoot External Route Problems](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-16.jpeg)
網路型別故障排除
![Troubleshoot Network Type](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-17.jpeg)
排除OSPF區域型別故障
![Troubleshoot OSPF Area Type](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-18.jpeg)
排除Hello/Dead間隔不匹配故障
![Troubleshoot Hello/Dead Interval Mismatch](/c/dam/en/us/support/docs/ip/open-shortest-path-first-ospf/12151-trouble-main-19.jpeg)
debug ip ospf hello命令的debug輸出顯示hello引數不匹配。以下是偵錯輸出的範例:
*Oct 12 14:03:32.595: OSPF: Send hello to 10.224.0.5 area 0 on FastEthernet1/0
from 192.168.12.2
*Oct 12 14:03:33.227: OSPF: Rcv hello from 10.1.1.1 area 0 from FastEthernet1/0
192.168.12.1
*Oct 12 14:03:33.227: OSPF: Mismatched hello parameters from 192.168.12.1
!--- Indicates that there is mismtached hello parameters from 192.168.12.1
*Oct 12 14:03:33.231: OSPF: Dead R 2 C 3, Hello R 1 C 1 Mask R
255.255.255.0 C 255.255.255.0
*Oct 12 14:03:33.531: OSPF: Send hello to 10.224.0.5 area 0 on
FastEthernet1/0 from 192.168.12.2
相關資訊