Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 1999 18:58:20 +0000
From:      "Donald P. Dahlman" <dahlmand@gte.net>
To:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Cc:        Greg Lehey <grog@lemis.com>
Subject:   conversion
Message-ID:  <36D991CC.61617C7E@gte.net>

next in thread | raw e-mail | index | archive | help
curently using BSDI 3.1 with 16 user lic.
want to convert to 2.2.8 Freebsd
Have installed 2.2.8 onto a new machine
and installed apache, and perl5.
Both work so far.
now the question...s
first the BSDI uses a netstart to set a default route
and lots of other items.
see below...

can this file be used in 2.2.8 or what do i need to do ...




#
# netstart - configure network daemons, interfaces, and routes
#

#defroute="206.142.145.137"
defroute=""
hostname="nebula.nift.net"
nis_domain=""
primary="ef0"

interfaces="ef0"
# ef0::
ipaddr_ef0="206.142.145.139"
netmask_ef0="255.255.255.248"
linkarg_ef0="media 10baseT"
additional_ef0=


maximflags=YES
routedflags=NO
timedflags=NO
rwhod=YES
rstatd=YES

# Default to no network connections. See syslogd(8).
syslogdflags=-l

# Argument for the -u option of inetd.  See inetd(8).
inetd_ignore=internal


# Configure hostname and NIS domain as defined in the header
#
hostname $hostname

# Setting the YP/NIS nis_domain does not configure YP/NIS for your
# system -- see irs.conf(5).
if [ X$nis_domain != X ]; then
    domainname $nis_domain
fi

grep 'sysctl[    ]-w[    ]net\.' /etc/rc.local | sh

#############################################################################

#
# Configure interfaces defined in the header
#
for if in $interfaces; do
    eval "ifconfig $if inet set \$ipaddr_$if \
        \${netmask_$if:+netmask} \$netmask_$if \
        \$linkarg_$if \$additional_$if"
done

# set up multicast on primary interface
if [ X$primary != X ] ; then
    eval "route add -net 224.0.0.0 -interface \$ipaddr_$primary"
fi

# Configure virtual hosts defined in /etc/virtualip
# /etc/virtualip contains a list of IP addresses to configure.
# We lookup the link address (if any) and arp for them if we
# can; otherwise we just add them as an IP alias on the loopback.
if [ -f /etc/virtualip ]; then
    /usr/libexec/linkaddr `cat /etc/virtualip` 2>/dev/null | \
        while read line; do
            set -- $line                # virtualip [linkaddr]
            ifconfig lo0 add $1
            if [ "$2" ]; then arp -s $1 $2 pub; fi
        done
fi


# configure localhost (loopback) interface
ifconfig lo0 inet add 127.1

# do not send packets to the "loopback" net off-machine
route add -net 127 127.1 -reject

# Configure a static default route as defined in the header
if [ X$defroute != X ]; then
        route add default $defroute
fi







To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D991CC.61617C7E>