OSPF常见故障处理

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tladagio/article/details/87804084

一、清除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 

扫描二维码关注公众号,回复: 6711511 查看本文章

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

猜你喜欢

转载自blog.csdn.net/tladagio/article/details/87804084