| Description | This article describes a scenario where FortiGate fails to redistribute BGP routes into OSPF |
| Scope | FortiGate. |
| Solution |
config router ospf
set router-id 10.201.250.254
config area
edit 0.0.0.252
set authentication message-digest
next
..
..
config redistribute "bgp"
set status enable
end
end
config router bgp
set as 65000
set router-id 10.150.250.253
..
..
config redistribute "ospf"
set status enable
end
end
Hub1 # get router info routing-table details 10.15.17.0/24 Routing table for VRF=0
Hub1 # get router info bgp network 10.15.17.0/24 VRF 0 BGP routing table entry for 10.15.17.0/24 Paths: (2 available, best #2, table Default-IP-Routing-Table) Advertised to peer-groups: VPN1 VPN2 WAN Original VRF 0 Local 10.100.100.7 from 10.100.100.7 (10.150.250.2) <----- Via Spoke. Origin incomplete metric 0, localpref 100, valid, internal Last update: Tue Mar 4 04:51:56 2025
Original VRF 0 Local 10.20.25.2 from 0.0.0.0 (10.20.25.2) <----- Redistributed via OSPF. Origin incomplete metric 1, tag 2684420093, localpref 100, weight 32768, valid, sourced, best Last update: Tue Mar 4 04:51:55 2025
Once redistributed from OSPF to BGP, a route would have a weight added. Hence, it would be preferred over BGP routes with no weight.
Hub1 # get router info bgp neighbors 10.100.100.7 advertised-routes | grep 10.15.17
*>i10.150.170.0/24 10.100.100.253 1 100 32768 0 ? <-/->
config router route-map |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.