Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
simple networking/routing question

I need server A to be able to reach server C (a mail server). server B can already reach server C and server A can reach server B. Is there a few simple steps I can take to add a static route to server A to solve this?

share|improve this question

migrated from stackoverflow.com Aug 20 '09 at 0:30

This question came from our site for professional and enthusiast programmers.

marked as duplicate by mrdenny Aug 30 '09 at 1:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

What operating system(s) are A and B running? –  Chris J Aug 19 '09 at 18:23

1 Answer 1

If you have access to both servers A and B, you can do this on server A:

sudo route add server.C.ip.address server.B.ip.address

and on server B you need to turn on packet forwarding. If it's a unixy/BSD system you might do that via:

sudo sysctl -w net.inet.ip.forwarding=1

If you don't have root access to both servers, there's no way to do what you want.

share|improve this answer