From owner-freebsd-net@FreeBSD.ORG Mon Dec 5 02:27:45 2011 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 3D619106566C for ; Mon, 5 Dec 2011 02:27:45 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 05ED98FC08 for ; Mon, 5 Dec 2011 02:27:44 +0000 (UTC) Received: by iafi7 with SMTP id i7so3246901iaf.13 for ; Sun, 04 Dec 2011 18:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=eVuEBgdnL+MpuSZNVVvIQeJVstpxiJH+mFakJvXHRDo=; b=bidnz9/Ptn6vIlTnO2X2QKQ14ZxLr5fFfw8st+5E5VnpQPo0HaDVsY4EAd7Q2mufQW ElF24ul7zh1YlXdPxtg0xbbHsDkN0+hxh2c6qmwHq90kH1A8fpU+EQLJYqaebQyVwC+L rgpsZdBFDEzTF/kHZqiRdJxdWqvMFRQK8Gjto= Received: by 10.42.159.195 with SMTP id m3mr236989icx.33.1323052064473; Sun, 04 Dec 2011 18:27:44 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id wo4sm39252495igc.5.2011.12.04.18.27.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Dec 2011 18:27:43 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sun, 04 Dec 2011 18:27:30 -0800 From: YongHyeon PYUN Date: Sun, 4 Dec 2011 18:27:30 -0800 To: Sami Halabi Message-ID: <20111205022730.GE1729@michelle.cdnetworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 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: Mon, 05 Dec 2011 02:27:45 -0000 On Sun, Dec 04, 2011 at 07:33:01PM +0200, Sami Halabi wrote: > Hi, > I have a desktop on which being used as a MPD server. > the server isn't that loaded, and the cpu is highly idel 90-92% of the time. > > My problem is in the network card connected to the cables provider. > in a random manner ot stops working whith no notice, and all l2tp/pptp > users disconnect, > also the provider side stops answering my pings until i ifconfig down the > card and ifconfig up it gain. > As a work around i wrote a script that does ping every 2 minutes and if the > ping timesout it do: > ifconfig re0 down > sleep 1 > ifconfig re0 up > mail me about it > > I had FBSD-8.1-R and upgraded yesterday to FBSD-8.2-p4, and did > freebsd-update fetch/install. > but the problem persists, i got already 4 emails since the upgrade (and > didn't pass yet the 24 hours). > > here is the plot of lspci: > 01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > Gigabit Ethernet (rev 10) > 01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > Gigabit Ethernet (rev 10) > (the 2nd driver isn't used, and no cable connected). > > # ifconfig -m re0 > re0: flags=8843 metric 0 mtu 1500 > > options=389b > > capabilities=439db > ether 00:a1:b0:69:15:5d > inet 1.2.3.5 netmask 0xfffffffc broadcast 1.2.3.7 > media: Ethernet autoselect (1000baseT ) > status: active > supported media: > media autoselect mediaopt flowcontrol > media autoselect > media 1000baseT mediaopt full-duplex,flowcontrol,master > media 1000baseT mediaopt full-duplex,flowcontrol > media 1000baseT mediaopt full-duplex,master > media 1000baseT mediaopt full-duplex > media 1000baseT mediaopt master > media 1000baseT > media 100baseTX mediaopt full-duplex,flowcontrol > media 100baseTX mediaopt full-duplex > media 100baseTX > media 10baseT/UTP mediaopt full-duplex,flowcontrol > media 10baseT/UTP mediaopt full-duplex > media 10baseT/UTP > media none > > # netstat -aib | grep -v ng|grep -v "all\-sys" > Name Mtu Network Address Ipkts Ierrs Idrop Ibytes > Opkts Oerrs Obytes Coll > re0 1500 00:a1:b0:69:15:5d 147089824 126 0 > 46718527073 206253261 0 154140535336 0 > 01:00:5e:00:00:01 139 > 0 > re0 1500 1.2.3.3/30 1.2.3.5 435 - - 35076 206240451 > - 151252235756 - > re1* 1500 00:a1:b0:69:76:28 0 0 0 0 > 0 0 0 0 > > > Please help me debug and fix this issue... > Show me dmesg output to know which controller you have(pciconf(8) output is not enough). When you notice the controller is in stuck condition, could you check which part(either TX or RX or both) of controller does not work? >From netstat(1) I can see you have 126 RX errors. Could you show me the output of "sysctl dev.re.0.stats=1"?