OSPF stuck at Init State

Hi folks.

Could you please help me on this?

Issue: OSPF stucks at Init state when I reboot a router or at any moment.
Current solution: To disable and re-enable the OSPF Instance and it starts to work again.
Objective: To find a way not to manually restart an instance.

I made a lab setting like following:
R1 (ether3)—(ether5) R2 (Connected directly with Cat5)

For example, I took a screenshot when I rebooted R2.
Torch shows me that R1 is sending Hello packet to R2 but R2 might not be sending Hello packet to R1.
And as I have mentioned above, it would be fixed once I restart the OSPF instance of R2.
The reason intervals are so short is that I’d like to use MPLS and as I went through the forum, it might not a good idea to use BFD.
I also tried with default intervals but it ended up with the same result.
I’ll paste exp compact.

Any idea would be appreciated.


R1 Config:
/ip address
add address=10.10.23.81/30 interface=ether3 network=10.10.23.80
/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 redistribute-static=
as-type-1 router-id=0.0.0.1
/routing ospf interface
add dead-interval=4s hello-interval=1s interface=ether3 network-type=nbma
retransmit-interval=1s
/routing ospf nbma-neighbor
add address=10.10.23.82 poll-interval=1s
/routing ospf network
add area=backbone network=10.10.23.80/30
R1.png
R2 Config:

jun/29/2017 14:02:36 by RouterOS 6.38.7

software id =

/ip address
add address=10.10.23.82/30 interface=ether1 network=10.10.23.80
/routing ospf instance
set [ find default=yes ] redistribute-connected=a
0.0.0.2
/routing ospf interface
add dead-interval=4s hello-interval=1s interface=
nbma retransmit-interval=1s
/routing ospf nbma-neighbor
add address=10.10.23.81 poll-interval=1s
/routing ospf network
add area=backbone network=10.10.23.80/30
R2.png

Hi,

your OSPF config export seems incomplete.
Please post a complete OSPF config, so we can try to help you.
Use a code block to format it a little.

Thank you.

Regards,
ape

your OSPF config export seems incomplete.
Please post a complete OSPF config, so we can try to help you.
Use a code block to format it a little.

Thanks for your reply.
Following is the actual

/routing export

result.

R1

/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=0.0.0.1
/routing ospf interface
add dead-interval=4s hello-interval=1s interface=ether3 network-type=nbma retransmit-interval=1s
/routing ospf nbma-neighbor
add address=10.10.23.82 poll-interval=1s
/routing ospf network
add area=backbone network=10.10.23.80/30

R2

/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 router-id=0.0.0.2
/routing ospf interface
add dead-interval=4s hello-interval=1s interface=ether1 network-type=nbma retransmit-interval=1s
/routing ospf nbma-neighbor
add address=10.10.23.81 poll-interval=1s
/routing ospf network
add area=backbone network=10.10.23.80/30

As it is shown, I have no rule in /routing/filter.

And besides,

I made a lab setting like following:
R1 (ether3)—(ether5) R2 (Connected directly with Cat5)

I made a mistake on this.
Actual connection is this:
R1 (ether3)—(ether1) R2 (Connected directly with Cat5)

Regards,

if you leave them alone for up to 10 minutes do they finally figure things out or do you always have to “jiggle” it?

This is non strictly related to this post, but to the topic “OSPF stuck at Init State”.

It is worthy of note when OSPF is set in BROADCAST it uses MULTICAST 224.0.0.5 (and some other 224.0.0.X/24) to elect DR/BDR.

If for some reason you have a misconfigured masquerading rule that SRCNAT all non-local router traffic to global address router will not able to partecipate to the election: it is important to exclude 224.0.0.0/24 from natting.

Futhermore NAT translations are kept into router for 10 minutes, so it could be needed to manually delete translation.

Hope this save time to troubloeshooting.