CARP + multiple addresses
Peter Jeremy
peterjeremy at optushome.com.au
Thu Jun 12 19:19:09 UTC 2008
On 2008-Jun-12 17:26:25 +0200, Oliver Fromme <olli at 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)
--
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20080612/f8fd2b35/attachment.pgp
More information about the freebsd-net
mailing list