kern/126714: [carp] CARP interface renaming makes system no longer respond on the virtual IP address

Slawek Zak slawek.zak at gmail.com
Thu Aug 28 11:00:16 UTC 2008


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 <artis.caune at gmail.com> wrote:
> The following reply was made to PR kern/126714; it has been noted by GNATS.
>
> From: "Artis Caune" <artis.caune at gmail.com>
> To: bug-followup at freebsd.org
> Cc: slawek.zak at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>


More information about the freebsd-net mailing list