From owner-freebsd-questions@FreeBSD.ORG Thu Feb 16 03:19:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E243D16A420 for ; Thu, 16 Feb 2006 03:19:41 +0000 (GMT) (envelope-from awebster@connectalk.com) Received: from esafe.connectalk.com (esafe.connectalk.com [204.19.165.17]) by mx1.FreeBSD.org (Postfix) with SMTP id DEB5C43D70 for ; Thu, 16 Feb 2006 03:19:33 +0000 (GMT) (envelope-from awebster@connectalk.com) Received: from connectalk.com ([10.125.204.14]) by eSafe SMTP Relay 1139685285; Wed Feb 15 22:15:31 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 15 Feb 2006 22:19:31 -0500 Message-ID: <9D61D69E3C1F7F459C5513AD830EE2192BC2C2@mtlex01.connectalk.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CARP question (interpretation clarification) Thread-Index: AcYyp82fCLn0t9VES9eVzUeZDJkshA== From: "Webster, Andrew" To: X-ESAFE-STATUS: Mail clean X-ESAFE-DETAILS: Clean Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: CARP question (interpretation clarification) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 03:19:42 -0000 On FreeBSD 5.4-p8, the man page for CARP(4), has a paragraph about net.inet.carp.preempt which reads : =20 net.inet.carp.preempt Allow virtual hosts to preempt each other. It is also used to failover carp interfaces as a group. When the option is enabled and one of the carp enabled physical interfaces goes down, advskew is changed to 240 on all carp inter- faces. See also the first example. Disabled by default. =20 If I understand this correctly, a system having multiple carp interfaces would either see all carp interfaces as all MASTER or all BACKUP, but not a combination of both? On my system, I've got preempt turned on, but as shown below on my "backup" machine, two carp interfaces are in BACKUP config, and one is MASTER. On the "master" machine of this pair, I have the reverse, two MASTER, and one BACKUP corresponding to the appropriate subnets. =20 Am I misinterpreting the documentation, or does the preempt function not work the way I expected it to?=20 =20 r2# sysctl -a | grep preempt net.inet.carp.preempt: 1 r2# ifconfig -a =2E.. carp0: flags=3D41 mtu 1500 inet 172.16.0.230 netmask 0xfffffc00=20 carp: BACKUP vhid 1 advbase 1 advskew 100 carp1: flags=3D41 mtu 1500 inet 172.16.20.230 netmask 0xfffffc00=20 carp: BACKUP vhid 20 advbase 1 advskew 100 carp2: flags=3D41 mtu 1500 inet 10.10.88.1 netmask 0xffffffe0=20 carp: MASTER vhid 88 advbase 1 advskew 100 =20 =20 Thanks! =20 Andrew=20 =20