Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a two systems on a private network

SysA has an IP of SysB has two subinterfaces in linux, ETH0:0 with IPs of and ETH0:1

If I'm on SysB how can I get it to access SysA through the IP instead of the IP?

share|improve this question
You probably mistyped the IP of SysA, it says 102.168 while it should probably say 192.168? – Mattias Ahnberg Jan 18 '12 at 19:28
Thanks, I didn't noticed that. Fixed now. – LF4 Jan 18 '12 at 20:57
up vote 2 down vote accepted

You'd have to look into Source Routing for Linux. An example can be found here in the Linux Advanced Routing & Traffic Control HOWTO:

Actually, even simpler you can do something like this:

ip route add to src dev eth0 via

Assuming that the gateway is, change it accordingly if needed!

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.