I've got two linux servers in question. When one server initiates a request for a specific IP address that the other server has, I would like the initiating server to route the request back to itself on one of its own IP addresses.
How might this be done? Iptables? Iproute2? I'm a newbie to both and am somewhat confused by all their options. If either one can do it, I'd love to see examples of each so I can learn a little extra!
Since you haven't described the usecase for that, and i don't know the limitations, i can only suggest adding the target IP to one of your interfaces on the initiating server. If supported in the kernel, you can use dummy interface (
dummy0
) for that.