From owner-freebsd-current@FreeBSD.ORG Mon Aug 17 00:32:27 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2634A106568C for ; Mon, 17 Aug 2009 00:32:27 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gx0-f227.google.com (mail-gx0-f227.google.com [209.85.217.227]) by mx1.freebsd.org (Postfix) with ESMTP id D468D8FC4B for ; Mon, 17 Aug 2009 00:32:26 +0000 (UTC) Received: by gxk27 with SMTP id 27so3407485gxk.12 for ; Sun, 16 Aug 2009 17:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=gIiZdqej+ZJA8QlrVnHPeZeo0whq9VwiZYu0XwMiwuw=; b=DdXfdYMP0GiJj0i8czxOR1SIIDv6iL5Q5n5HThThFSBlmry4u3Q+RaEG5g2r9gCMBB qZtv9agd8T2cWUrv+QFj6BNnY0UdqKBRe89nX0tgn1NloiEe1spnqjzYra42BEV8lOSp Br8H8EeCPM7cJ2sZhmQX1aCbomjfqCtVs/0rU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ffJiwTzM0IBKj+trRqL7Po0IQl97ixzfTyg40ZS+st0cQvo2AHr3T4NiXCCwyzrUFR 81TOH6TzBqJu8ZsL6QSJIoPyTk48HXDR2TRbAxB2G4JYZxev2kjQNTVqvym4sTNydogQ OCTXAucJWv4DnWonh4iKsMvHqXC7Smo/bKbAM= MIME-Version: 1.0 Received: by 10.150.150.4 with SMTP id x4mr4965842ybd.38.1250469146098; Sun, 16 Aug 2009 17:32:26 -0700 (PDT) In-Reply-To: <90E06EA7-4D27-411C-962F-BBCB6D6A13C6@mac.com> References: <90E06EA7-4D27-411C-962F-BBCB6D6A13C6@mac.com> Date: Sun, 16 Aug 2009 17:32:26 -0700 Message-ID: From: Freddie Cash To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: rc(8) regression. What's the story? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Aug 2009 00:32:27 -0000 On Sun, Aug 16, 2009 at 3:41 PM, Marcel Moolenaar wrote: > On Aug 16, 2009, at 3:29 PM, Stefan Bethke wrote: > >> At this point, /etc/rc.d/netif is finished. >> > > I presume dhclient has been started at this time. > >> bge1: link state changed to DOWN >>> Mounting NFS file systems:mount_nfs: nfs: hostname nor servname provided, >>> or not known >>> . >>> bge0: link state changed to UP >>> >> >> Only now is the interface capable of forwarding packets. >> > > Which means that dhclient is only now able to obtain a > network address. > I've seen this on FreeBSD 6.1-6.3, and 7.0-7.2. It depends on the NIC. fxp(4) and xl(4) appear to be ready as soon as the interface is brought up by /etc/rc.d/netif. em(4) seems to need 3-10 seconds to negotiate a link with the other end of the ethernet cable (regardless of whether it is another NIC or a switch port). For a 10/100 link, it only takes 2-3 seconds to get the link, so things continue as normal. For a 1000 link, it takes up to 10 seconds. I've worked around this on our firewalls by adding a 10-second sleep to /etc/rc.d/netif, to allow the physical link to come up. Haven't had any issues with bge(4) or bce(4) either, although are only used in testing, not in production. -- Freddie Cash fjwcash@gmail.com