Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2008 05:19:05 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Oliver Fromme <olli@lurza.secnetix.de>
Cc:        freebsd-net@freebsd.org
Subject:   Re: CARP + multiple addresses
Message-ID:  <20080612191905.GK84454@server.vk2pj.dyndns.org>
In-Reply-To: <200806121526.m5CFQPAI021114@lurza.secnetix.de>
References:  <200806121526.m5CFQPAI021114@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--tEFtbjk+mNEviIIX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2008-Jun-12 17:26:25 +0200, Oliver Fromme <olli@lurza.secnetix.de> wrote:
>So far it seems to work fine with CARP, but now it turned
>out that I need another address from a different subnet
>which also needs to access the database.  What's the best
>way to do that?  Add a second IP address to the existing
>carp interface, or create a new carp interface?  Are there
>any pros and cons?

I'm currently working towards something like this and intending to
have one CARP interface for each VLAN.

>And now I need to add an IP address from vlan202 which
>also needs to access the same database.  I'm inclined to
>add 10.1.202.40/32 vhid 1 to the existing carp0 on both
>servers.  I assume that the CARP interface goes to BACKUP
>when *any* of its IP addresses fail, right?  Can anybody
>confirm this, please?

My reading of the various documentation says that you are on the right
track but, by default, each CARP interface will fail over
independently.  If you want them all to fail over together then you
should set net.inet.carp.preempt (see carp(4) and its first example)

--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

--tEFtbjk+mNEviIIX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkhRdqgACgkQ/opHv/APuIcscgCdGWkBfbAqY+Ch8wy8YMw8Arsn
zm4AoKUEPdIbKfRipIlYTI7S95r9Uykb
=62fj
-----END PGP SIGNATURE-----

--tEFtbjk+mNEviIIX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080612191905.GK84454>