From owner-freebsd-stable@FreeBSD.ORG Thu Sep 11 15:15:58 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 11967E33 for ; Thu, 11 Sep 2014 15:15:58 +0000 (UTC) Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (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 D07CFA95 for ; Thu, 11 Sep 2014 15:15:57 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id wn1so14592060obc.30 for ; Thu, 11 Sep 2014 08:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8PRwfc412ez9sGrWOe0f+60o3j/oMwKtBs1coLTkT3Q=; b=tUmEroXAVaLAZbcYpYfr18xxAyPm0gCZv9PAPXcTtK2bnNe+NeOsaefBjRPIDcwan8 GXn4vFWtKiEKhuOacOdFqEgGxgaNV7jvMrsPGIT7YXtPDh9kcUqfk1G8LF199OiKWvcV 3m3hF1rZiwlOe6SjKd4KY35ZWZr2HHfiTDTSl1X5Rb4K5zxbEa7clCdNrJGu604Ykf37 iBDzhtFk0pzxxryO+/1lNGV4Ymxq9+Ybjwqt3peNXHc4+cQl2iw1TmgFFfla15W9OdMH mbrnP6ks6rA3QWmefZD91ozFQ7OSflU10tkYnJXFZdAAsCU0x3Q5rGsxpQWQd3mitIly 7nqA== MIME-Version: 1.0 X-Received: by 10.60.130.170 with SMTP id of10mr2061177oeb.10.1410448557024; Thu, 11 Sep 2014 08:15:57 -0700 (PDT) Received: by 10.202.199.11 with HTTP; Thu, 11 Sep 2014 08:15:56 -0700 (PDT) Date: Thu, 11 Sep 2014 08:15:56 -0700 Message-ID: Subject: Using CARP with multiple IP aliases (FBSD 10.0) From: Freddie Cash To: FreeBSD Stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2014 15:15:58 -0000 Good morning, Just looking for some clarification around the proper use of CARP on interfaces with multiple IPs. I've been using the new CARP on FreeBSD 10.0 with great success on a pair of systems with lots of vlans across 3 physical NIC ports. However, those systems only have a single IP per vlan. The ifconfig lines are very simple, and everything just works the way I expect it to, failing back and forth between the two systems as needed. I'm now trying to get CARP working on a second pair of systems, and running into issues with one of the physical interfaces. I think I might be doing the ifconfig commands wrong, but the ifconfig(8) and carp(4) man pages aren't very clear on this usage. Are all of the carp-related parameters required for every IP alias added to an interface? Or are the pass/advbase/advskew only needed once per interface, and you just pass the vhid to each IP alias? Currently, I'm doing the former and having issues with both boxes claiming to be master for that one interface. Which is correct: ifconfig igb0 inet 1.2.3.4/24 vhid 30 pass mypass ifconfig igb0 inet 1.2.3.5/32 vhid 30 pass mypass alias ifconfig igb0 inet 1.2.3.6/32 vhid 30 pass mypass alias ifconfig igb0 inet 1.2.3.7/32 vhid 30 pass mypass alias ifconfig igb0 inet 1.2.3.8/32 vhid 30 pass mypass alias OR ifconfig igb0 inet 1.2.3.4/24 vhid 30 pass mypass ifconfig igb0 inet 1.2.3.5/32 vhid 30 alias ifconfig igb0 inet 1.2.3.6/32 vhid 30 alias ifconfig igb0 inet 1.2.3.7/32 vhid 30 alias ifconfig igb0 inet 1.2.3.8/32 vhid 30 alias Neither the ifconfig nor the carp man pages show examples with multiple IPs configured within the same vhid. -- Freddie Cash fjwcash@gmail.com