From owner-freebsd-net@FreeBSD.ORG Fri Oct 22 23:38:21 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A4AB106564A for ; Fri, 22 Oct 2010 23:38:21 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id E484B8FC0C for ; Fri, 22 Oct 2010 23:38:20 +0000 (UTC) Received: by gxk2 with SMTP id 2so1130530gxk.13 for ; Fri, 22 Oct 2010 16:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=vQOfy9niFIKORj+l07s3Kvz9fKgTIrQc3AxhaCTQktI=; b=dmYyk6V6ydMxLvB+YDYNkJ3mJrbrGQxDj47VqLUJsW5HDpaiNtwWQ94ESnTUmBLvdm Wgb1zHAwubSq3fYkeJQ2AiychoRq/SYtH59tSmv8atvXcJkkb9R594swXBUEom5XKo3G Dngppk39vp1sH7hH+FzwJMGRLmtu8ON+Dym/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=csY/5eGf3Qq/xmp7xsaMWawDHlpYWVqlxrHzWGtQ3ih1IHkdEHEjfU0JiqbZ3IURwW mk/AxOyEcmBgETrNPCdzsZGQQp81LJo90ZRdVadxLx7pFvQMesXhorPAbngU7I3HKbbo X3gbAttRnB5hS4arU2rPSsKae+M3olU4j95YI= Received: by 10.151.6.9 with SMTP id j9mr4438572ybi.372.1287789140105; Fri, 22 Oct 2010 16:12:20 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id v12sm3906579ybk.11.2010.10.22.16.12.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Oct 2010 16:12:18 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 22 Oct 2010 16:10:44 -0700 From: Pyun YongHyeon Date: Fri, 22 Oct 2010 16:10:44 -0700 To: "Mikhail T." Message-ID: <20101022231044.GC17093@michelle.cdnetworks.com> References: <4CC1FD8D.7000108@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CC1FD8D.7000108@aldan.algebra.com> User-Agent: Mutt/1.4.2.3i Cc: wpaul@ctr.columbia.edu, net@freebsd.org Subject: Re: Strange problem with sk0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2010 23:38:21 -0000 On Fri, Oct 22, 2010 at 05:09:33PM -0400, Mikhail T. wrote: > Hello! > > I have a rather bizarre problem with my on-board sk interface... It only > works, when tcpdump is running... > > Seriously. It negotiates with the switch (1000baseT/full-duplex) just > fine, but, unless tcpdump has it open (and in "promiscuous" mode), no > traffic seems to go through. It would not respond to pings -- not even > from the switch itself, nothing. > > But, as soon as I start tcpdump -- even if tcpdump never has anything to > output: > > tcpdump -i sk0 -n src host 10.non.existent.IP > > Traffic starts flowing just fine... Do I simply have flaky hardware? The > motherboard is old, and, for some reason, I need to "remind" sk0, what > its ethernet address upon reboote (it starts off with 00:00:00:00:00:00). > The all 0 station address is clear indication of source of problem. Normally ethernet controllers drop frames not destined for the station address unless promiscuous mode is activated. tcpdump is one of program that activates the promiscuous mode. To narrow down the issue, show me the output both dmesg and pciconf -lvcb. > Any other explanations for what is happening? There are plenty of other > systems (computers, VoIP phone, two TVs) on this switch and all are > fine... I did try different ports on it -- same results. I also tried > forcing things down to 100/half-duplex -- no change... > It seems sk(4) failed to extract station address from controller so I have to know why it happens on your box. > Thanks! Yours, > > -mi