10438cc97Sbostic#!/bin/sh - 2a1487b3fSbostic# 3*f3626c32Sbostic# @(#)netstart 8.1 (Berkeley) 07/23/93 47a3066baSkarels 50438cc97Sbosticroutedflags=-q 678a4940cSbostictimedflags=YES 70438cc97Sbosticrwhod=NO 80438cc97Sbostic 90438cc97Sbostic# myname is my symbolic name 100438cc97Sbostic# my-netmask is specified in /etc/networks 110438cc97Sbostic# 120438cc97Sbostichostname=myname.my.domain 1381e6a9d1Strenthostname $hostname 148f83eb71Sbostic 150438cc97Sbosticifconfig ace0 inet $hostname netmask my-netmask 16a1487b3fSbosticifconfig ex0 inet $hostname netmask my-netmask 177e4814ecSbosticifconfig imp0 inet $hostname 187e4814ecSbosticifconfig le0 inet $hostname netmask my-netmask 19386ddee8Swilliamifconfig ne0 inet $hostname netmask my-netmask 207e4814ecSbosticifconfig we0 inet $hostname netmask my-netmask 210438cc97Sbostic 227e4814ecSbostic# For en ethernet interface, load microcode before ifconfig 238f83eb71Sbostic# /etc/enpload /dev/enp0ram /etc/enpcode > /dev/console 2>&1 248f83eb71Sbosticifconfig en0 inet $hostname netmask my-netmask 258f83eb71Sbostic 26b7ac87acSbostic# set the address for the loopback interface 27a1487b3fSbosticifconfig lo0 inet localhost 28b7ac87acSbostic 29b7ac87acSbostic# use loopback, not the wire 30b7ac87acSbosticroute add $hostname localhost 31