Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Shaabash
New Contributor

Fortigate OSPF Metric

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 2
bpozdena_FTNT

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

HTH,
Boris
Shaabash
New Contributor

Hi,

 

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

Labels
Top Kudoed Authors