You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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