diff --git a/etc/netstart b/etc/netstart index dfdccaf21263..54795275a2fa 100755 --- a/etc/netstart +++ b/etc/netstart @@ -1,11 +1,12 @@ #!/bin/sh - # -# $Id: netstart,v 1.30 1995/05/11 19:08:36 rgrimes Exp $ +# $Id: netstart,v 1.31 1995/05/11 21:11:14 jkh Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # 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. +# 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,19 +43,16 @@ for ifn in ${network_interfaces}; do 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 + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" fi -# use loopback, not the wire -# route add $hostname localhost +# 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: diff --git a/etc/sysconfig b/etc/sysconfig index 4315876942bd..e8cc1c1dbca0 100644 --- a/etc/sysconfig +++ b/etc/sysconfig @@ -4,7 +4,7 @@ # This is sysconfig - a file full of useful variables that you can set # to change the default startup behavior of your system. # -# $Id: sysconfig,v 1.12 1995/05/11 19:08:37 rgrimes Exp $ +# $Id: sysconfig,v 1.13 1995/05/13 20:16:11 rgrimes Exp $ ######################### Start Of Syscons Section ####################### @@ -70,17 +70,27 @@ defaultdomainname=NO # 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" +# +# 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 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 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 of none. +# 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