From owner-freebsd-questions@FreeBSD.ORG Wed Sep 4 10:33:38 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 839CE41F for ; Wed, 4 Sep 2013 10:33:38 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 122B82714 for ; Wed, 4 Sep 2013 10:33:37 +0000 (UTC) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 95B8C160B10 for ; Wed, 4 Sep 2013 17:33:25 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= selector1; t=1378290805; x=1380105206; bh=WTpmaDAeFQZa5Z1P4LMm4K gGTSSz4G2aq4esLhPCocA=; b=UsYBw8DCXUP87OBB2w+Jpqxj9SoQQtl20mN2Uc uxhZMU5K3Juers2lYlS16NAjWfwN8/ENrHRoqE/7JtKvjhl28vwL6oYH5UnfMB27 t0iaWjOU8ylVbdOHjRPqvrOzOizyOQzyhFV4J2K/Wm5vuWLxGjySq1swrjg6IyJX c/YHk= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tfbBsNnQJ78r for ; Wed, 4 Sep 2013 17:33:25 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 13E2B160B02 for ; Wed, 4 Sep 2013 17:33:25 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.5/8.14.5/Submit) id r84AXPDI006668; Wed, 4 Sep 2013 17:33:25 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier Nicole To: questions@freebsd.org Subject: Network startup with age Ethernet device Date: Wed, 04 Sep 2013 17:33:24 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2013 10:33:38 -0000 Hi, I want to set-up a small server from an Asus P5L-MX motherboard. It has an onboard gigabit Ethrnet that works with the driver age. Problem is that at boot, I experience the interface to go up and down a couple of times, and it is usually down when Apache try to start, so Apache would not start (nor ntpd). I resolved to add a 5 seconds sleep in /etc/rc.d/netif but there may be a more elegant way to solve that. Help is welcome. Thanks in advance, Olivier In the extract of /var/log/message below you can see 6 seconds delay between the ifconfig and the interface finally up and running. By that time ntpd and apache have failed starting. Sep 4 16:36:58 door kernel: Starting Network: lo0 age0 plip0. Sep 4 16:36:58 door kernel: lo0: flags=8049 met\ ric 0 mtu 16384 Sep 4 16:36:58 door kernel: options=600003 Sep 4 16:36:58 door kernel: inet6 ::1 prefixlen 128 Sep 4 16:36:58 door kernel: inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 Sep 4 16:36:58 door kernel: inet 127.0.0.1 netmask 0xff000000 Sep 4 16:36:58 door kernel: nd6 options=21 Sep 4 16:36:58 door kernel: age0: flags=8843 metric 0 mtu 1500 Sep 4 16:36:58 door kernel: options=c319b [...] Sep 4 16:37:00 door kernel: age0: link state changed to UP Sep 4 16:37:00 door kernel: age0: link state changed to UP Sep 4 16:37:01 door kernel: age0: link state changed to DOWN Sep 4 16:37:01 door kernel: age0: link state changed to DOWN [...] Sep 4 16:37:04 door kernel: age0: link state changed to UP Sep 4 16:37:04 door kernel: age0: link state changed to UP --