From owner-freebsd-current@FreeBSD.ORG Wed Mar 27 21:02:46 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2A7D9B4 for ; Wed, 27 Mar 2013 21:02:46 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qa0-f50.google.com (mail-qa0-f50.google.com [209.85.216.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7C1E167 for ; Wed, 27 Mar 2013 21:02:46 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id bv4so1167356qab.16 for ; Wed, 27 Mar 2013 14:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=PCGKOLUdJAU4bN6NYUEw/J9SZjHGQDt3+vZy9QH8WRc=; b=G6igMI+REvnvbtB+BAtwNpx4ZZQv/aeW1FG9ViJAnv3DvYlKQ3MkZIabz7UsM10dS/ p/v/xKIHaeVuynaM8FmIQNbOghq6YpQ2V3OYNSn+JV05DYuGXGZZ/WgGsGwQy4gKSrlc tfcMl/41wRu3vQZ+uRRQW/WPHkTkVd2pyt5lrC8IQeD5PFqj6h31YStOqCyw4d0jA33e W5K8cz8Bq0sm1FE5go9Qn99VyOfBoNegm6ol5HkkBsmFVSJYml5PboZbkO22wHbpQhN5 0YzNlfv45q9tey3ywaJLj2z33IR3I+6OIRjTeEalH0Khd+1VLtmbyoSJbQKxdO1c9vRZ 3m1w== MIME-Version: 1.0 X-Received: by 10.224.182.70 with SMTP id cb6mr14483098qab.80.1364418160270; Wed, 27 Mar 2013 14:02:40 -0700 (PDT) Received: by 10.49.50.67 with HTTP; Wed, 27 Mar 2013 14:02:40 -0700 (PDT) Date: Wed, 27 Mar 2013 14:02:40 -0700 Message-ID: Subject: CARP will not relinquish master state on one interface From: Freddie Cash To: FreeBSD-Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2013 21:02:46 -0000 Two systems running identical hardware and software (one system actually rsync'd from the other). Running 10-CURRENT just after the new CARP implementation went in: FreeBSD nexus2.sd73.bc.ca 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r245195: Thu Jan 10 10:29:16 PST 2013 root@nexus2.sd73.bc.ca:/usr/obj/usr/src/sys/NEXUS i386 Each box has 2 interfaces configured: em0 is part of an untagged vlan em1 is part of 8 tagged vlans The tagged vlan interfaces work correctly on both boxes, and CARP switches back and forth between MASTER and BACKUP correctly, whether it be via unplugging the network cable or via "ifconfig ... state" changes. The untagged vlan on both boxes will not relinquish MASTER status. If both boxes are up, both em0 interfaces are up, then both boxes configure the vhid as MASTER and nasty things happen to our traffic. The network configuration is: [remote site]------fibre link--------[fibre switch]----------[carp box1]--------[internet] [remote site]------fibre link----------/ \------------[carp box 2]-------/ [remote site]------fibre link---------/ The fibre links to the fibre switch are on untagged vlans; the link from the switch to each carp box is a tagged vlan trunk. And the link from each carp box to the Internet router is an untagged vlan. If only box1 is online, everything works correctly. If only box2 is online, everything works correctly. If both boxes are online, everything on em1 works correctly, and em0 shows MASTER on both boxes. If both boxes are online but em0 is down on 1 (either) box, everything works correctly. Running "tcpdump -n -i em0 -T carp | grep CARP" on both boxes shows the CARPv2 traffic from both boxes, with the correct vhid, advbase, advskew for each box. But the logs on box2 show "master down". I'm at a loss as to what to try next. Everything works for all the vlan interfaces on em1. But nothing I've tried works for em0. Within 2 seconds of the link showing UP, it becomes MASTER. On both boxes. -- Freddie Cash fjwcash@gmail.com