Community discussions

MikroTik App
 
JParr
just joined
Topic Author
Posts: 15
Joined: Mon Jun 22, 2009 6:05 pm

OSPF flaps and logging

Sun Oct 25, 2009 2:59 pm

I have a few MT routers, a mix of 3.28 and 4.1 talking OSPF to each other, with a Cisco on the edge. The routes for some of the MTs are stable, while others seem to flap. It appears that the neighbor does not drop, but the routes are withdrawn from the routing table. Is there a way to turn on some logging on this? I'd use something like `debug ip ospf events` on the Cisco side, but I don't know what the equivalent is in the MT world.
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

Re: OSPF flaps and logging

Sun Oct 25, 2009 4:01 pm

You could try /system logging add topics=ospf,!raw
That should give you a pretty good overview on what's going on.
 
JParr
just joined
Topic Author
Posts: 15
Joined: Mon Jun 22, 2009 6:05 pm

Re: OSPF flaps and logging

Sun Oct 25, 2009 4:41 pm

You could try /system logging add topics=ospf,!raw
That should give you a pretty good overview on what's going on.
That is exactly what I needed, thanks. I had found topics=ospf, but the `,!raw` was needed to make it intelligible.
 
JParr
just joined
Topic Author
Posts: 15
Joined: Mon Jun 22, 2009 6:05 pm

Re: OSPF flaps and logging

Sun Oct 25, 2009 5:05 pm

You could try /system logging add topics=ospf,!raw
That should give you a pretty good overview on what's going on.
That is exactly what I needed, thanks. I had found topics=ospf, but the `,!raw` was needed to make it intelligible.
I have attached a log of the OSPF events, it seems that I get an error regarding "MinArrival test" then the LSA is deleted. Any thoughts?

Jan/02/1970 13:03:16 route,ospf,debug Retransmitted some LSA updates
Jan/02/1970 13:03:16 route,ospf,debug count=1
Jan/02/1970 13:03:16 route,ospf,debug to=10.253.0.17
Jan/02/1970 13:03:16 route,ospf,debug SEND: Link State Update 184352786 -> 10.253.0.17 on wlan1
Jan/02/1970 13:03:16 route,ospf,debug RECV: Link State Update <- 10.253.0.17 on wlan1 (10.253.0.18)
Jan/02/1970 13:03:16 route,ospf,debug LSA Update received: Installing and flooding it
Jan/02/1970 13:03:16 route,ospf,debug header=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug Installing an LSA
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug old=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b46
Jan/02/1970 13:03:16 route,ospf,debug Flooding an LSA
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug area=area1
Jan/02/1970 13:03:16 route,ospf,debug Adding to neighbor's retransmit list
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug neighbor=10.254.12.6
Jan/02/1970 13:03:16 route,ospf,debug number of retransmits=1
Jan/02/1970 13:03:16 route,ospf,debug SEND: Link State Update 184352789 -> 224.0.0.5 on ether1
Jan/02/1970 13:03:16 route,ospf,debug RECV: Link State Update <- 10.253.0.17 on wlan1 (10.253.0.18)
Jan/02/1970 13:03:16 route,ospf,debug RECV: Link State Update <- 10.253.0.22 on ether1 (10.253.0.21)
Jan/02/1970 13:03:16 route,ospf,debug Ignoring LSA Update: failed MinArrival test
Jan/02/1970 13:03:16 route,ospf,debug Deleting an LSA
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b46
You do not have the required permissions to view the files attached to this post.
 
JParr
just joined
Topic Author
Posts: 15
Joined: Mon Jun 22, 2009 6:05 pm

Re: OSPF flaps and logging

Mon Oct 26, 2009 12:18 am

You could try /system logging add topics=ospf,!raw
That should give you a pretty good overview on what's going on.
That is exactly what I needed, thanks. I had found topics=ospf, but the `,!raw` was needed to make it intelligible.
I have attached a log of the OSPF events, it seems that I get an error regarding "MinArrival test" then the LSA is deleted. Any thoughts?

Jan/02/1970 13:03:16 route,ospf,debug Retransmitted some LSA updates
Jan/02/1970 13:03:16 route,ospf,debug count=1
Jan/02/1970 13:03:16 route,ospf,debug to=10.253.0.17
Jan/02/1970 13:03:16 route,ospf,debug SEND: Link State Update 184352786 -> 10.253.0.17 on wlan1
Jan/02/1970 13:03:16 route,ospf,debug RECV: Link State Update <- 10.253.0.17 on wlan1 (10.253.0.18)
Jan/02/1970 13:03:16 route,ospf,debug LSA Update received: Installing and flooding it
Jan/02/1970 13:03:16 route,ospf,debug header=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug Installing an LSA
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug old=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b46
Jan/02/1970 13:03:16 route,ospf,debug Flooding an LSA
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug area=area1
Jan/02/1970 13:03:16 route,ospf,debug Adding to neighbor's retransmit list
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b47
Jan/02/1970 13:03:16 route,ospf,debug neighbor=10.254.12.6
Jan/02/1970 13:03:16 route,ospf,debug number of retransmits=1
Jan/02/1970 13:03:16 route,ospf,debug SEND: Link State Update 184352789 -> 224.0.0.5 on ether1
Jan/02/1970 13:03:16 route,ospf,debug RECV: Link State Update <- 10.253.0.17 on wlan1 (10.253.0.18)
Jan/02/1970 13:03:16 route,ospf,debug RECV: Link State Update <- 10.253.0.22 on ether1 (10.253.0.21)
Jan/02/1970 13:03:16 route,ospf,debug Ignoring LSA Update: failed MinArrival test
Jan/02/1970 13:03:16 route,ospf,debug Deleting an LSA
Jan/02/1970 13:03:16 route,ospf,debug lsa=Network LSA id=10.253.0.14 originator=10.254.12.9 seqnum=0x80000b46
Appears to be resolved. I had a default being injected from two directions. Disabled the interface in the direction of the offending route, and now things are stable. I'll need to filter or set costs to bring the link back up.
 
networkmonkey
just joined
Posts: 17
Joined: Fri Jul 19, 2019 12:53 pm

Re: OSPF flaps and logging

Fri Jul 19, 2019 12:58 pm

Hi guys,

How do I disable this logging?


Thanks
 
jar03j
just joined
Posts: 5
Joined: Sun Mar 24, 2019 10:17 pm

Re: OSPF flaps and logging

Fri Jul 26, 2019 9:23 pm

# Find ospf logging entry:
/system logging print
# Locate number entry from above command and remove
/system logging remove #

Example:
[user@ROUTER] > /system logging print
Flags: X - disabled, I - invalid, * - default
# TOPICS ACTION PREFIX
0 * info memory
1 * error memory
2 * warning memory
3 * critical echo
4 ospf memory
!raw
[user@ROUTER] > system logging remove 4