Skip to main content
bcradick
New Member
February 12, 2019
Question

Mysterious OSPF Metric of 1

  • February 12, 2019
  • 1 reply
  • 3604 views

I've noticed that my OSPF metric value for a static route that is redistributed into OSPF has a value that is 1 more then the metrics I can account for. For example: I have a router 2 hops away. the metric for a static route that was redistributed in the Fortigate is 73. I can account for the first hop of 50. The second hop is 10 and the metric set for redistributing static routes into OSPF is 12. This added up is 72. But yet, the metric at the remote router is 73.

 

Where do I pick up the metric of 1?

 

Thanks Brian

    1 reply

    bcradick
    bcradickAuthor
    New Member
    February 25, 2019

    Update

    I've discovered that if I add an OSPF Network but do not add a OSPF Interface, the cost of 1 is added to the metric on inbound routes to through this interface. I programmed the interface and a cost of 10. Now the metric reflects the additional cost of 10 on outbound routes that pass through this interface and the additional cost of 1 is gone on the inbound routes from other routers. This is odd to me because this should have no affect on the cost for routes inbound to the Fortigate on that interface.

    emnoc
    New Member
    February 25, 2019

    You can look at the  OSPF database or pcap and validate but I think this is normal.

     

    Ken Felix