Skip to main content
mahmoud93
New Member
October 17, 2019
Question

BGP routing in fortigate with two GW

  • October 17, 2019
  • 1 reply
  • 4251 views

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

    1 reply

    emnoc
    New Member
    October 17, 2019

    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

    mahmoud93
    mahmoud93Author
    New Member
    October 17, 2019

    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
    New Member
    October 17, 2019

     

    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