Score:0

How application choose which address will use for outcoming communication

fr flag

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.

setenforce 1 avatar
us flag
Is there a `src` option in the reply route, if you do `ip route`?
Jiří Juřica avatar
fr flag
No, I haven't set any source option. But thank you a lot, I had no clue about this and it is exactly the answer I needed. I would like to ask if you know how Linux systems behave when the source option is omitted. What is the exact way how they choose the default source in this case?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.