Replies: 1 comment
-
You need to add another route with a lower metric, e.g. You should be able to get keepalived to add it by using a |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I set keepalived with two nodes.
NodeA: 192.168.2.33
NodeB: 192.168.2.34
Virtual IP: 198.168.2.35
When I reach o different subnet, with the directive:
virtual_routes {
default via 192.168.2.1 src 192.168.2.35
}
it works for different subnet/network, but, if I need to reach the same subnet, for example: 192.168.2.40
I obtain as source ip, the real ip 192.168.2.33 instead of 192.168.2.35
This is because:
192.168.2.0/24 dev ens192 proto kernel scope link src 192.168.2.33
How to override src ip when I need to reach the same subnet?
Thanks a lot
Mario
Beta Was this translation helpful? Give feedback.
All reactions