From owner-freebsd-net@FreeBSD.ORG Fri May 9 18:18:53 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 69E991065671 for ; Fri, 9 May 2008 18:18:53 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: from hal.rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id 55C218FC0A for ; Fri, 9 May 2008 18:18:53 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: by hal.rescomp.berkeley.edu (Postfix, from userid 1225) id DDE9D3C04F9; Fri, 9 May 2008 11:01:52 -0700 (PDT) Date: Fri, 9 May 2008 11:01:52 -0700 From: Christopher Cowart To: freebsd-net@FreeBSD.org Message-ID: <20080509180152.GV89055@hal.rescomp.berkeley.edu> Mail-Followup-To: freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZSRqT0vnbHyWXlI9" Content-Disposition: inline Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: carp and vlan interfaces recovery issue 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: Fri, 09 May 2008 18:18:53 -0000 --ZSRqT0vnbHyWXlI9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I have the following configuration: box1:/etc/rc.conf: | ifconfig_bge1=3D"up" | ifconfig_vlan95=3D"inet 10.9.128.2/20 vlan 95 vlandev bge1" | ifconfig_carp15=3D"inet 10.9.128.1/32 vhid 15 pass secret advskew 100" | ifconfig_carp25=3D"inet 10.9.128.1/32 vhid 25 pass secret" box2:/etc/rc.conf: | ifconfig_fxp0=3D"up" | ifconfig_vlan95=3D"inet 10.9.128.3/20 vlan 95 vlandev fxp1" | ifconfig_carp15=3D"inet 10.9.128.1/32 vhid 15 pass secret" | ifconfig_carp25=3D"inet 10.9.128.1/32 vhid 25 pass secret advskew 100" /etc/sysct.conf: | net.inet.carp.arpbalance=3D1 Output from ifconfig: box1: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: BACKUP vhid 15 advbase 1 advskew 100 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 25 advbase 1 advskew 0 box2: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 15 advbase 1 advskew 0 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: BACKUP vhid 25 advbase 1 advskew 100 Then, on box 1, I `ifconfig vlan95 down'. Updated output from ifconfig: box1: | carp15: flags=3D8 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: INIT vhid 15 advbase 1 advskew 100 | carp25: flags=3D8 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: INIT vhid 25 advbase 1 advskew 0 box2: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 15 advbase 1 advskew 0 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 25 advbase 1 advskew 100 Then, on box 1, I `ifconfig vlan95 up'. Again: box1: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: BACKUP vhid 15 advbase 1 advskew 100 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: BACKUP vhid 25 advbase 1 advskew 0 box2: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff | carp: MASTER vhid 15 advbase 1 advskew 0 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff | carp: MASTER vhid 25 advbase 1 advskew 100 Notice that both carp interfaces are running in "BACKUP" mode on box1, even after some period of waiting. I would expect things to return to the initial state.=20 If I `tcpdump -i vlan95 vrrp' on both boxes at this point, I see: | 10:57:20.502188 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20 | vrid 15, prio 0, authtype none, intvl 1s, length 36 | 10:57:21.503211 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20 | vrid 15, prio 0, authtype none, intvl 1s, length 36 | 10:57:21.537201 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20 | vrid 25, prio 100, authtype none, intvl 1s, length 36 | 10:57:22.504234 IP 10.9.128.3 > VRRP.MCAST.NET: VRRPv2, Advertisement,=20 | vrid 15, prio 0, authtype none, intvl 1s, length 36 Note that box1 (10.9.128.2) isn't sending any advertisements.=20 If I use the physical interface, not the vlan interface `ifconfig bge1 down' on box1: box1: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 15 advbase 1 advskew 100 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 25 advbase 1 advskew 0 box2: | carp16: flags=3D49 metric 0 mtu 1500 | inet 10.9.144.1 netmask 0xffffffff=20 | carp: MASTER vhid 16 advbase 1 advskew 0 | carp26: flags=3D49 metric 0 mtu 1500 | inet 10.9.144.1 netmask 0xffffffff=20 | carp: MASTER vhid 26 advbase 1 advskew 100 And finally, `ifconfig bge1 up' on box1: | carp15: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: BACKUP vhid 15 advbase 1 advskew 100 | carp25: flags=3D49 metric 0 mtu 1500 | inet 10.9.128.1 netmask 0xffffffff=20 | carp: MASTER vhid 25 advbase 1 advskew 0 Things return to where they should be. Is this a bug? --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --ZSRqT0vnbHyWXlI9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iQIVAwUBSCSRkCPHEDszU3zYAQLIRw//QN5k5ul47h5Y84O1a1Zv17DLYiHjYbPg CEIBzI93Y4kFh+OoAwZxJ89rzzgqrcUy18ohXVdbr7WCm28eJHF5KvaX52jrfOSs AJGSCCgSUoi9hAoN4R/7G7ZqoqJhrvVSXzsTuLACEbZVbuor6iV1Ypk+EQNULfyQ p+VLB3cI5mPb/iKeWB/mXNRhgG9Jf6j7FrNrdzlGA3ldHRO4Oci6HP/EXUEDS7rT tXWFwXmMUhhjW5f2XQfyM/5D7ZfaNOmU8ccsRAZHnMcUWA36NyuG98lzUQkrVtJz 2bdM/6C4rF20rYocAbCkc/Xodfr/qAGhdvjv+EG3wwY+rTn+q8sEeBo+a5fNWwDL zKw9ipXaArOljybsLUTQj7dXrjBEPusOuMeYANBs3kp2GaOAHHgOOPT4L6gGNJ8w 62cqta0zw3E2wmR9F2foEVvqdoBAYbPFeaXvnVTMmeIpkCigofWeTCVJfgCZnS9O yjjz3sYQ1csY1oob46uph5s9Yh6yQkTA80YvczMd9MUPlPwF/MkTF+hxTKaMWhSm pGUs63VA6oKjStwR/zrJpcc5BPMTKm85joQpr4271J067eyFp+ycgPJJln07iWLc ZkkDTaWKuEM47fYpC0xhPzGJm0qnRNFFS0Rw+Dc9gH+BThNQMjNsgxseBX8FWpYg brjHp8bu2qw= =sBd8 -----END PGP SIGNATURE----- --ZSRqT0vnbHyWXlI9--