Skip to main content
thoufik786
Explorer
March 18, 2024
Question

BGP routes not working properly

  • March 18, 2024
  • 3 replies
  • 2245 views

Hi All,

We have FG FW 601E, and our FG FW is connected to two upstream routers, R1 & R2, and FG will get the same route from both routers, but R1 has some local preference value. When R1 is down, FW is considering the R2 route as primary, and when R1 is up, it should take R1 as primary, but it still considers the R2 route as primary. Our N/W team has done all the configuration on both routers.

 

Hence, kindly check and help us to resolve this issue.

 

Regards,

Thoubik Ahamed P.

FortiGate 

3 replies

knaveenkumar
Staff
Staff
March 18, 2024

# get router info bgp summary
# get router info bgp neighbors
# get router info bgp network x.x.x.x =========x.x.x.x destaintion network 
# get router info bgp all
# get router info routing-table database
# get router info routing-table details 0.0.0.0
# get router info bgp network
# get router info routing-table all 

# get router info routing-table deatils x.x.x.x =========x.x.x.x destaintion network 

 

can you please provide the above commands output to the ticket 

 

knaveenkumar
Staff
Staff
March 18, 2024

Also, please confirm if you are using HA setup and check override enabled or not, please run the below commands output to the ticket. 

config system ha

sh full 

AEK
SuperUser
SuperUser
March 18, 2024

Hi Thoufik

Please try review the route selection process below in case you missed something.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-BGP-route-selection-process/ta-p/195932

knaveenkumar
Staff
Staff
March 18, 2024

By default, the highest local preference value will be taken when the packet goes out and the default for LP 100.


As per your update, the upstream device you are router, and if it's in Cisco, please check if you are using a redundancy protocol like (HSRP or VRRP) and in the you can check whether you are enabling  the preempt or not.

 

For preempt we will use the when the primary goes down, then secondary will take over, later the primary comes up and needs to take the same primary position for that we enabled preempt.


-If you are using HSRP, please check whether preempt is enabled or not, by default it is enabled.
-in VRRP by default preempt is enabled

knaveenkumar
Staff
Staff
March 18, 2024

By default, the highest local preference value will be taken when the packet goes out and the default for LP 100.


As per your update, the upstream device the are routers, and if it's in Cisco, please check if you are using a redundancy protocol like (HSRP or VRRP) and in the you can check whether you are enabling  the preempt or not.

 

For preempt we will use the when the primary goes down, then secondary will take over, later the primary comes up and needs to take the same primary position for that we enabled preempt.


-If you are using HSRP, please check whether preempt is enabled or not, by default it is enabled.
-in VRRP by default preempt is enabled