[asterisk-users] Binding asterisk to two static IPs
Edwin Lam
edwin.lam at officegeneral.com
Fri Oct 14 19:35:24 CDT 2011
On 10/12/11 2:27 PM, georg at riseup.net wrote:
>
> "If you put 0.0.0.0, it will bind to all addresses. In a HA Cluster, on
> the active node, if you have a box address of 192.168.1.101 and a floating
> address of 192.168.1.102, then if you use
>
> bindaddr=0.0.0.0
>
> you will find that phones on the 192.168.1.x subnet will not register on
> the floating address, which of course defeats the point of HA clustering.
> What happens is that the registration packets go to the floating address
> 192.168.1.102 but the response packets appear to come from 192.168.1.101
> [same NIC but the packet contains the base address attached to the NIC],
> so the registration fails."
>
> Any idea how to solve this?
try use 2 different subnet addresses instead of both addresses
on the same subnet. e.g. 192.168.1.101/24 & 192.168.2.101/24
and also use "ip" command to add the address to the interface
instead of "ifconfig" and eth0:x notation. that way the OS will
pick the correct address when responding to in coming packets.
the problem is when you assign 2 addresses to the same interface
on the same subnet, one of them will be primary and the other
will becomes secondary on that subnet. the OS will always pick
the primary address when sending out packets on that subnet.
--
Edwin Lam <edwin.lam at officegeneral.com>
Systems Engineer, OfficeWyze, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20
More information about the asterisk-users
mailing list