From owner-freebsd-net@FreeBSD.ORG Mon Aug 25 10:10:04 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAF561065680 for ; Mon, 25 Aug 2008 10:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D63A38FC1E for ; Mon, 25 Aug 2008 10:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m7PAA4mH018659 for ; Mon, 25 Aug 2008 10:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m7PAA4Mk018658; Mon, 25 Aug 2008 10:10:04 GMT (envelope-from gnats) Date: Mon, 25 Aug 2008 10:10:04 GMT Message-Id: <200808251010.m7PAA4Mk018658@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: "Artis Caune" Cc: 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 Reply-To: Artis Caune List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2008 10:10:04 -0000 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