date and time created 92/03/09 14:03:56 by bostic
[unix-history] / usr / src / etc / netstart
CommitLineData
34ca18a3 1#!/bin/sh -
6291cdd9 2#
03d142f0 3# @(#)netstart 5.9 (Berkeley) %G%
9ec99ff6 4
34ca18a3 5routedflags=-q
5751577a 6timedflags=YES
34ca18a3
KB
7rwhod=NO
8
9# myname is my symbolic name
34ca18a3
KB
10# my-netmask is specified in /etc/networks
11#
12hostname=myname.my.domain
7980c6d8 13hostname $hostname
634be09a 14
34ca18a3
KB
15ifconfig imp0 inet $hostname
16ifconfig ace0 inet $hostname netmask my-netmask
6291cdd9 17ifconfig ex0 inet $hostname netmask my-netmask
03d142f0
WN
18ifconfig we0 inet $hostname netmask my-netmask
19ifconfig ne0 inet $hostname netmask my-netmask
34ca18a3 20
03d142f0 21# for en ethernet interface, load microcode before ifconfig
634be09a
KB
22# /etc/enpload /dev/enp0ram /etc/enpcode > /dev/console 2>&1
23ifconfig en0 inet $hostname netmask my-netmask
24
ba3a1e3d
KB
25# set the address for the loopback interface
26ifconfig lo0 inet localhost
27
28# use loopback, not the wire
29route add $hostname localhost