Asterisk with 3 NIC cards

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Asterisk with 3 NIC cards

Postby a.hammad » Tue May 01, 2012 1:48 pm

I have installed new asterisk server with three internal cards and three external cards where the external cards have different IPs and i want to specify to every extension the route to use and to use the three external card in the same time. and I want to find out how to force extension to use specific external IP.
for example:
I give the three LAN cards the IPs (192.168.1.2 & 192.168.1.3 & 192.168.1.4)
and the external cards (xxx.xxx.xxx.122 & xxx.xxx.xxx.133 & xxx.xxx.xxx.144)
and I want to force the extension in the LAN with IP 192.168.1.2 to use the external card with IP xxx.xxx.xxx.122 and the same for the other cards.
a.hammad
Newsterisk
 
Posts: 4
Joined: Tue May 01, 2012 12:59 pm

Re: Asterisk with 3 NIC cards

Postby ianplain » Tue May 01, 2012 3:21 pm

Hi
what are the external cards for/connected to ?

I think you need to expand on what you are trying to achieve ? is it different routes or gateways?

basically you need to set routed but you need to know the final address the calls are going to to set the route
ianplain
Moves Like Spencer
 
Posts: 3039
Joined: Thu Dec 14, 2006 7:01 am
Location: Bath, UK

Re: Asterisk with 3 NIC cards

Postby david55 » Tue May 01, 2012 3:47 pm

Does Asterisk actually support such broken multi-homed configurations? You may need to run multiple instances and bind them separately to the three interfaces.
david55
Moves Like Spencer
 
Posts: 7719
Joined: Fri Sep 26, 2008 5:03 am

Re: Asterisk with 3 NIC cards

Postby a.hammad » Wed May 02, 2012 3:20 am

Hi all
The external cards are for external calls where I have three service provider and three leased lines and three campaigns and i need to assign to every service provider leased line to make calls throw it and i use elastix.
I now already use 2 NIC in my server one for LAN and the second for external calls connected to my leased line. and i need to use three cards for LAN and three cards for external calls as routes.
a.hammad
Newsterisk
 
Posts: 4
Joined: Tue May 01, 2012 12:59 pm

Re: Asterisk with 3 NIC cards

Postby a.hammad » Thu May 03, 2012 2:25 am

hi
i have a server with three different gate ways and i want to specify a VoIP trunk to every gate way
a.hammad
Newsterisk
 
Posts: 4
Joined: Tue May 01, 2012 12:59 pm

Re: Asterisk with 3 NIC cards

Postby ianplain » Thu May 03, 2012 2:48 am

Hi

As long as the service providers all have different ip addresses, just create a route to each provider using the relevant nic card
ianplain
Moves Like Spencer
 
Posts: 3039
Joined: Thu Dec 14, 2006 7:01 am
Location: Bath, UK

Re: Asterisk with 3 NIC cards

Postby a.hammad » Thu May 03, 2012 4:19 am

hi
thanks for your replay
but i have little problem that my service providers doesn't connect to me directly they give me an account with user name and password where it can be used by any IP
i need a way to told the VoIP trunk to use a Specific NIC card IP
a.hammad
Newsterisk
 
Posts: 4
Joined: Tue May 01, 2012 12:59 pm

Re: Asterisk with 3 NIC cards

Postby ianplain » Thu May 03, 2012 5:24 am

Yes but the will also have given you a server to connect to
ianplain
Moves Like Spencer
 
Posts: 3039
Joined: Thu Dec 14, 2006 7:01 am
Location: Bath, UK

Re: Asterisk with 3 NIC cards

Postby dejanst » Sat May 05, 2012 4:52 pm

a.hammad wrote:i need a way to told the VoIP trunk to use a Specific NIC card IP


You don't do this in Asterisk but in Linux routing table (route the traffic for the SIP server of individual SIP provider through the desired Ethernet interface).
dejanst
Astmaster
 
Posts: 592
Joined: Tue Apr 27, 2010 7:14 am
Location: Ljubljana, Slovenia


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 28 guests