From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 3 01:20:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CC9C16A4CF for ; Thu, 3 Feb 2005 01:20:47 +0000 (GMT) Received: from eagle.aitken.com (eagle.aitken.com [198.137.194.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4443C43D39 for ; Thu, 3 Feb 2005 01:20:47 +0000 (GMT) (envelope-from jaitken@aitken.com) Received: by eagle.aitken.com (Postfix, from userid 1000) id D0BAFB246B; Wed, 2 Feb 2005 20:20:46 -0500 (EST) Date: Wed, 2 Feb 2005 20:20:46 -0500 From: Jeff Aitken To: freebsd-hackers@freebsd.org Message-ID: <20050203012046.GB57845@eagle.aitken.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i Subject: duplicate packets on a vlan interface X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 01:20:47 -0000 I'm seeing a very strange problem involving a freshly-installed 5.3-RELEASE system using vlans. The machine has a single active ethernet interface (em0) with a pair of vlan pseudo-interfaces created on it: em0: flags=8843 mtu 1500 options=1b ether 00:09:6b:71:8c:38 media: Ethernet 100baseTX status: active vlan0: flags=8843 mtu 1500 inet A1.B1.C1.50 netmask 0xffffffc0 broadcast A1.B1.C1.63 ether 00:09:6b:71:8c:38 media: Ethernet 100baseTX status: active vlan: 20 parent interface: em0 vlan1: flags=8843 mtu 1500 inet A2.B2.C2.56 netmask 0xffffff00 broadcast A2.B2.C2.255 ether 00:09:6b:71:8c:38 media: Ethernet 100baseTX status: active vlan: 842 parent interface: em0 >From a remote machine, if I send a single packet to the IP address configured on vlan0 (A1.B1.C1.50), I get a single packet in response. However, if I send a single packet the address configured on vlan1 (A2.B2.C2.56), I get a total of 62 replies (the original plus 61 duplicates). Running a tcpdump on the machine sending the ICMP requests clearly shows that it's only sending a single request, yet running tcpdump (tcpdump -p -i vlan1) on the receiving host shows that it is receiving a total of 62 echo-requests. This does not appear to be unique to ICMP. Sending TCP packets seems to yield the same packet duplication on the destination box. Oddly, a traceroute does NOT generate the same result, so perhaps UDP packets do not trigger whatever is going on. A google search did not yield anything useful. Any ideas? --Jeff