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

BGP routing in fortigate with two GW

guys i want to receive two default routes from two neighbors on my FG through bgp . and i need both of them to be on routing table ( necessary ) in order to crate and make policy based route working for some subset to use the 2nd default route.

 

i have activated ebgp multipath and when i run the

get router info routing-table bgp -- im able to see the both routing but i need the 1st one to stay as first because if i do clear for bgp routing the order could be replaced for between those two default . so is there anyway to keep first entry always first ( in static route we were able to do it through having same distance with different priority but what to do here )

 

 

 

Ex

FG 3000D # get router info routing-table bgp

Routing table for VRF=0

B* 0.0.0.0/0 [20/0] via 10.10.10.1, To_GW1, 18:05:16

[20/0] via 11.11.11.1 To GW2, 18:05:16

 

I Want the 1st entry( via 10.10.10.1 ) to become always 1st even if i did clear for bgp multi times or if the neighbor went down then returned up

3 REPLIES 3
emnoc
Esteemed Contributor III

Are the routes the same or different ? Can you do a "get router info bgp network 0.0.0.0/0" and check the BGP table and not the RIB ?

 

Ken Felix

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
mahmoud93

get router info bgp network 0.0.0.0/0

BGP routing table entry for 0.0.0.0/0 Paths: (2 available, best #1, table Default-IP-Routing-Table) Not advertised to any peer 65500 48832 59605 3356 10.10.10.1 from 10.10.10.1 (X.X.X.X) Origin IGP metric 0, localpref 100, weight 80, valid, external, best Community: 48832:102 Last update: Wed Oct 16 21:02:44 2019

65500 48832 59605 3356 11.11.11.1 from 11.11.11.1(X.X.X.X) Origin IGP metric 0, localpref 100, weight 80, valid, external Community: 48832:102 Last update: Wed Oct 16 21:02:43 2019

  

 

X.X.X.X is the same on two entry

emnoc
Esteemed Contributor III

 

Can you do the following

 

config sys setting

 

show full-configuration  | grep ecmp

    set ecmp-max-paths 10

 

config router bgp 

  

    show full-configuration  | grep path

 

/* and then ; 

 

    get router info routing all

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
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