[asterisk-users] Binding asterisk to two static IPs

Eric Wieling EWieling at nyigc.com
Thu Oct 13 11:50:18 CDT 2011


When you set bindaddr=0.0.0.0 Asterisk will not bind to any specific IP and the OS will choose the source IP of the packet.    Let me repeat this: THE OS PICKS THE SOURCE IP.

If your OS routing tables are correct, then the packets will be sourced from the correct IP.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dale Noll
Sent: Thursday, October 13, 2011 12:47 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Binding asterisk to two static IPs

On 10/13/2011 10:53 AM, georg at riseup.net wrote:
>
> Just tested this, doesn't work. Asterisk ist still replying using the 
> main-address associated to the NIC.
>

In a previous posting, Jim Lucas proposed...

--- snip ---
I solved it by having two physical connections to my network.

PBX E0 IP 192.168.100.36
        NM 255.255.255.0
        GW 192.168.100.1
     E1 IP 192.168.101.254
        NM 255.255.255.0
        GW n/a

--- snip ---
This has two different subnets for eth0 and eth1.
Do you have different IP subnets for eth0 and eth0.42?
If you do, I do not know the reason for the problem.

Perhaps you could post the output of:
/sbin/ifconfig -a
/bin/netstat -rn


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list