Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2011 12:44:29 +0200
From:      Patrick Lamaiziere <patfbsd@davenulle.org>
To:        "Brian Seklecki (Mobile)" <lavalamp@probikesllc.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: CARP interfaces and mastership issue
Message-ID:  <20110918124429.616282f5@davenulle.org>
In-Reply-To: <alpine.BSF.2.00.1109172331080.45497@vger.digitalfreaks.org>
References:  <4E71C059.5060404@hi-media.com> <4E7218A4.4000205@my.gd> <alpine.BSF.2.00.1109151208210.45497@vger.digitalfreaks.org> <CAE63ME4tLpSzfC1ENwaPs1iB-r1yHRs2Zj138iyM%2BW3s6vWyCA@mail.gmail.com> <60645CA5-D1E5-4AF9-9C56-66FA755B0280@digsys.bg> <alpine.BSF.2.00.1109172331080.45497@vger.digitalfreaks.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Sat, 17 Sep 2011 23:40:06 -0400 (EDT),
"Brian Seklecki (Mobile)" <lavalamp@probikesllc.com> a écrit :

> >
> >> What would help here, is for a carp interface to wait a given delay
> >> (tunable through a sysctl ?) after creation or after being brought
> >> up
> 
> I see now.
> 
> The tunable sounds like a good idea; we should check OpenBSD, they 
> probably already implemented something and we're behind.
> 
> If not, a "preempt dampener" feature would be an awesome return
> feature.
> 
> Might need to implment another state: MASTER-LISTENING (or LEARNING)
> ah a STP.

OpenBSD uses a "carp demote counter" that prevents to become master
(but it will become master anyway if there is not carp advertizement on
the interface). There is a sysctl in FreeBSD but it's readonly.

This is used to delay carp until pfsync synchronization is done and by
daemons like bgpd.
 
Anyway if carp becomes master when the interface is set up, it looks to
be a bug on FreeBSD (and if you are sure that the problem does not
come from the switch). That works fine on OpenBSD.

Regards.



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