From owner-freebsd-stable@FreeBSD.ORG Thu Oct 22 19:38:22 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D516106566B for ; Thu, 22 Oct 2009 19:38:22 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f186.google.com (mail-px0-f186.google.com [209.85.216.186]) by mx1.freebsd.org (Postfix) with ESMTP id CC87F8FC0A for ; Thu, 22 Oct 2009 19:38:21 +0000 (UTC) Received: by pxi16 with SMTP id 16so45409pxi.3 for ; Thu, 22 Oct 2009 12:38:21 -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=7Fc0A4Jxy5cyqYRNe9PGWW84KSTN0aAvW9ofYta/r9s=; b=JXiDjUwun0YNOCVKazZWpWU3wbjfd2i3OzekgpZkoxOeY346jYF+axLUbGzFNp6vUn 5e6KgfpXOrJmCa0kA7qVRf4P0KDkN1aKyeRo0Wrx5tmLu9Z2aScw3d4RXqIUOYAjliKX 8N34yR6HmC4xyfXZV42BSpCnuL3ETxkHqRrEs= 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=N161jZhoDZr7WENKcoJfC1s7w8oHo+odBRBE7nRl7BbArb0bYl/k7wDlFDoAOhyO2I vv3RellwHqh/aRpxF5iSPL+PPY6M0ZSIqnK35h+u+7WjqjmW+FJGW8LgeUiwM3O/vnpO hzoV+4ha7y0e4JHR/RQ7XrRRSs7iPahPpY/rc= Received: by 10.114.236.28 with SMTP id j28mr14818074wah.162.1256240301410; Thu, 22 Oct 2009 12:38:21 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 23sm1483682pxi.13.2009.10.22.12.38.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Oct 2009 12:38:20 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 22 Oct 2009 12:38:21 -0700 From: Pyun YongHyeon Date: Thu, 22 Oct 2009 12:38:21 -0700 To: Milan Obuch Message-ID: <20091022193821.GB1116@michelle.cdnetworks.com> References: <200910221905.n9MJ5dsO063534@lava.sentex.ca> <200910222118.16927.freebsd-stable@dino.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200910222118.16927.freebsd-stable@dino.sk> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: ale0 gets no carrier X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 19:38:22 -0000 On Thu, Oct 22, 2009 at 09:18:15PM +0200, Milan Obuch wrote: > On Thursday 22 October 2009 21:05:39 Mike Tancsa wrote: > > At 02:22 PM 10/22/2009, Marius N?nnerich wrote: > > >Hi Pyun, all, > > > > > >today I installed FreeBSD 8-STABLE r198366 on a new Box. It has a Atheros > > > nic: ale0@pci0:2:0:0: class=0x020000 card=0x831c1043 > > > chip=0x10261969 rev=0xb0 hdr=0x00 > > > vendor = 'Attansic (Now owned by Atheros)' > > > device = 'PCI-E ETHERNET CONTROLLER (AR8121/AR8113 )' > > > class = network > > > subclass = ethernet > > > > > >ale0: flags=8802 metric 0 mtu 1500 > > > > > >options=319a > >_MAGIC> ether 00:24:8c:a4:0a:b3 > > > media: Ethernet autoselect (none) > > > status: no carrier > > > > > >The nic gets no carrier at all. I tried against two known-working nics > > >with a cross-over cable and against a dsl-modem. > > >Any idea what to try? Will happily test patches. > > > > Did you try and give it an IP address so that its > > "UP" ? Some nics dont seem to have carrier until > > you put it in UP state with an IP. Try something simple like > > ifconfig ale0 192.168.255.254/30 > > > > In my case > > ale0@pci0:2:0:0: class=0x020000 card=0x831c1043 chip=0x10261969 > rev=0xb0 hdr=0x00 > vendor = 'Attansic (Now owned by Atheros)' > device = 'PCI-E ETHERNET CONTROLLER (AR8121/AR8113 )' > class = network > subclass = ethernet > > (exactly the same, as I can see) when configuring interface manually, I need > to do 'ifconfig ale0 up' before I can successfully acquire IP with 'dhclient > ale0'. Everything works normally with 'ifconfig_ale0="DHCP"' line > in /etc/rc.conf. > This is intended behavior as establishing a link requires negotiation with link-partner and the link state could be changed after the negotiation. So showing (fake/incorrect) link state before UPing the interface wouldn't be correct behavior.