Douglas Garstang
2007-May-25 09:45 UTC
[asterisk-users] Asterisk with Multiple Network Interfaces
I have a scenario here with IP phones, on a private 192.168 network connecting to an Asterisk box, also on the same 192.168 private network. We'd like to have the Asterisk box also be able to send traffic to the public IP space. For this, we would need to multi-home the box, and put two network cards in it, with two IP addresses, one on each network. I know from past experience that Asterisk only listens on the first interface, or a single one if specified. I imagine this will cause all sorts of problems with a multi homed approach. Has anyone gotten around this? Thanks, Doug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070525/2641d5d2/attachment-0001.htm
Jonathan Creasy
2007-May-25 10:04 UTC
[asterisk-users] Asterisk with Multiple Network Interfaces
I don't think that it is true that it will only listen on the first interface. I've built many boxes with the configuration you describe. In many networks the phones are on their own vlan with the PBX and the PBX is also connected to the gateway router acting as the gateway for the phone vlan. -Jonathan Douglas Garstang wrote:> > I have a scenario here with IP phones, on a private 192.168 network > connecting to an Asterisk box, also on the same 192.168 private > network. We?d like to have the Asterisk box also be able to send > traffic to the public IP space. For this, we would need to multi-home > the box, and put two network cards in it, with two IP addresses, one > on each network. > > I know from past experience that Asterisk only listens on the first > interface, or a single one if specified. I imagine this will cause all > sorts of problems with a multi homed approach. Has anyone gotten > around this? > > Thanks, > > Doug. > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
David Gomillion
2007-May-25 10:05 UTC
[asterisk-users] Asterisk with Multiple Network Interfaces
On 5/25/07, Douglas Garstang <DGarstang@interainc.com> wrote:> > I have a scenario here with IP phones, on a private 192.168 network > connecting to an Asterisk box, also on the same 192.168 private network. > We'd like to have the Asterisk box also be able to send traffic to the > public IP space. For this, we would need to multi-home the box, and put two > network cards in it, with two IP addresses, one on each network. >Or route the subnet and put it behind NAT. But yes, your solution is certainly viable. I know from past experience that Asterisk only listens on the first> interface, or a single one if specified. I imagine this will cause all sorts > of problems with a multi homed approach. Has anyone gotten around this? >I haven't had a problem. Each of our Asterisk servers are multi-homed, and each talks SIP and IAX on all of the various networks without problems. Make sure you set Canreinvite=no to people on the outside network or you'll have audio problems. Other than that, it should be really straightforward. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070525/f8fd5e0c/attachment.htm
Bruce Reeves
2007-May-25 10:41 UTC
[asterisk-users] Asterisk with Multiple Network Interfaces
I have a box doing this, Asterisk listens on either IP unless you bind to a specific interface. On 5/25/07, Douglas Garstang <DGarstang@interainc.com> wrote:> > I have a scenario here with IP phones, on a private 192.168 network > connecting to an Asterisk box, also on the same 192.168 private network. > We'd like to have the Asterisk box also be able to send traffic to the > public IP space. For this, we would need to multi-home the box, and put two > network cards in it, with two IP addresses, one on each network. > > > > I know from past experience that Asterisk only listens on the first > interface, or a single one if specified. I imagine this will cause all sorts > of problems with a multi homed approach. Has anyone gotten around this? > > > > Thanks, > > Doug. > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-- Bruce Reeves Nortex Networks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070525/e131e7c7/attachment.htm