Community discussions

MikroTik App
 
robertpenz
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Mon Oct 10, 2011 8:41 am

How to show OSPF route costs in RouterOS 7?

Mon May 02, 2022 10:05 pm

I've set up my first OSPF on a RouterOS 7 - done a few on previous versions. It works so far for me, but I'm missing a place to see the costs of the route candidates. In RouterOS 6 it was via /routing ospf route print - but that's gone in RouterOS 7 - what's the new way to check that? The new documentation on help.mikrotik.com talks about route selection and so, but not how to see the candidates with their costs.

thx for your help!
Robert
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to show OSPF route costs in RouterOS 7?

Mon May 02, 2022 11:30 pm

You can see all routes in /routing route menu with all the OSPF attributes.
 
robertpenz
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Mon Oct 10, 2011 8:41 am

Re: How to show OSPF route costs in RouterOS 7?

Tue May 03, 2022 8:33 am

Thx for the reply.

Where do I see the costs? The Cost should be 50 and 60. And where do I see the route candidates I get via OSPF? I should see 192.168.76.0/27 2 times.
[Mikrotik] > /routing/route/print 
Flags: A - ACTIVE; c, s, o, y - COPY; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, AFI, DISTANCE, SCOPE, TARGET-SCOPE, IMMEDIATE-GW
    DST-ADDRESS                          GATEWAY                                 AFI   DISTANCE  SCOPE  TARGET-SCOPE  IMMEDIATE-GW                           
 o  0.0.0.0/0                            192.168.76.227%vlanTransit*********     ip4        110     20            10  192.168.76.227%vlanTransit*********    
As  0.0.0.0/0                            10.10.188.200                           ip4          1     30            10  10.10.188.200%vlanTransit**************
Ac  **************/24                    vlanTransit**************               ip4          0     10                vlanTransit**************              
Ac  10.10.188.8/32                       vrrpTransit*************                ip4          0     10                vrrpTransit*************               
Ao  192.168.76.0/27                      192.168.76.234%wireTransitRz1*********  ip4        110     20            10  wireTransitRz1*********                
Ao  192.168.76.192/27                    192.168.76.234%wireTransitRz1*********  ip4        110     20            10  wireTransitRz1*********                
Ac  192.168.76.224/29                    vlanTransit*********                    ip4          0     10                vlanTransit*********                   
Ac  192.168.76.224/32                    vrrpTransit*********                    ip4          0     10                vrrpTransit*********                   
Ac  192.168.76.232/30                    wireTransitRz1*********                 ip4          0     10                wireTransitRz1*********                
Ao  192.168.76.236/30                    192.168.76.227%vlanTransit*********     ip4        110     20            10  192.168.76.227%vlanTransit*********    
Ac  fe80::%ether1rz1-wan-2_7/64          ether1rz1-wan-2_7                       ip6          0     10                ether1rz1-wan-2_7                      
Ac  fe80::%vrrpTransit*********/64       vrrpTransit*********                    ip6          0     10                vrrpTransit*********                   
Ac  fe80::%vrrpTransit*************/64   vrrpTransit*************                ip6          0     10                vrrpTransit*************               
Ac  fe80::%vlanTransit**************/64  vlanTransit**************               ip6          0     10                vlanTransit**************              
Ac  fe80::%vlanTransit*********/64       vlanTransit*********                    ip6          0     10                vlanTransit*********                   
Ac  fe80::%wireTransitRz1*********/64    wireTransitRz1*********                 ip6          0     10                wireTransitRz1*********                
A H ether1rz1-wan-2_7                                                            link         0                                                              
A H vrrpTransit*********                                                         link         0                                                              
A H vrrpTransit*************                                                     link         0                                                              
A H vlanTransit**************                                                    link         0                                                              
A H vlanTransit*********                                                         link         0                                                              
A H wireTransitRz1*********                                                      link         0     
Did try it on 7.2.1 and 7.2.2
 
User avatar
netzwerghh
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Aug 07, 2011 4:23 pm
Location: Hamburg, DE
Contact:

Re: How to show OSPF route costs in RouterOS 7?

Tue May 24, 2022 5:16 pm

You can see the cost with the following command. But at the moment you can not see the OSPF candidates. Hope this will come back soon. As this was possible to see under the OSPF menu in Router OS 6.
/rouing/route/print detail where ospf
 
jadawin
just joined
Posts: 2
Joined: Wed May 27, 2020 1:39 pm

Re: How to show OSPF route costs in RouterOS 7?

Fri Jul 08, 2022 9:22 pm

In RouterOS 7.3 you can use the column "OSPF Metric" in the route list (in RouterOS 7.1 the OSPF Metric was always shown as 0),
Last edited by jadawin on Fri Jul 08, 2022 9:23 pm, edited 2 times in total.
 
apleschu
just joined
Posts: 13
Joined: Fri Oct 22, 2021 2:46 pm

Re: How to show OSPF route costs in RouterOS 7?

Sun Nov 20, 2022 3:57 pm

Is it possible in the meantime to see accurate route costs for the whole path?

The "OSPF Metrics" only show the cost to the next hop and not the cost for the next router(s)

Who is online

Users browsing this forum: No registered users and 19 guests