From owner-freebsd-questions@FreeBSD.ORG Sun Mar 28 10:33:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFCAA106566C for ; Sun, 28 Mar 2010 10:33:30 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 335438FC16 for ; Sun, 28 Mar 2010 10:33:30 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o2SAXPxY055064 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 28 Mar 2010 11:33:26 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BAF3075.4080209@infracaninophile.co.uk> Date: Sun, 28 Mar 2010 11:33:25 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Modulok References: <64c038661003280151q7b6063bu7f88cfbff3c495d@mail.gmail.com> In-Reply-To: <64c038661003280151q7b6063bu7f88cfbff3c495d@mail.gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Questions Subject: Re: How to mark an interace as 'down' at boot time? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2010 10:33:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/03/2010 09:51:50, Modulok wrote: > Trivial question, > > Is there an rc.conf way to mark a network interface as being 'down' at > boot time? I could do it with a cron job, or a kernel rebuild, but I > thought there'd be some nifty rc.conf syntax. I tried this: > > ifconfig_bge0="down" > > The interface is marked as down in the dmesg output, but it's still up > when the boot cycle completes. Hmmm... normally, you'ld just leave any extra NICs unconfigured. Not plugging a cable in generally makes the OS believe the NIC is down. You can tell the OS the i/f shouldn't be configured by: ifconfig_bge0="NOAUTO" but that will probably still leave the i/f up if a cable is attached. In this case, you could try using both of: ifconfig_bge0="down" ipv6_ifconfig_bge0="ifdisabled down" (rc.conf syntax for IPv6 is different in CURRENT, but I assume you're not using that.) Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuvMHUACgkQ8Mjk52CukIy8VQCfc3SscGvP7qiQX7bfcyzK2vGg /bAAni5N/FRil82YtLcLPcf6CDuXcqiz =vLKH -----END PGP SIGNATURE-----