简介
本文档介绍如何解决开放最短路径优先(OSPF)的常见问题。
先决条件
要求
本文档没有任何特定的要求。
使用的组件
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
规则
有关文档规则的详细信息,请参阅 Cisco 技术提示规则。
主要流程表
如果Cisco设备输出了show ip ospf neighbor、show ip ospf neighbor或show tech-support命令,则可以使用Cisco CLI分析器显示潜在问题和解决方法。要使用Cisco CLI分析器,必须启用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 Two-Way 状态故障排除
![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)脚本对链路摆动进行故障排除。
有关详细信息,请参阅此Cisco支持社区文档,该文档介绍如何使用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
相关信息