I have a proprietary Linux distribution based on RHEL 7 and am trying to deal with the following issue. The machine has one primary network interface with two IP addresses assigned. The first one is present all the time and is static, the second one is configured by VRRP protocol. All server application listens on the static IP but I noticed that when they send replies, they use the VRRP IP when it is set.
How does the application or system choose an IP address to reply on interfaces with multiple IP addresses assigned? Can I somehow enforce the default address to send responses?
Thank you in advance.