From owner-freebsd-net@freebsd.org Fri Sep 22 19:16:29 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7082EE09AA7 for ; Fri, 22 Sep 2017 19:16:29 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0859776CF for ; Fri, 22 Sep 2017 19:16:28 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wr0-x22f.google.com with SMTP id u96so1602402wrb.6 for ; Fri, 22 Sep 2017 12:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=UdBm/OFEP4sL4f4muZgSbWDb2BjiPE7ng2cNKF6U79Y=; b=JMs8NNt/XOE6KV7ykRBt2YN3JSUL/is9kou05swSV4XyuGv7xTXGArFRPYp8ijP0Cy 2eJB9GOzv153NdvqGWiJMKW/UWEmnAY2Lgu5vK9EP/Sga0LLhdhts+dA0bpoC98ItoTE 010HuDyYcv/tXs9whZXXpsy70pIsf5/P8gYg9kfjmQHvf21ONufcGFB5YBOfgiUF6of2 X9PeCxjANExkdlnOdj8zAZAQSH8D4OiBlW22i6FKDIVU/fJfeAAPa3JMGlXRLa3ARRUo tF9Ewy19FF70X0cfJWCQ3qFB1U9heVxwpb6JcOwihv6z4p8oB31iSufow1pqtRsaHMEL wzeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=UdBm/OFEP4sL4f4muZgSbWDb2BjiPE7ng2cNKF6U79Y=; b=V+3V4rCDGx/36BrnFt0+sjeDAVzvt4eOTvLdhVVsZkIe9e1jd++Ud6fK+GEaT+3UCa pgS0V30Q/cPRn8AbL9uimrq1Pt8UzSOcgMHslmh/zdbh5kwhtuf34fO7VJrVjVDBWDeU W698ylH8MVBOUMmJo8lDwT4VRbxPW4KfoLi15gSEkLWaKhlaS6EN5/hqJtOqykPSVR/o rtTq3fZ51R/LJzxi6MhhEAaVHRRgrzgkmER/qfDhHn1yDijWbTity1KIVRIBkgjoEhM+ FOEkO13NruNhn/Qua0cHYMt8b20jT2tw6c3DEdzuisVpNqUcGpvyhB40Fz4z1ecSZ3FL gIkQ== X-Gm-Message-State: AHPjjUgVySubMg3QGJOpWhdnnxkwrAU2MELHsJdotOTVUREmbooV8ntX /Qe3jlHSbQSo9JNx/sGQyU+wDiHQhiA= X-Google-Smtp-Source: AOwi7QCNBHdWRbehckEgJPL1jviVuZR8fyGJBH2xFavPX1CLg4MqHIpLwHAzg0Sank+wMrvmFa/lgg== X-Received: by 10.223.187.74 with SMTP id x10mr127971wrg.66.1506107786056; Fri, 22 Sep 2017 12:16:26 -0700 (PDT) Received: from [10.10.1.111] ([185.97.61.1]) by smtp.gmail.com with ESMTPSA id v2sm173842wmf.8.2017.09.22.12.16.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Sep 2017 12:16:24 -0700 (PDT) Subject: Re: CARP under 10.3 - can't "ifconfig down" one or more VHIDs? To: freebsd-net@freebsd.org References: <1183C95F3417890F2D0B1756@[10.12.30.106]> From: Steven Hartland Message-ID: <22f64f3e-5572-4324-5e4c-ab5680e8e612@multiplay.co.uk> Date: Fri, 22 Sep 2017 20:16:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1183C95F3417890F2D0B1756@[10.12.30.106]> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2017 19:16:29 -0000 CARP on 9 and 10 are very different its not a separate interface anymore, its a property on the parent interface, so the behavior your described is expected. If you want to disable carp just remove it, if however you want for fail to the other virtual host, just bump the advskew or force the state change.     Regards     Steve On 22/09/2017 14:21, Karl Pielorz wrote: > > Hi, > > We've been using CARP for a long time - initially under FreeBSD 9.x. > > We're just looking at setting it up on some 10.3 boxes, and have hit a > snag. Some of the syntax for setting it up has changed, but that's Ok, > we've read up and got it working. > > The issue we've got is if I want to "disable CARP" on one of the 9.x > boxes, temporarily I can do: > >  ifconfig carp0 down >  ifconfig carp1 down >  ifconfig carp2 down > > > The host's base NIC IP address (i.e. non-vhid) address is left usable, > and intact - but all the CARP interfaces get set as "INIT" - so > they're still there, but they're not going to participate in CARP, > until you do a "ifconfig carpX up" on them. > > > If I try this under 10.3 - e.g. with a NIC with 3 vhid's setup: > >  carp: BACKUP vhid 1 advbase 1 advskew 100 >  carp: BACKUP vhid 2 advbase 1 advskew 100 >  carp: BACKUP vhid 3 advbase 1 advskew 100 > > So, I do: > >  ifconfig em0 vhid 1 down > > And, they *all* go to INIT: > >  carp: INIT vhid 1 advbase 1 advskew 100 >  carp: INIT vhid 2 advbase 1 advskew 100 >  carp: INIT vhid 3 advbase 1 advskew 100 > > And, worse - em0 is now also down. > > Trying to set the 'state' to "INIT" on an individual vhid doesn't work > either (no error, but it does nothing). > > Is there a way under 10.3 to "disable" (i.e. set to INIT) the CARP > vhid's - without disabling the underlying NIC? > > We tend to do this for maintenance where we're taking services down, > and don't want the host to 'accidentally' pickup stray CARP vhid's > from other boxes (because there's no service running). > > Thanks, > > -Karl > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"