Hi all
This might be an odd question and I might just be too dense to see the solution. It is not excactly a Fortinet specific question (its about BGP, routing) - however, since it is realised with Fortigates, I thought I might ask here as well
The situation is as follows:
I have >20 locations in a country which has two "country" hubs.
Every location has an active ipsec tunnel to each of the hubs (meaning: two active vpn connections)
One tunnel will be considered "primary" handling all the traffic, the other will considered "seconday" and should only handle traffic when the primary is down.
The choice of primary and secondary tunnel or hub is made on location basis (meaning both hubs have primary and secondary connections)
With every ipsec tunnel they propagate their network to the hub(s).
So every hub has the information of each connected location
The hubs are also connected with each other
The hubs act as route reflector
The hubs also have connections to other countries and propagate the learned networks from the locations to those countries (and vice versa).
Now - how can I make sure that the traffic only goes via the primary ipsec tunnel (unless down and the secondary takes over) when everyone learns every route/network via both tunnels?
How can I avoide an asynchrounous routing? (I guess that will happen at some point if I do nothing).
Thanks a lot for your input
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi,
could this maybe be done by using administrative distance?
best
stephan
No. Admin distances are per protocol. like eBGP=20, iBGP=200, etc.
There are two directions you have to take care of. Most commonly used methods are below:
- For hub-advertised routes, you can set different local-preferences per neighbor (two hubs) so that the remote router(FGT) prefers the primary path.
- For remote-router-advertised routes, you need to set a metric that can be passed to neighbors per neighbor so that two hubs can negotiate/exchange info which route to take to get to the remote router. The most common metric for this purpose is community. So like community=1 for primary and community=2 for secondary when the remote advertises.
Then both hubs set local-preferences based on the community attached to each route to prefer community 1 routes.
This is not unique to FGTs. So you can find many materials on-line or books how to use community in BGP available.
Toshi
Thank you very much for your reply. I will look into communities and preferences for said communities. Much appreciated.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1721 | |
1098 | |
752 | |
447 | |
234 |
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 2024 Fortinet, Inc. All Rights Reserved.