Replies: 1 comment
-
Usually, people set weight or local-preference to prefer a specific peer for outgoing traffic. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a setup where I need to provide two linux servers as "internet NAT gateways" to a private network. I can't do any sort of load balancing or IP sharing between them, so have used BGP on all the clients to determine which gateway to use (FRR to the rescue!).
Both gateways are exactly identical, except that they have different Internet IP addresses. Thus, if a client starts talking through one but switches routes mid-conversation, then the communication will fail because of the IP address change. In practice this doesn't seem to happen very often, but it presumably will, and will be tricky to diagnose. As far as the routing table is concerned, it looks like this:
BGP sets both routes to be identical, and the OS picks one for the communications it provides. I'm not sure how/why, but presumably it's free to switch routes at any time.
What is my best strategy for avoiding this problem?
Things I've thought of:
I'm not sure how best to go about either of these strategies (if indeed the second is possible at all?). Any pointers would be much appreciated. It it helps at all, I've included the "client" BGP config below (which is pretty simple, it more or less just uses anything, except if it's about the network it's directly connected to):
Beta Was this translation helpful? Give feedback.
All reactions