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 need the information regarding multiple interface card.

My Scenario is:

Eth0: 172.X.X.X / X.X.X.252 GW 172.X.X.105
Eth1: 192.168.X.X / X.X.X.0 GW

My Requirement is that:

  1. Eth0 traffic out/in gateway 172.X.X.105
  2. Eth1 traffic in/out gateway

Mean that traffic generate from eth0 forward to its own gate way, same as eth1.

I am using the elastix server (centos) with two sip account, one on eth0 and other eth1. Port number 5060.

I am confused how to do this.

share|improve this question
you need to forward traffic from eth0 to eth1? – PersianGulf Feb 13 '13 at 14:43

You need to set up policy based routing, it is not super complicated, but it would be a good idea to read up a bit on iproute2 and how to make proper use of it.

Basically, you're going to want to add a specific routing table for each interface, then make sure that packets that arrive to the IP on that interface are then routed back out through that interface. I'm not going to retype out the lartc page because there is a lot of other information there which you should look through.

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.