Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an interface eth1 on host A with two different IP addresses (let's say and The .1 is the standard IP of the host and .3 is the failover IP that can be switched over to another server (host B, for HA purposes. is set via /etc/network/interfaces, is managed via Pacemaker and added via ip addr add.

My problem is that when I try to connect to a (local) service provided on from host A, it also uses as the source address for the connection. This obviously wouldn't work if the failover IP was switched over to the secondary node (host B). The question is now if I can somehow specify as the source IP for connections to

ip route get shows as source address which is probably the reason for this behavior.

share|improve this question

1 Answer 1

If the IP gets switched to another machine, it should be removed from the first one, so the routing table will adjust. However if you do want to set source IP (or force routes), use following syntax: ip r a dev eth1 src

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.