OSPF常见故障处理

一、清除OSPF故障计数

reset OSPF counters(表示用来将OSPF计数器清零)

二、案例拓扑

1、接口down(查看启用OSPF各接口状态)

<Huawei>display  ospf error  

     OSPF Process 1 with Router ID 1.1.1.1
         OSPF error statistics 

General packet errors:
 0     : IP: received my own packet     0     : Bad packet
 0     : Bad version                    0     : Bad checksum
 0     : Bad area id                    0     : Drop on unnumbered interface
 0     : Bad virtual link               0     : Bad authentication type
 0     : Bad authentication key         0     : Packet too small
 0     : Packet size > ip length        0     : Transmit error
 1     : Interface down                 0     : Unknown neighbor
 0     : Bad net segment                0     : Extern option mismatch
 0     : Router id confusion


2、双方area区域不一致(相连的设备OSPF区域要一致)
[Huawei]display  ospf error 

     OSPF Process 1 with Router ID 1.1.1.1
         OSPF error statistics 

General packet errors:
 0     : IP: received my own packet     0     : Bad packet
 0     : Bad version                    0     : Bad checksum
 4     : Bad area id                    0     : Drop on unnumbered interface
 0     : Bad virtual link               0     : Bad authentication type
 0     : Bad authentication key         0     : Packet too small
 0     : Packet size > ip length        0     : Transmit error
 0     : Interface down                 0     : Unknown neighbor
 0     : Bad net segment                0     : Extern option mismatch
 0     : Router id confusion
 
 3、认证开启错误
 A设备开启了OSPF认证,B设备没有开启认证
 设备A:
 ospf 1 router-id 1.1.1.1
 area 0.0.0.0
  authentication-mode simple cipher J"8a#i1FF(EBi%T]n/.IO9"#
  network 192.168.1.0 0.0.0.255
  network 192.168.0.0 0.0.0.255
  设备B:
  ospf 2 router-id 2.2.2.2
 area 0.0.0.0
  network 192.168.0.0 0.0.0.255
  network 192.168.2.0 0.0.0.255

 
 [Huawei]display  ospf error  

     OSPF Process 1 with Router ID 1.1.1.1
         OSPF error statistics 

General packet errors:
 0     : IP: received my own packet     3     : Bad packet
 0     : Bad version                    0     : Bad checksum
 0     : Bad area id                    0     : Drop on unnumbered interface
 0     : Bad virtual link               3     : Bad authentication type
 0     : Bad authentication key         0     : Packet too small
 0     : Packet size > ip length        0     : Transmit error
 0     : Interface down                 0     : Unknown neighbor
 0     : Bad net segment                0     : Extern option mismatch
 0     : Router id confusion
 
 4、密码认证错误
 A设备开启OSPF认证密码为:ABC,B设备开启认证密码为:ABCD
 设备A:
 ospf 1 router-id 1.1.1.1
 area 0.0.0.0
  authentication-mode simple cipher J"8a#i1FF(EBi%T]n/.IO9"#
  network 192.168.1.0 0.0.0.255
  network 192.168.0.0 0.0.0.255
 设备B:
 ospf 2 router-id 2.2.2.2
 area 0.0.0.0
  authentication-mode simple cipher zs+H1Hqdc.EBi%T]n/.I[PR#
  network 192.168.0.0 0.0.0.255
  network 192.168.2.0 0.0.0.255
 
 <Huawei>display ospf error

     OSPF Process 1 with Router ID 1.1.1.1
         OSPF error statistics 

General packet errors:
 0     : IP: received my own packet     14    : Bad packet
 0     : Bad version                    0     : Bad checksum
 0     : Bad area id                    0     : Drop on unnumbered interface
 0     : Bad virtual link               0     : Bad authentication type
 14    : Bad authentication key         0     : Packet too small
 0     : Packet size > ip length        0     : Transmit error
 0     : Interface down                 0     : Unknown neighbor
 0     : Bad net segment                0     : Extern option mismatch
 0     : Router id confusion

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

友人a笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值