Setup two network cards

Issues related to configuring your network
Post Reply
ddemetriou
Posts: 7
Joined: 2011/08/30 09:04:19

Setup two network cards

Post by ddemetriou » 2011/08/30 09:15:30

Hello,

i am using trixbox (asterisk + freepbx + centos) and i want to use two different network cards. The reason is because my provider (the same provider for both internet and voip) uses two different ports on his modem (one for internet and one for voip).

The internet port goes to a router and then to a switch. From the switch goes to eth0
The voip port goes straight to eht1.

What i want to do is to connect my server through eth0 to lan (PCs, SIP phones and internet) and through eth1 to voip provider.

Does anyone know how can i do that?

Thanks

ddemetriou
Posts: 7
Joined: 2011/08/30 09:04:19

Re: Setup two network cards

Post by ddemetriou » 2011/08/31 10:58:32

I managed to make this work from some asterisk configuration file however i can see LAN through eth1 but no internet. The truth is that my DNS and Gateway are set according to the needs of eth0.
What i am looking at the moment is how to set static route on my server in order to have internet connection through eth1.

Any ideas?

Thanks

Demetris

Post Reply