How do I route to a second gateway device to send VoIP out of the second device?
Posted on 2012-04-13
I have a LAN with 2 VLANs running. Default is just regular data, VLAN2 is for a call center using softphones on their PCs, VLAN3 is for polycom SIP phones attached to a local Asterisk server (Switchvox). All this is behind a Sonicwall.
Problem: Sonicwall is not VoIP friendly and we are getting bad call quality, drops etc.
Proposed solution: Route VOIP traffic (VLANS 2 and 3) over a second gateway - Edgemark 4550 - so all voip bypasses the Sonicwall.
Details: Sonicwall is the network's default gateway with two WAN connections, a default pipe and a failover that also carries all the SIP trunks to the carrier. The Edgemark is currently on a WAN port on the Sonicwall. The Edgemark is a fail-over internet connection and is carrying the SIP trunking. Currently the Edgemark is not doing NAT, only passing through to the secondary WAN port on the Sonicwall which is performing all NAT and gateway functions. The Edgemark is not the primary route to the internet. I would like to keep it as a failover connection on the Sonicwall but it may not be possible in this architecture to do so and get routing as I want it. The Asterisk box is on the LAN. It can be moved outside the firewall if need be but I like it on the LAN if possible. Network switches are DLINK layer 2+ with static route capability.
Challenge: I attempted to use static routes in the switches to route VLANs 2 and 3 to use the Edgemark as the gateway instead of the Sonicwall. I keep getting error "router must be directly connected" when I try to make the route. I have the Sonicwall LAN port with VLAN subinterfaces connected directly to a trunk port on the switch so not sure why I am getting the error. The other challenge is that the Edgemark must have a connection to the LAN for data to travel out of it as a secondary gateway, bypassing the default Sonicwall gateway, but the Edgemark must also connect to the Sonicwall as a secondary WAN to allow the WAN failover function. I think it may be a problem to have the Edgewater connected to both inside and outside ports of the Sonicwall. Why the error when creating the route? Where is the best place to put the Asterisk server? How do I arrange the Edgemark and Sonicwall to get what we are looking to do?
My brain is toast on this one.