xref: /original-bsd/etc/netstart (revision 42c7e7a1)
1#!/bin/sh -
2#
3#	@(#)netstart	5.9 (Berkeley) 03/30/91
4
5routedflags=-q
6timedflags=YES
7rwhod=NO
8
9# myname is my symbolic name
10# my-netmask is specified in /etc/networks
11#
12hostname=myname.my.domain
13hostname $hostname
14
15ifconfig imp0 inet $hostname
16ifconfig ace0 inet $hostname netmask my-netmask
17ifconfig ex0 inet $hostname netmask my-netmask
18ifconfig we0 inet $hostname netmask my-netmask
19ifconfig ne0 inet $hostname netmask my-netmask
20
21# for en ethernet interface, load microcode before ifconfig
22# /etc/enpload /dev/enp0ram /etc/enpcode	> /dev/console 2>&1
23ifconfig en0 inet $hostname netmask my-netmask
24
25# set the address for the loopback interface
26ifconfig lo0 inet localhost
27
28# use loopback, not the wire
29route add $hostname localhost
30