From owner-freebsd-net@FreeBSD.ORG  Fri Nov  9 01:05:59 2007
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
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 236F916A46C
	for <freebsd-net@freebsd.org>; Fri,  9 Nov 2007 01:05:59 +0000 (UTC)
	(envelope-from pyunyh@gmail.com)
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183])
	by mx1.freebsd.org (Postfix) with ESMTP id CD11013C494
	for <freebsd-net@freebsd.org>; Fri,  9 Nov 2007 01:05:58 +0000 (UTC)
	(envelope-from pyunyh@gmail.com)
Received: by py-out-1112.google.com with SMTP id u77so731778pyb
	for <freebsd-net@freebsd.org>; Thu, 08 Nov 2007 17:05:50 -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=zvFoGP0KT3ya1egQHhVGz3AauC7yq4wyi8gEZRKaFlY=;
	b=L+LohudT5Xkp9wMF+gBIeJc0tyGWDNHZU3FD1/lSRUCCCYg+0WlaYmUln02ASMLuN18NuY5GAvGinIKWujAm4mgm6vcQsBXDUP2i2dH5PvlnSLSXJyFeICWSpq6mFosqpc7hUkNxgMMXsri5qd/YnTC4szjPu/5jqaykEmb7+YI=
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=NWDSKGVXWfrq/beeh8AppAc8nJ2N24nzt9VOKtGWQsUIBFj2ATwlpQrdxC/fTp71PUFJBxidKOKCUC58ICETa40QLaUsLeEQeSFyxyc3DiAI1rzXM1gyfZT2h0gWTjxV96bvznj65StMjX6/yHqownB9U/F7ruidDiYQGNAbDuo=
Received: by 10.65.133.8 with SMTP id k8mr5815388qbn.1194570348637;
	Thu, 08 Nov 2007 17:05:48 -0800 (PST)
Received: from michelle.cdnetworks.co.kr ( [211.53.35.84])
	by mx.google.com with ESMTPS id 34sm2511718nza.2007.11.08.17.05.45
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 08 Nov 2007 17:05:47 -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
	lA915eQ6083128
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 9 Nov 2007 10:05:40 +0900 (KST) (envelope-from pyunyh@gmail.com)
Received: (from yongari@localhost)
	by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id lA915dls083127; 
	Fri, 9 Nov 2007 10:05:39 +0900 (KST) (envelope-from pyunyh@gmail.com)
Date: Fri, 9 Nov 2007 10:05:38 +0900
From: Pyun YongHyeon <pyunyh@gmail.com>
To: Alexander Shikoff <minotaur@crete.org.ua>
Message-ID: <20071109010538.GA82809@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>
	<20071107101407.GF70832@cdnetworks.co.kr>
	<20071107115239.GA1462@crete.org.ua>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20071107115239.GA1462@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 <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Nov 2007 01:05:59 -0000

On Wed, Nov 07, 2007 at 01:52:39PM +0200, Alexander Shikoff wrote:
 > On Wed, Nov 07, 2007 at 07:14:07PM +0900, Pyun YongHyeon wrote:
 > > 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?
 > 
 > Further investigation: auto-negotiation works only after 'iconfig re0 up'
 > command.
 > 
 > How to reproduce:
 > 1. Connect cross-over cable via re0 at 7.0-box and rl0 at 6.2-box.
 > 1. Do not place any configuration for re0 in rc.conf
 > 2. Boot a 7.0-BETA2 box. Just after reboot re0 does not get UP status. 
 > I see:
 > # ifconfig re0
 > re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
 >         options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
 >         ether 00:1a:4d:52:4e:b1
 >         media: Ethernet autoselect (10baseT/UTP <half-duplex>)
 >         status: no carrier
 > ... and in console:
 > re0: link state changed to DOWN
 > 

Because re(4) is not running yet it's normal to see 'no carrier' from
ifconfig(8) output.

 > 4. Force re0 UP with ifconfig re0 up. Then re0 starts and auto-negotiation
 > works:
 > # ifconfig re0 up
 > # ifconfig 
 > re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
 >         options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
 >         ether 00:1a:4d:52:4e:b1
 >         media: Ethernet autoselect (100baseTX <full-duplex>)
 >         status: active
 > 
 > So this problem turns into problem of automatic start of re0 interface.

Probably not. If you want to get established valid link with link
partner you should make re(4) up to start link negotiation with
link partner.

 > Sorry for this inconvenience with negotiation, but issue with automatic
 > start is actual. Thanks!
 > 
-- 
Regards,
Pyun YongHyeon