Thank you very much Max. Its working now.<br>Cheers<br>Rajib<br><br><div class="gmail_quote">On Wed, Apr 28, 2010 at 10:06 PM, Max Mühlbronner <span dir="ltr"><<a href="mailto:mm@42com.com">mm@42com.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
we are running a very similar setup, failover via virtual ips. There is<br>
an option which allows you to bind opensips to this ip.<br>
<br>
*|echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind<br>
<br>
|*<br>
<br>
/proc/sys/net/ipv4/ip_nonlocal_bind<br>
<br>
Set this if you want your applications to be able to bind to an<br>
address which doesn't belong to a device on your system. This can be<br>
useful when your machine is on a non-permanent (or even dynamic)<br>
link, so your services are able to start up and bind to a specific<br>
address when your link is down.<br>
<br>
*|Next, you would just need to add the listen lines in Opensips to bind to this virtual ip, opensips will bind to this virtual ip even if it is not yet<br>
available on the system. Should be working great. Hope this helps.<br>
<br>
<br>
Max M.<br>
|*<br>
<br>
<br>
rajib deka schrieb:<br>
<div><div></div><div class="h5">> Hi List,<br>
><br>
> I have implemented Virtual IP based failover for our OpenSIPS linux<br>
> cluster. The logic is our two OpenSIPS server will share a same<br>
> Virtual IP, initially master server will be up with the virtual IP and<br>
> once the master is down the back up OpenSIPS will take over the<br>
> Virtual IP. The issue I am facing here is after uping and arping the<br>
> Virtul IP with eth0 interface (irrespective of master or backup), when<br>
> I restart OpenSIPS to bind the TCP/UDP ports to Virtual IP OpenSIPS<br>
> takes more than expected time to start again (restarting). What may be<br>
> the cause for this? Is there any solution for this? But once OpenSIPS<br>
> is up it works fine with Virtual IP, also if I restart OpenSIPS only<br>
> with the physical IP it restarts quickly.<br>
><br>
> --<br>
> Rajib Deka<br>
> Software Engineer<br>
> Servion Global Solution<br>
> Chennai, India<br>
><br>
> Mobile No: + 91 80157 09130<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Rajib Deka<br>Software Engineer<br>Servion Global Solution<br>Chennai, India<br><br>Mobile No: + 91 80157 09130<br>