Subject: Re: CVS commit: src
To: dustin sallings <dustin@spy.net>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: current-users
Date: 03/16/1999 19:35:15
In message <Pine.NEB.4.10.9903161915050.364-100000@mobile>
dustin sallings writes:s

>	Just *please* don't make it work the same way FreeBSD did it.
>Network configuration in FreeBSD just absolutely pissed me off.  By
>default, the ``machine's IP address'' is in rc.conf (or something like
>that).  Not only was it hard to find, but it was hard to get it to work a
>different way (i.e. netstart.local whence I run dhclient).

If we're talking IPv4, machines dont have IP addresses, interfaces do:).

Seriously, to a first approximation, what I'd do is ename
/etc/netstart to /etc/rc.if, and /etc/netstart.local to
/etc/rc.if.local. Much as SunOS 4 used rc.ip, but that's
rather IP-centric.


That seems straightforward and (i hope) non-controversial: netstart
doesnt actually _start_ the network, in that it doens't start any
services, it just brings up interfaces, sets a default route, and
other goo. 




The `other goo' is the difficult stuff.


Just off the top of my head, I'd rename
/etc/{myname,mygate,defaultdomain} so that the names reflect any
IP-centricity.  defaultdomain is a YP-ism, and mygate is currently
IP  only. So maybe:
		/etc/ip.hostname		# same as /etc/myname
		/etc/ip.defaultroute		# 
		/etc/nis.mydomain		# replaces /etc/domainname

I'd be tempted to change ip.defaultroute to include the `default',
rather than wiring it into the script, to support other protocols, but
maybe separate files make more sense.