[OpenSIPS-Users] OpenSIPS and Virtual IP implementation

rajib deka rajibdk at gmail.com
Wed Apr 28 21:52:30 CEST 2010


Thank you very much Max. Its working now.
Cheers
Rajib

On Wed, Apr 28, 2010 at 10:06 PM, Max Mühlbronner <mm at 42com.com> wrote:

> Hi,
>
> we are running a very similar setup, failover via virtual ips. There is
> an option which allows you to bind opensips to this ip.
>
> *|echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
>
> |*
>
> /proc/sys/net/ipv4/ip_nonlocal_bind
>
>    Set this if you want your applications to be able to bind to an
>    address which doesn't belong to a device on your system. This can be
>    useful when your machine is on a non-permanent (or even dynamic)
>    link, so your services are able to start up and bind to a specific
>    address when your link is down.
>
> *|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
> available on the system. Should be working great. Hope this helps.
>
>
> Max M.
> |*
>
>
> rajib deka schrieb:
> > Hi List,
> >
> > I have implemented Virtual IP based failover for our OpenSIPS linux
> > cluster. The logic is our two OpenSIPS server will share a same
> > Virtual IP, initially master server will be up with the virtual IP and
> > once the master is down the back up OpenSIPS will take over the
> > Virtual IP. The issue I am facing here is after uping and arping the
> > Virtul IP with eth0 interface (irrespective of master or backup), when
> > I restart OpenSIPS to bind the TCP/UDP ports to Virtual IP OpenSIPS
> > takes more than expected time to start again (restarting). What may be
> > the cause for this? Is there any solution for this? But once OpenSIPS
> > is up it works fine with Virtual IP, also if I restart OpenSIPS only
> > with the physical IP it restarts quickly.
> >
> > --
> > Rajib Deka
> > Software Engineer
> > Servion Global Solution
> > Chennai, India
> >
> > Mobile No: + 91 80157 09130
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Rajib Deka
Software Engineer
Servion Global Solution
Chennai, India

Mobile No: + 91 80157 09130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100429/d5a08cc9/attachment-0001.htm 


More information about the Users mailing list