From owner-freebsd-questions Wed Apr 11 8:42:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 0A80637B423 for ; Wed, 11 Apr 2001 08:42:53 -0700 (PDT) (envelope-from rasputin@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 14nMlg-000AQj-00 for questions@freebsd.org; Wed, 11 Apr 2001 16:42:52 +0100 Received: (from rasputin@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f3BFgpX70037 for questions@freebsd.org; Wed, 11 Apr 2001 16:42:51 +0100 (BST) (envelope-from rasputin) Date: Wed, 11 Apr 2001 16:42:51 +0100 From: Rasputin To: questions@freebsd.org Subject: Re: Naming ethernet NICs Message-ID: <20010411164251.A70001@dogma.freebsd-uk.eu.org> Reply-To: Rasputin References: <000e01c0c24a$9c9edfc0$1401a8c0@tedm.placo.com> <009701c0c288$cfc4dce0$0508a8c0@lofi.dyndns.org> <01041106563200.03731@pravda.tenzo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <01041106563200.03731@pravda.tenzo.net>; from michael@tenzo.com on Wed, Apr 11, 2001 at 06:56:32AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Michael O'Henly [010411 14:57]: > On Wednesday 11 April 2001 06:10, Michael Nottebrock wrote: > > [...] > > > One disadvantage of the BSD-type naming convention is that one does > > end up putting rl0's, ed0's and the like into config-files or batches, > > which have to be changed if the hardware changes, for example a > > '/usr/local/sbin/dhcpd dc0' in /etc/rc.local or a 'set device > > PPPoE:rl0' in /etc/ppp/ppp.conf, or (the most annoying) if you happen > > to have lots of 'via ' statements in your ipfw ruleset. > > Yes, this is what I meant. The reason I raised the questions is that I'm > configuring a simple firewall for my home network and so far I've "hardcoded" > NIC names in three or four different places. Presumably if I ever replaced a > NIC with a different type/driver, I'd have to rediscover all the places I'd > used the old name. Er, environment variables? Set NIC-DEVICE='ed0' in /etc/profile and use that in your scripts. -- Rasputin Jack of All Trades :: Master of Nuns To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message