Date: Thu, 1 Jan 2015 03:32:20 -0800 From: Freddie Cash <fjwcash@gmail.com> To: Aristedes Maniatis <ari@ish.com.au> Cc: freebsd-net <freebsd-net@freebsd.org> Subject: Re: CARP vhid: across interfaces? Message-ID: <CAOjFWZ67R5Uns_paZjz9Zd-xs=KWmV9unZsV-O4SjTn3Dh4mdQ@mail.gmail.com> In-Reply-To: <54A52F81.4080409@ish.com.au> References: <54A52966.9040407@ish.com.au> <CAOjFWZ7rWN1RA8zwOC60FUNbGmb3oaPto8ALbKXqPbNnuV_nuA@mail.gmail.com> <54A52F81.4080409@ish.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
That is the correct sysctl. If any CARP-controlled interface goes down, then all CARP-interfaces ate failed. That's the setup you want. It's the one we use on two pairs of CARP-using routers, and it works wonderfully. Cheers, Freddie On Jan 1, 2015 3:29 AM, "Aristedes Maniatis" <ari@ish.com.au> wrote: > On 1/01/2015 10:22pm, Freddie Cash wrote: > > There's a sysctl specifically for this. Not at my computer right now, > but the following should make it jump out at you: > > > > # sysctl -d | grep carp > > I'm guessing this one (from the openBSD docs)... > > net.inet.carp.preempt > Allow hosts within a redundancy group that have a better advbase and > advskew to preempt the master. In addition, this option also enables > failing over a group of interfaces together in the event that one interface > goes down. If one physical CARP-enabled interface goes down, CARP will > increase the demotion counter, carpdemote, by 1 on interface groups that > the carp(4) interface is a member of, in effect causing all group members > to fail-over together. net.inet.carp.preempt is 0 (disabled) by default. > > > But the FreeBSD man page doesn't talk about carpdemote > > net.inet.carp.preempt Allow virtual hosts to preempt each > other. When enabled, a vhid in > a > backup state would preempt a > master > that is announcing itself with a > lower advskew. Disabled by > default. > > > > At any rate what does "interface groups that the carp(4) interface is a > member of" mean? > > > > Freddie, thanks for pointing me to this setting. Maybe the answer is in > the somewhere. > > Ari > > > -- > --------------------------> > Aristedes Maniatis > ish > http://www.ish.com.au > Level 1, 30 Wilson Street Newtown 2042 Australia > phone +61 2 9550 5001 fax +61 2 9550 4001 > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ67R5Uns_paZjz9Zd-xs=KWmV9unZsV-O4SjTn3Dh4mdQ>