From owner-freebsd-hackers Tue May 16 21:03:23 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA13040 for hackers-outgoing; Tue, 16 May 1995 21:03:23 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA12952 ; Tue, 16 May 1995 21:03:07 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id VAA10243; Tue, 16 May 1995 21:02:53 -0700 From: "Rodney W. Grimes" Message-Id: <199505170402.VAA10243@gndrsh.aac.dev.com> Subject: Re: Final /etc/netstart and /etc/sysconfig for review To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Tue, 16 May 1995 21:02:53 -0700 (PDT) Cc: cvs-committers@FreeBSD.org, FreeBSD-hackers@FreeBSD.org (FreeBSD hackers) In-Reply-To: <199505141036.DAA03343@gndrsh.aac.dev.com> from "Rodney W. Grimes" at May 14, 95 03:36:40 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 6288 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > PLEASE REVIEW!!!! AND TEST ON AS MANY SYSTEMS AS YOU CAN! > What do I have to do to get this tested and feedback from a few of you??? It is *NOT* going to go into 2.0.5 unless I here from at least 2 people that are using this on real networks!!! So far the only person I have heard from is Bruce Evans, and he even said that his network is such a toy that he does not consider it any kind of sanity check. > I sent this out yesterday, but have gotten 0 responses on it, I need > this code reviewed by at least a few people as it is impossible for > me to test all possible combinations of things. > > One bug I did find a fix since the last posting was that it is best > to start the default router first if you have one, as then you stand > some for of chance to use DNS to resolve your $hostname value used > in the multicast and loopback routes that are done next. > > This will make it possible for most people to run without having to > put there hostname and ip address in /etc/hosts (something I always > hated to have to do anyway). Just need a /etc/resolv.conf and a > good default route. > > Any way.. here is the commit message: > > Add comment that you should not have to edit netstart, and if you > do we would like to know about it. > > The lo0 interface is now handled just like any other interface, > This makes it possible to do things to it from sysconfig. > > Redo the comments in sysconfig about network_interfaces and ifconfig_${X} > to reflect the moving of lo0 to this scheme. We now have an uncommented > variable for sysintall to find and play with. (Your welcome Jordan) > > Redo the way static routes are handled. Basically use the same > scheme for routes that I did for network interfaces. This allows > any number of static routes to be added from sysconfig. > > Make sure we do the default route first so we stand a chance of > getting to our DNS server (if we have one) to resolve our own > IP address from $hostname. > > > Index: netstart > =================================================================== > RCS file: /home/ncvs/src/etc/netstart,v > retrieving revision 1.31 > diff -c -r1.31 netstart > *** 1.31 1995/05/11 21:11:14 > --- netstart 1995/05/14 10:12:47 > *************** > *** 5,11 **** > > # Note that almost all the user-configurable behavior is no longer in > # this file, but rather in /etc/sysconfig. Please check this file > ! # first before contemplating any changes here. > > # If there is a global system configuration file, suck it in. > if [ -f /etc/sysconfig ]; then > --- 5,12 ---- > > # Note that almost all the user-configurable behavior is no longer in > # this file, but rather in /etc/sysconfig. Please check this file > ! # first before contemplating any changes here. If you do need to change > ! # this file for some reason, we would like to know about it. > > # If there is a global system configuration file, suck it in. > if [ -f /etc/sysconfig ]; then > *************** > *** 42,60 **** > ifconfig ${ifn} > done > > - # set the address for the loopback interface > - ifconfig lo0 inet localhost > - > - # set interface for multicasts to default interface > - # this needs to happen before router discovery > - route add 224.0.0.0 -netmask 0xf0000000 -interface $hostname > - > if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then > ! route add default $defaultrouter > fi > > ! # use loopback, not the wire > ! # route add $hostname localhost > > if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then > echo -n starting routing daemons: > --- 43,58 ---- > ifconfig ${ifn} > done > > if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then > ! static_routes="default ${static_routes}" > ! route_default="default ${defaultrouter}" > fi > > ! # Set up any static routes. This should be done before router discovery. > ! for i in ${static_routes}; do > ! eval route_args=\$route_${i} > ! route add ${route_args} > ! done > > if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then > echo -n starting routing daemons: > Index: sysconfig > =================================================================== > RCS file: /home/ncvs/src/etc/sysconfig,v > retrieving revision 1.13 > diff -c -r1.13 sysconfig > *** 1.13 1995/05/13 20:16:11 > --- sysconfig 1995/05/13 21:39:39 > *************** > *** 70,86 **** > # > tcp_extensions=YES > > # Set to the list of network devices on this host. You must have an > # ifconfig_${network_interface} line for each interface listed here. > # for example: > ! #network_interfaces="ed0 sl0" > > ! # Set one for each network device listed in network_interfaces above. > ! # for example: > ! #ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" > ! #ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" > > ! # Set to the host you'd like set as your default router, or NO of none. > defaultrouter=NO > > # These are the flags you'd like to start the routing daemon with > --- 70,96 ---- > # > tcp_extensions=YES > > + # > # Set to the list of network devices on this host. You must have an > # ifconfig_${network_interface} line for each interface listed here. > # for example: > ! # > ! # network_interfaces="ed0 sl0 lo0" > ! # ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" > ! # ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" > ! # > ! network_interfaces="lo0" > ! ifconfig_lo0="inet localhost" > > ! # > ! # Set to the list of route add lines for this host. You must have a > ! # route_${static_routes} line for each static route listed here. > ! # > ! static_routes="multicast loopback" > ! route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}" > ! route_loopback="${hostname} localhost" > > ! # Set to the host you'd like set as your default router, or NO for none. > defaultrouter=NO > > # These are the flags you'd like to start the routing daemon with > -- > Rod Grimes rgrimes@gndrsh.aac.dev.com > Accurate Automation Company Custom computers for FreeBSD > -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD