From owner-cvs-all Wed Jul 7 9:34:51 1999 Delivered-To: cvs-all@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by hub.freebsd.org (Postfix) with ESMTP id AEC8114C2E; Wed, 7 Jul 1999 09:34:45 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 6A7F678; Thu, 8 Jul 1999 00:34:45 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.0.2 2/24/98 To: "Rodney W. Grimes" Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/etc rc.network src/etc/defaults rc.conf In-reply-to: Your message of "Wed, 07 Jul 1999 09:23:56 MST." <199907071623.JAA38429@gndrsh.aac.dev.com> Date: Thu, 08 Jul 1999 00:34:45 +0800 From: Peter Wemm Message-Id: <19990707163445.6A7F678@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk "Rodney W. Grimes" wrote: > > peter 1999/07/07 05:49:48 PDT > > > > Modified files: > > etc rc.network > > etc/defaults rc.conf > > Log: > > Do away with ${network_interfaces} in rc.conf. Just use `ifconfig -l` to > > get a list of interfaces, and then automatically configure them if > > ${ifconfig_${ifn}} or /etc/start_if.${ifn} exists. > > > > This makes it a lot easier to deal with machines that constantly change > > their network configuration as you can leave ifconfig settings for all > > the possible cards - just the ones that are present will be configured. > > > > Revision Changes Path > > 1.48 +12 -3 src/etc/rc.network > > 1.16 +1 -2 src/etc/defaults/rc.conf > > I strongly dislike this idea. If I list an interface in network_interfaces > during boot: > > a) I want to see an error if the physical device is missing > > b) It might not even exist in an ifconfig -l at this time, it > just might be getting created by /etc/start_if.X > > IMHO trying to make this smart is going to lead you down the road to > the problems that happen on Micro$oft systems. The original version I did merged ifconfig -l with ${network_interfaces) and suppressed duplicates. That would have generated diagnostics on a missing interface. I ended up leaving it out since all our existing interfaces appear at boot time, even if they have not been used. It seemed a bit of overkill, but if people want this, I'm happy to revive that... On that note, I think there are better ways to do dynamic interface configuration. On one box, I have a start_if.ppp0 script. The only problem is that there's no telling if it really is going to get assigned ppp0, especially if there is a second dialup done at boot. ie: keying this hook by interface name for dynamic interfaces doesn't work very well except in trivial cases. I would prefer to have /etc/netstart.d/* or something like that for dynamic interfaces that need to be started before the rest of the networking. This would be more important down the track with dynamic tun, ppp and sl interface creation. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message