From owner-freebsd-stable@FreeBSD.ORG Fri Oct 23 10:06:11 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 02AF41065679 for ; Fri, 23 Oct 2009 10:06:11 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 959578FC12 for ; Fri, 23 Oct 2009 10:06:10 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so1944130eyd.9 for ; Fri, 23 Oct 2009 03:06:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.87.206 with SMTP id y56mr1428716wee.207.1256292369514; Fri, 23 Oct 2009 03:06:09 -0700 (PDT) In-Reply-To: <20091022193821.GB1116@michelle.cdnetworks.com> References: <200910221905.n9MJ5dsO063534@lava.sentex.ca> <200910222118.16927.freebsd-stable@dino.sk> <20091022193821.GB1116@michelle.cdnetworks.com> Date: Fri, 23 Oct 2009 12:06:09 +0200 Message-ID: From: =?ISO-8859-1?Q?Marius_N=FCnnerich?= To: pyunyh@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org, Milan Obuch Subject: Re: ale0 gets no carrier X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2009 10:06:11 -0000 On Thu, Oct 22, 2009 at 21:38, Pyun YongHyeon wrote: > 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 Ath= eros >> > > nic: ale0@pci0:2:0:0: =A0 =A0 =A0 =A0class=3D0x020000 card=3D0x831c1= 043 >> > > chip=3D0x10261969 rev=3D0xb0 hdr=3D0x00 >> > > =A0 =A0 vendor =A0 =A0 =3D 'Attansic (Now owned by Atheros)' >> > > =A0 =A0 device =A0 =A0 =3D 'PCI-E ETHERNET CONTROLLER =A0(AR8121/AR8= 113 )' >> > > =A0 =A0 class =A0 =A0 =A0=3D network >> > > =A0 =A0 subclass =A0 =3D ethernet >> > > >> > >ale0: flags=3D8802 metric 0 mtu 1500 >> > > >> > >options=3D319a> > >_MAGIC> ether 00:24:8c:a4:0a:b3 >> > > =A0 =A0 =A0 =A0 media: Ethernet autoselect (none) >> > > =A0 =A0 =A0 =A0 status: no carrier >> > > >> > >The nic gets no carrier at all. I tried against two known-working nic= s >> > >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: =A0 =A0 =A0 =A0class=3D0x020000 card=3D0x831c1043 chip= =3D0x10261969 >> rev=3D0xb0 hdr=3D0x00 >> =A0 =A0 vendor =A0 =A0 =3D 'Attansic (Now owned by Atheros)' >> =A0 =A0 device =A0 =A0 =3D 'PCI-E ETHERNET CONTROLLER =A0(AR8121/AR8113 = )' >> =A0 =A0 class =A0 =A0 =A0=3D network >> =A0 =A0 subclass =A0 =3D 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 'dhcl= ient >> ale0'. Everything works normally with 'ifconfig_ale0=3D"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. Ok, sounds plausible. It's just that every other nic I have had worked the other way.