From owner-freebsd-net@FreeBSD.ORG Thu Aug 28 11:00:16 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58A2D1065697 for ; Thu, 28 Aug 2008 11:00:16 +0000 (UTC) (envelope-from slawek.zak@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id DED558FC16 for ; Thu, 28 Aug 2008 11:00:15 +0000 (UTC) (envelope-from slawek.zak@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so254834fgb.35 for ; Thu, 28 Aug 2008 04:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=/o4TF4UxUUYzBQT2iZ+yYVzGhL68c9wfCFCp0ioAK/Q=; b=LGWcS8w7zqkeqmC8rNDneVaa+RuDFbYtdN82BYqYnQNBtCiSly0OhyTjC8OyKAQzi1 UvyF29VLHuSHbx2tB1PObraskM9Nl3Qvz2dmT37rOu60vj4dqw250bi8TOIyIY3LTHCV uelBrqZDkTvQIJU7eevvKivdqPHqWsu1d5MDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VA9eFH/Ouxzqtol4CzMvM0IsANnkkdVetrY4w1J2UiYjMrnqwHlEdp0aiwH4nOO/jz MTCLz3lmMLFWCpUpqALUinJgRR+WKMu34LWECyiyBXOQ5zmJ7w5z4FcDze6Tj1/N9A+j rD+VbZ3zlSN0yV9+HSxqeaQoc4x3g1epX70E8= Received: by 10.180.234.2 with SMTP id g2mr1863047bkh.54.1219921214384; Thu, 28 Aug 2008 04:00:14 -0700 (PDT) Received: by 10.180.250.12 with HTTP; Thu, 28 Aug 2008 04:00:14 -0700 (PDT) Message-ID: <787bbe1c0808280400r7933f520t97f862eb8232ac49@mail.gmail.com> Date: Thu, 28 Aug 2008 13:00:14 +0200 From: "Slawek Zak" To: "Artis Caune" In-Reply-To: <200808251010.m7PAA4Mk018658@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200808251010.m7PAA4Mk018658@freefall.freebsd.org> Cc: freebsd-net@freebsd.org Subject: Re: kern/126714: [carp] CARP interface renaming makes system no longer respond on the virtual IP address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 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, 28 Aug 2008 11:00:16 -0000 Hey Artis, Thank you. It really works indeeed :) I haven't thought of such a workaround :) Regards, /S On Mon, Aug 25, 2008 at 12:10 PM, Artis Caune wrote: > The following reply was made to PR kern/126714; it has been noted by GNATS. > > From: "Artis Caune" > To: bug-followup@freebsd.org > Cc: slawek.zak@gmail.com > Subject: Re: kern/126714: [carp] CARP interface renaming makes system no longer respond on the virtual IP address > Date: Mon, 25 Aug 2008 13:05:55 +0300 > > Same for me, but when I rename carp interface to original name, > everything works. > > > > > When you change carp0 name to new_name, ifconfig will: > - announce that carp0 is gone (departure) > - copy new_name to if_xname > - announce that new_name has arrived > > carp check only departure events. > > When you change name of carp interface, mac address also change: > from 00:00:5e:00:01:08 to 70:31:00:00:5e:00 (for me) > > And because new mac address is no longer CARP mac address, > carp_forus() fail, M_PROMISC flag is not cleared and frame is > discarded. > > > > > If you need change names at run time and not in rc.conf, then you > should reinitialize carp interface: > # ifconfig new_name vhid 1 pass testpass 192.168.0.2/24 > or set promisc flag on em0/em1 :) > > btw, don't change name to "carp" or your box will panic. > > p.s. > if you change name to underlying em0/em1/lagg/vlan interface, you > should also reinitialize carp interface or you will see: > carp_input: packet received on non-carp interface: bce0 > > > > > -- > regards, > Artis Caune > > <----. CCNA > <----|==================== > <----' didii FreeBSD > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >