From owner-freebsd-net@FreeBSD.ORG Wed Nov 7 10:14:26 2007 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 6C7D816A419 for ; Wed, 7 Nov 2007 10:14:26 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by mx1.freebsd.org (Postfix) with ESMTP id E01DB13C491 for ; Wed, 7 Nov 2007 10:14:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so1788222rvb for ; Wed, 07 Nov 2007 02:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=a3slybTMvngSl5fh8uGLHxwLQQs5E6SuGZwMyBR2/lM=; b=O9Q+cBr5uiII/n6nlqZZ8Oan+faDLn79ChV4XNKCEkFdBgmXgWh3JE/CW4EjNa4ubn60x7jmbHd6i8mS2E/j3+VJ8H/B3FecBryk4PTwR5WTH2FOjAlKgcJO2OfxeGmNn3Vyr34uPpG+soZZdk2IbsEj9jzafhbnMnEuaEEEbz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=nR82IahhLAOC604sMyQUBmmqLBvXFg5PrrSaWafq4p4yo+c6B49917sLlLcYp0CPeVynYXBkmcWRpvl+CtxFCJ2UFQ9DFdNmjqSs9na6oYmZC4xNLoBAiRY1VZGBuGszp2sFYmQm8p5Dc/APHk65mXmxjQp8hqU9mvulez616SE= Received: by 10.140.203.9 with SMTP id a9mr3416288rvg.1194430454026; Wed, 07 Nov 2007 02:14:14 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id c19sm18340041rvf.2007.11.07.02.14.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Nov 2007 02:14:13 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id lA7AE8Ql076027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Nov 2007 19:14:08 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id lA7AE800076026; Wed, 7 Nov 2007 19:14:08 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Wed, 7 Nov 2007 19:14:07 +0900 From: Pyun YongHyeon To: Alexander Shikoff Message-ID: <20071107101407.GF70832@cdnetworks.co.kr> References: <20071106141913.GA93023@crete.org.ua> <20071106143819.GA22249@crete.org.ua> <20071107002430.GA70832@cdnetworks.co.kr> <20071107073708.GA32211@crete.org.ua> <20071107075134.GD70832@cdnetworks.co.kr> <20071107083204.GA33900@crete.org.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071107083204.GA33900@crete.org.ua> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: re0: RealTek 8168/8111B: no carrier 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: Wed, 07 Nov 2007 10:14:26 -0000 On Wed, Nov 07, 2007 at 10:32:04AM +0200, Alexander Shikoff wrote: > On Wed, Nov 07, 2007 at 04:51:34PM +0900, Pyun YongHyeon wrote: > > On Wed, Nov 07, 2007 at 09:37:08AM +0200, Alexander Shikoff wrote: > > > On Wed, Nov 07, 2007 at 09:24:30AM +0900, Pyun YongHyeon wrote: > > > > > > # pciconf -lv > > > > > > [...] > > > > > > re0@pci0:3:0:0: class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x01 hdr=0x00 > > > > > > vendor = 'Realtek Semiconductor' > > > > > > device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' > > > > > > class = network > > > > > > subclass = ethernet > > > > > > [...] > > > > > > > > > > Further investigation... It seems that re(4) driver does not > > > > > support auto-negotiation correctly. If I manually set media to 100baseTX and > > > > > bring up interface with 'ifconfig re0 up' then it works. > > > > > > > > > > > > > Would you show me more information for link partner(i.e. FreeBSD 6.2 box)? > > > > > > Yes, of course: > > > > > > FreeBSD 6.2-STABLE 7.0-BETA2 > > > rl0 <===================> re0 > > > > > > rl0: port 0x9000-0x90ff mem 0xfa000000-0xfa0000ff irq 21 at device 1.0 on pci2 > > > miibus0: on rl0 > > > rl0: Ethernet address: 00:e0:7d:db:ca:98 > > > rl0: link state changed to UP > > > > > > # pciconf -lv > > > rl0@pci2:1:0: class=0x020000 card=0x813910ec chip=0x813910ec rev=0x10 hdr=0x00 > > > vendor = 'Realtek Semiconductor' > > > device = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter' > > > class = network > > > subclass = ethernet > > > > > > > Hmm, the link partner uses rl(4) so show me the PHY driver(rlphy(4)?) > > information. (You can extract it from dmesg(8) output.) > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > > Does the link partner has a forced speed/duplex option for rl(4)? > No. > # ifconfig rl0 > rl0: flags=8843 mtu 1500 > options=8 > inet 10.0.34.1 netmask 0xffffff00 broadcast 10.0.34.255 > ether 00:e0:7d:db:ca:98 > media: Ethernet autoselect (100baseTX ) > status: active > I couldn't see guilty code. In fact I couldn't reproduce it here. Since RTL8168/8111 has built-in crossover detection feature how about using straight cable? -- Regards, Pyun YongHyeon