I have the following question:
considering the attached image:
I have a server (RHEL 7) with 3 IP addresses (on the same physical interface):
- 192.168.10.1 (eth0, server address on network 192.168.10.0/24)
- 192.168.10.100 (eth0:1, a cluster resource's virtual IP on network 192.168.10.0/24)
- 192.168.20.100 (eth0:2, a cluster resource's virtual IP on network 192.168.20.0/24)
Since the two cluster resources are on two different networks, I must be sure that, for each client request to one of the resources, the path of the responses remains exactly the same. This means using the two different gateways on the basis on the resources' IP addresses.
Is source policy routing with iproute2 the right way to achieve this?
Thanks in advance,