Skip to main content
Shaabash
Visitor III
May 13, 2022
Question

Fortigate OSPF Metric

  • May 13, 2022
  • 2 replies
  • 3209 views

Hi,

We're moving from Cisco ASA to Fortigate and I have a little bit problem with redistributed ospf networks.

So basically R4 redistrubute connected networks. When I enable interface with VLAN510 on R2 with metric 5000 those redistrubuted networks from R4 are available through R1, but when this interface is not up, those networks are available through R3 with metric 250.

I want to have access to those networks through R3, but It still prioritize route through R1 (with metric 5000)

 

Why is it happening? Is there anything that I'm missing?

 

I attached simple network diagram to visualize my problem.  2022-05-13_140446.png

2 replies

bpozdena_FTNT
Staff
Staff
May 13, 2022

Hi Shaabash,

 

Without seeing the route tables and OSPF database, I can only guess that this is due to type 2 external route being used by default. 

 

You can try to redistribute the connected routes as type 1, so that the internal metric is accumulated along the path.

 

On R4 it should look something like:

 

 

config redistribute connected     set status enable     set metric-type 1   end end

 

 

 

Note that E1 routes will always be preferred to E2. 

 

HTH,

Boris

Shaabash
ShaabashAuthor
Visitor III
May 13, 2022

Hi,

 

Thanks for the answer. All of those networks are redistributed as E2.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!