From owner-freebsd-current@FreeBSD.ORG Mon Dec 8 08:33:52 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8C2F16A4CE for ; Mon, 8 Dec 2003 08:33:52 -0800 (PST) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E6D443FFB for ; Mon, 8 Dec 2003 08:33:51 -0800 (PST) (envelope-from craig@xfoil.gank.org) Received: from localhost (ion.gank.org [69.55.238.164]) by ion.gank.org (mail) with ESMTP id 75BED2B1AC for ; Mon, 8 Dec 2003 10:33:50 -0600 (CST) Received: from ion.gank.org ([69.55.238.164]) by localhost (ion.gank.org [69.55.238.164]) (amavisd-new, port 10024) with LMTP id 95667-07 for ; Mon, 8 Dec 2003 10:33:49 -0600 (CST) Received: from owen1492.uf.corelab.com (pix.corelab.com [12.45.169.2]) by ion.gank.org (mail) with ESMTP id 28F742B1AB for ; Mon, 8 Dec 2003 10:33:49 -0600 (CST) From: Craig Boston To: Current Date: Mon, 8 Dec 2003 10:33:46 -0600 User-Agent: KMail/1.5.4 References: <7m8ylp6pn0.wl@black.imgsrc.co.jp> <20031207150250.L35454@sbk-gw.sibnet.ru> <7my8to5bqk.wl@black.imgsrc.co.jp> In-Reply-To: <7my8to5bqk.wl@black.imgsrc.co.jp> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200312081033.46104.craig@xfoil.gank.org> X-Virus-Scanned: by amavisd-new at gank.org Subject: Re: dev/em: Link is not up until 2 seconds after "ifconfig up" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2003 16:33:53 -0000 On Sunday 07 December 2003 07:39 pm, Jun Kuriyama wrote: > At Sun, 7 Dec 2003 15:04:51 +0600 (NOVT), > > Hmm, no luck. I've fixed the speed and mediaopt both of em(4) and > switch, but it shows autoselect state and no carrier... Hmm, just kind of a 'me too', but I've noticed some unusual behaviour with the link state of em as well. It seems that if the interface is in the "down" state, it always shows as "no carrier" even if something is plugged in. It isn't until something tries to configure it or I manually issue an ifconfig up that it actually autonegotiates the link speed, etc. Most (all that support link state?) other network drivers in FreeBSD seem to report the link state even if the interface is down. I know for sure that fxp and xl do. IMHO this is a useful feature because it allows sufficiently smart scripts to change their behavior -- i.e. only run dhclient on interfaces that actually have something plugged in. Craig