I also having troble with ospf. Its seems like OSPF is quite good up and running, but afte some kind of state change, (wireless link down between 2 routers etc) it has trobble getting back. Whats really wired, is that a reebot of connecting routers, always seems to work.
Simple setup:
R1-R2-R3
If link goes down between R2 and R3 ospf will not up running. ((Rb1100 MPLS/ospf/bgp ((R2))) - (RB800 NV2, plane bridge, wds mode) - (RB800 NV2, plane bridge, wds mode) - (Rb11000 Mpls,ospf/bgp (R3))
(Its the same if link is ethernet,fiber,licensed 18/23G radios etc)
I'we got wired errors in log.
From R3: (why 10M full i dont know, but its not the problem)
/02/1970 01:00:09 interface,info ether11 link down
jan/02/1970 01:00:10 interface,info ether11 link up (speed 100M, full duplex)
jan/02/1970 01:00:11 interface,info ether11 link down
jan/02/1970 01:00:13 interface,info ether11 link up (speed 10M, full duplex)
jan/02/1970 01:00:33 route,ospf,info OSPFv2 neighbor 172.31.0.11: state change from ExStart to Init
jan/02/1970 01:00:33 route,ospf,info OSPFv2 neighbor 172.31.0.13: state change from ExStart to Init
jan/02/1970 01:00:33 route,ospf,info OSPFv2 neighbor 172.31.0.13: state change from ExStart to Init
jan/02/1970 01:00:55 route,bgp,info Failed to open TCP connection: Network is unreachable
jan/02/1970 01:00:55 route,bgp,info RemoteAddress=172.31.0.13
jan/02/1970 01:00:58 route,bgp,info TCP connection established
jan/02/1970 01:00:58 route,bgp,info RemoteAddress=172.31.0.15
15:03:18 route,ospf,info Database Description packet has different master status flag
15:03:18 route,ospf,info new master flag=false
15:03:18 route,ospf,info OSPFv2 neighbor 172.31.0.13: state change from Full to 2-Way
15:03:18 route,ospf,info Database Description packet has different master status flag
15:03:18 route,ospf,info new master flag=false
15:03:18 route,ospf,info OSPFv2 neighbor 172.31.0.13: state change from Full to 2-Way
15:03:36 route,bgp,info Connection opened by remote host
15:03:36 route,bgp,info RemoteAddress=172.31.0.11
From Other side (R3)
15:02:31 route,ospf,info Invalid sequence number
15:02:31 route,ospf,info mine=381330
15:02:31 route,ospf,info received=15
15:02:31 route,ospf,info Discarding packet: MD5 authentication failed
15:02:31 route,ospf,info source=172.17.0.102
15:02:31 route,ospf,info Invalid sequence number
15:02:31 route,ospf,info mine=552049
15:02:31 route,ospf,info received=18
15:02:31 route,ospf,info Discarding packet: MD5 authentication failed
15:02:31 route,ospf,info source=172.17.0.190
15:02:32 route,bgp,info Connection opened by remote host
15:02:32 route,bgp,info RemoteAddress=172.31.0.20
15:02:33 route,ospf,info OSPFv2 neighbor 172.31.0.19: state change from Exchange to 2-Way
15:02:35 route,ospf,info OSPFv2 neighbor 172.31.0.14: state change from Init to Down
15:02:35 route,ospf,info OSPFv2 neighbor 172.31.0.14: state change from Init to Down
15:02:36 route,ospf,info Discarding Database Description packet: wrong neighbor state
15:02:36 route,ospf,info state=Down
15:02:36 route,bgp,info Failed to open TCP connection: Network is unreachable
15:02:36 route,bgp,info RemoteAddress=172.31.0.14
15:02:36 route,ospf,info Discarding packet: no neighbor with this source address
15:02:36 route,ospf,info RouterId=172.31.0.14
15:02:36 route,ospf,info source=172.17.0.190
15:02:48 route,bgp,info TCP connection established
15:02:48 route,bgp,info RemoteAddress=172.31.0.19
If this was the problem. why its not before link down? And why is everything Ok after reebooting R3?
this is a default config R2:
/routing ospf instance
set default disabled=no distribute-default=never in-filter=ospf-in metric-bgp=auto metric-connected=20 metric-default=1 metric-other-ospf=auto metric-rip=20 metric-static=20 name=\
default out-filter=ospf-out redistribute-bgp=no redistribute-connected=as-type-1 redistribute-other-ospf=no redistribute-rip=no redistribute-static=no router-id=172.31.0.11
/routing ospf area
set backbone area-id=0.0.0.0 disabled=no instance=default name=backbone type=default
/routing ospf interface
add authentication=md5 authentication-key=xxxxxx authentication-key-id=1 cost=10 dead-interval=20s disabled=no hello-interval=5s instance-id=0 interface=ether1 \
network-type=nbma passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=xxxxxx authentication-key-id=10 cost=10 dead-interval=40s disabled=no hello-interval=10s instance-id=0 interface=ether13 \
network-type=ptmp passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=xxxxxx authentication-key-id=10 cost=200 dead-interval=40s disabled=no hello-interval=10s instance-id=0 interface=ether6 \
network-type=ptmp passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=xxxxxx authentication-key-id=1 cost=10 dead-interval=40s disabled=no hello-interval=10s instance-id=0 interface=ether7 \
network-type=nbma passive=no priority=250 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=xxxxxx authentication-key-id=1 cost=10 dead-interval=40s disabled=no hello-interval=10s instance-id=0 interface=ether5 \
network-type=nbma passive=no priority=2 retransmit-interval=5s transmit-delay=1s use-bfd=no
/routing ospf nbma-neighbor
add address=10.1.0.14 disabled=no instance=default poll-interval=5s priority=1
add address=172.17.0.81 disabled=no instance=default poll-interval=5s priority=250
add address=172.17.11.12 disabled=no instance=default poll-interval=5s priority=1
add address=172.17.11.110 disabled=no instance=default poll-interval=10s priority=1
/routing ospf network
add area=backbone disabled=no network=172.17.0.80/29
add area=backbone disabled=no network=172.17.0.96/29
add area=backbone disabled=no network=172.17.0.184/29
add area=backbone disabled=no network=172.17.0.88/29
add area=backbone disabled=no network=172.17.11.8/29
add area=backbone disabled=no network=172.17.11.104/29
add area=backbone disabled=no network=172.31.0.11/32
Default config R3:
/routing ospf instance
set default disabled=no distribute-default=never in-filter=ospf-in metric-bgp=\
auto metric-connected=20 metric-default=1 metric-other-ospf=auto \
metric-rip=20 metric-static=20 name=default out-filter=ospf-out \
redistribute-bgp=no redistribute-connected=as-type-1 \
redistribute-other-ospf=no redistribute-rip=no redistribute-static=\
as-type-1 router-id=172.31.0.14
/routing ospf area
set backbone area-id=0.0.0.0 disabled=no instance=default name=backbone type=\
default
/routing ospf interface
add authentication=md5 authentication-key=yyyyyyyyyyyy \
authentication-key-id=10 cost=10 dead-interval=40s disabled=no \
hello-interval=10s instance-id=0 interface=ether13 network-type=\
point-to-point passive=no priority=1 retransmit-interval=5s transmit-delay=\
1s use-bfd=no
add authentication=md5 authentication-key=yyyyyyyyyyyyyy \
authentication-key-id=10 cost=20 dead-interval=40s disabled=no \
hello-interval=10s instance-id=0 interface=ether11 network-type=\
point-to-point passive=no priority=1 retransmit-interval=5s transmit-delay=\
1s use-bfd=no
add authentication=md5 authentication-key=yyyyyyyyyyyyyyy \
authentication-key-id=10 cost=10 dead-interval=40s disabled=no \
hello-interval=10s instance-id=0 interface=ether6 network-type=ptmp \
passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=yyyyyyyyyyyyyyyyyyy \
authentication-key-id=10 cost=20 dead-interval=40s disabled=no \
hello-interval=10s instance-id=0 interface=ether7 network-type=ptmp \
passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=yyyyyyyyyyyyyyyyyyyyyy \
authentication-key-id=10 cost=10 dead-interval=40s disabled=no \
hello-interval=10s instance-id=0 interface=ether8 network-type=ptmp \
passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
add authentication=md5 authentication-key=yyyyyyyyyyyyyyyyyyyy \
authentication-key-id=10 cost=20 dead-interval=40s disabled=no \
hello-interval=10s instance-id=0 interface=ether9 network-type=ptmp \
passive=no priority=1 retransmit-interval=5s transmit-delay=1s use-bfd=no
/routing ospf network
add area=backbone disabled=no network=172.17.0.96/29
add area=backbone disabled=no network=10.1.0.184/29
add area=backbone disabled=no network=172.17.0.184/29
add area=backbone disabled=no network=172.17.0.168/29
add area=backbone disabled=no network=172.17.0.176/29
add area=backbone disabled=no network=172.17.0.192/29
add area=backbone disabled=no network=172.17.0.200/29