Commit | Line | Data |
---|---|---|
34ca18a3 | 1 | #!/bin/sh - |
6291cdd9 | 2 | # |
ad787160 | 3 | # @(#)netstart 8.1 (Berkeley) 7/23/93 |
9ec99ff6 | 4 | |
34ca18a3 | 5 | routedflags=-q |
5751577a | 6 | timedflags=YES |
34ca18a3 KB |
7 | rwhod=NO |
8 | ||
9 | # myname is my symbolic name | |
34ca18a3 KB |
10 | # my-netmask is specified in /etc/networks |
11 | # | |
12 | hostname=myname.my.domain | |
7980c6d8 | 13 | hostname $hostname |
634be09a | 14 | |
34ca18a3 | 15 | ifconfig ace0 inet $hostname netmask my-netmask |
ad787160 C |
16 | ifconfig ex0 inet $hostname netmask my-netmask |
17 | ifconfig imp0 inet $hostname | |
18 | ifconfig le0 inet $hostname netmask my-netmask | |
19 | ifconfig ne0 inet $hostname netmask my-netmask | |
20 | ifconfig we0 inet $hostname netmask my-netmask | |
34ca18a3 | 21 | |
ad787160 | 22 | # For en ethernet interface, load microcode before ifconfig |
634be09a KB |
23 | # /etc/enpload /dev/enp0ram /etc/enpcode > /dev/console 2>&1 |
24 | ifconfig en0 inet $hostname netmask my-netmask | |
25 | ||
ba3a1e3d KB |
26 | # set the address for the loopback interface |
27 | ifconfig lo0 inet localhost | |
28 | ||
29 | # use loopback, not the wire | |
30 | route add $hostname localhost |