• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1031
  • Last Modified:

Asterisk: best method to config routing for asterisk VOIP network to main network

I'm currently deploying my asterisk server on my main network.  My concern is, I'm setting up the Asterisk server on a vlan.  However, i need the asterisk server to be able to connect to the main gateway to access the internet to send vmails to the configured addresses.  Or, is there's an alternate way to route directly from the asterisk server to network where the exchange server sits without needing access to the internet?

current config:

main network address:  10.0.0.x/255.255.255.0
Exchange Server: 10.0.0.5
DNS Server: 10.0.0.6  
pix 501 firewall: 10.0.0.1/255.255.255.0

VOIP VLAN Network:
Asterisk Server (CentOS 3.0): 10.0.10.10/255.255.255.0
Linksys SP941 Phones: 10.0.10.20-10.0.10.32/255.255.255.0

Main Switch:  DLink DES-3550 48 ports:  Ports 20-34 is setup for VLAN for VOIP, 10.0.10.x/255.255.255.0 and the rest of the ports are configured for 10.0.0.x/255.255.255.0

what's my best config to route?

on the top my head, i assume i need something like a cisco 2600 router with 2 ethernet ports, is that correct?

thanks in advance.





0
jetli87
Asked:
jetli87
  • 3
  • 2
1 Solution
 
jetli87Author Commented:
i forgot to mention i also have a cisco 1600 series router sitting around wit 1 ethernet port doing nothing.
0
 
grbladesCommented:
You have a few options :-

1) Install a 2nd network card in the Asterisk box on the 10.0.0.0 network.

2) Configure the port the Asterisk box connects to for 802.1q trunking and add the 10.0.0.x VLAN to the trunk. You can then add a subinterface on the asterisk box for this network. This is not the best approach and personally I would not recommend it.

3) Get a router with two ethernet ports and connect each interface to each network. Setup the route on the asterisk box.

4) Configure a port on the d-link port for 802.1q trunking. Then get a cisco router with a single 100Mbps port (the 1600 is 10mbps only so not suitable) and configure it to route between the two subinterfaces.

I dont think the 1600 router will be of use. It is not 100mbps so does not support trunking and you cannot add a second ethernet interface.
I think one of the 1800 series routers would be the best bet for you and specifically the 1841 which has two 100mbps ethernet ports (option 1 above).
0
 
jetli87Author Commented:
Hey grblades, as always, thanks for the response.

I actually already tried installing a 2nd network card on the asterisk box and got things to work, mainly allowing the second vlan connect to the main gate on the first vlan.

however, i too do like this approach.  I will go the router approach and get back to this posting in a few days...thanks again.
0
 
grbladesCommented:
If you can fit a second network card then there is nothing wrong with doing that. You can use iptables etc... to stop anyone from being able to connect to the machine from that interface so it will only be used for sending mail. It wont add any additional load on the machine which is the important thing. Its only really using option 2 that I would not recomend.
0
 
jetli87Author Commented:
I actually have another question that's posted regarding echo on my ip phone...hopefully you can help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now