Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2008 10:10:04 GMT
From:      "Artis Caune" <artis.caune@gmail.com>
To:        freebsd-net@FreeBSD.org
Subject:   Re: kern/126714: [carp] CARP interface renaming makes system no longer respond on the virtual IP address
Message-ID:  <200808251010.m7PAA4Mk018658@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/126714; it has been noted by GNATS.

From: "Artis Caune" <artis.caune@gmail.com>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808251010.m7PAA4Mk018658>