From owner-freebsd-net@FreeBSD.ORG Thu Jan 1 11:32:21 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 50DF6331 for ; Thu, 1 Jan 2015 11:32:21 +0000 (UTC) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F0502F9C for ; Thu, 1 Jan 2015 11:32:21 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id nt9so56177711obb.5 for ; Thu, 01 Jan 2015 03:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OXpp/XCR85rEJrH57FPw9GmsIdO2XEoflYc1e2gXVJA=; b=Vkz+FNnZVv1+aJcq+vQjfGna04y/4IoBCGLCE/A9eLDVHUaLgNXa3vbFKPipOeyst0 P606/WJZQPPcLk+k3RdVxYax6tHCWw24l8/ERkrLHyVydNp9Sv3E2F9mnX5TGvL+xQHp bbbxP+1JujcIsXsg3hM/80ZspgX3sK2eI0Wg/K2BppDZ18jEPz2Afvwdt/w0hfOYYosJ rwAnqJv1IyqCJbpH0H14IfIqSyrHQILo4zTjGMIUYjXxrJ7xIeWYIAGrVWIbocZQE2v/ rFFLk9YQX/wqkfrDVdvCsfVYLqUFER5Bq8qEcoP3d9no5c8b/GmbJWDc1h8j0UoPluEJ phOg== MIME-Version: 1.0 X-Received: by 10.202.185.69 with SMTP id j66mr39782370oif.86.1420111940437; Thu, 01 Jan 2015 03:32:20 -0800 (PST) Received: by 10.202.76.208 with HTTP; Thu, 1 Jan 2015 03:32:20 -0800 (PST) Received: by 10.202.76.208 with HTTP; Thu, 1 Jan 2015 03:32:20 -0800 (PST) In-Reply-To: <54A52F81.4080409@ish.com.au> References: <54A52966.9040407@ish.com.au> <54A52F81.4080409@ish.com.au> Date: Thu, 1 Jan 2015 03:32:20 -0800 Message-ID: Subject: Re: CARP vhid: across interfaces? From: Freddie Cash To: Aristedes Maniatis Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2015 11:32:21 -0000 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" 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 >