version 1.37, 1998/03/28 00:11:00 |
version 1.38, 1998/05/22 04:25:50 |
|
|
ifconfig lo0 inet localhost |
ifconfig lo0 inet localhost |
|
|
# use loopback, not the wire |
# use loopback, not the wire |
route add -host $hostname localhost |
route -n add -host $hostname localhost |
route add -net 127 127.0.0.1 -reject |
route -n add -net 127 127.0.0.1 -reject |
|
|
# configure all of the non-loopback interfaces which we know about. |
# configure all of the non-loopback interfaces which we know about. |
# do this by reading /etc/hostname.* files, where * is the name |
# do this by reading /etc/hostname.* files, where * is the name |
|
|
# /etc/mygate, if it exists, contains the name of my gateway host |
# /etc/mygate, if it exists, contains the name of my gateway host |
# that name must be in /etc/hosts. |
# that name must be in /etc/hosts. |
if [ -f /etc/mygate ]; then |
if [ -f /etc/mygate ]; then |
route add -host default `cat /etc/mygate` |
route -n add -host default `cat /etc/mygate` |
fi |
fi |
|
|
# default multicast route |
# default multicast route |
route add -net 224.0.0.0 -interface $hostname |
route -n add -net 224.0.0.0 -interface $hostname |