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

Received routes over BGP with wrong interface

Hello everyone!

 

I'm having some problems to redistribute bgp routes learned from another part of the network. The routes learned Hub to hub works fine on the hubs, however in the spokes, the routes learned from the other part are pointing to WAN interfaces, not the overlays. 

 

I've created the topology inside GNS3 to test pre-production:

2023-06-11_17-02.png

I'm using the same AS with iBGP and next-hop-self-rr on the hub to hub overlay neighbor configuration. 

 

 

Hub routing table:

2023-06-11_17-07_1.png

 

Spoke routing table:

2023-06-11_17-07.png

 

Any ideas?

1 Solution
RaniGome

Hi

 

I checked some information on the lab and I figured out why it was not working. The advertisement of the routes were correct, I'm using "set next-hop-self-rr enable" on the hub x hub tunnels. However, the relationship of the BGP route and the interface that will be used to that route is done in FortiOS. After I created the static routes to the overlays networks, everything worked fine.

 

 

View solution in original post

4 REPLIES 4
knaveenkumar
Staff
Staff

Hi 

 

1. Please check the routes for the next -hop ip 10.200.1.254 , how it is learning.

2. Also, can you please run the below command in the spoke and provide the output.

get router info routing-table x.x.x.x

x.x.x.x destination network 

 

3. config router bgp

sh 

 

4. From which routing protocol to which protocol, you are doing redistribution.

 

 

RaniGome

Hi

 

I checked some information on the lab and I figured out why it was not working. The advertisement of the routes were correct, I'm using "set next-hop-self-rr enable" on the hub x hub tunnels. However, the relationship of the BGP route and the interface that will be used to that route is done in FortiOS. After I created the static routes to the overlays networks, everything worked fine.

 

 

Sowie
New Contributor III

Hi Rani 

 

I seem to be having the same issue that you were having but I don't fully understand your solution. Please have a look at my post if you have time.
https://community.fortinet.com/t5/Support-Forum/Redistribute-OSPF-over-BGP-Between-to-FotiGates-wron...

(っ˘ ‸˘ς)
(っ˘ ‸˘ς)
RaniGome
New Contributor II

Hi Sowie

 

In my case I redistribute BGP routes from another side of the network, I changed the AS of Hub2 and it spokes to a diferent number, using BGP neighbot groups to configure BGP inside hub and spokes from the same hub. the comunication from hub to the another hub I'm using another overlays and BGP neighbor configuration, to not mess up with internal hub routes. 

 

The configuration  "set next-hop-self-rr enable"(https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-modify-BGP-next-hop-for-route-refle...) is used to make the hub from it side of the network redistribute the routers with the address from itself as the source to the spokes of it side. 

 

I'll look for a kb and post to try to solve your problem with OSPF redistribuition. You have to consider the concept of BGP propagate prefixes and OSPF propagate networks and interfaces with LSA. I'm no BGP or OSPF specialist, Fortinet provides a very good documentation about them.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors