Douglas Garstang
2006-Jul-10 23:13 UTC
[asterisk-users] 2 NICs; Asterisk receives on eth1 and replieson eth0
Yes, we tried to do the same thing. We wanted our Asterisk system to be multi-homed. Turned out to be a dissapointing limitation of Asterisk. It would have been nice to have, because then you could have multiple NIC's, have Asterisk listen on both, and if one failed, you had some degree of redundancy. But nope, no go. -----Original Message----- From: Daniel Lawson [mailto:daniel@meta.net.nz] Sent: Mon 7/10/2006 11:21 PM To: kjcsb; Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject: Re: [asterisk-users] 2 NICs; Asterisk receives on eth1 and replieson eth0 kjcsb wrote: > I have an Asterisk server with 2 network cards. One provides the LAN > connection and the other provides the Internet connection. Currently > this is set up in the following way: > > eth0 192.168.1.5. This provides LAN connectivity > > eth1 192.168.1.251, gw 192.168.1.252 (Note that other nodes on the > network use a different gateway, not 192.168.1.252). This provides the > internet connection. The router is set up with DMZ enabled and > pointing to 192.168.1.251. I am going to assume you are using a netmask of 255.255.255.0 above, as you haven't specified it. You can't have both interfaces being on the same network. This is why you are having this problem. I'd suggest making the Asterisk -> upstream link inside a different network, such as 192.168.2.xxx. EG: eth0 192.168.1.25 LAN eth1 192.168.2.1 gw 192.168.2.254 set the router up with DMZ enabled and pointing to 192.168.2.1 I'd also suggest you connect eth1 on the asterisk box directly to the gateway, and don't plug them into your LAN switch. You may need to use a crossover cable to do this. _______________________________________________ --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
Avi Miller
2006-Jul-10 23:23 UTC
[asterisk-users] 2 NICs; Asterisk receives on eth1 and replieson eth0
Douglas Garstang wrote:> Yes, we tried to do the same thing. We wanted our Asterisk system to be multi-homed.My head office Asterisk box is multi-homed: I have three networks across two NICs. One dedicated to hardphones, another to the local LAN (and PC-based softphones). The third network is bound to the same NIC as the LAN, but has different IP addressing. This links to our national VPN to connect to Asterisk boxes in other cities. All of the regional Asterisk boxes are also multi-homed. They have two IP addresses (sometimes on one NIC, sometimes on two). One connected to the local LAN, the other to the national VPN. cYa, Avi -- National Manager - Special Projects < Sydney / Melbourne / Canberra / Hobart / London /> 2/340 Gore Street T: 1 3000 SQUIZ (77849) Fitzroy, VIC T: +61 (0) 3 9235 5400 3065 F: +61 (0) 3 9235 5444 W: http://www.squiz.net/ .....>> Open Source - Own it - Squiz.net ...../>