version 1.13, 1997/02/03 12:04:44 |
version 1.14, 1997/02/11 18:46:08 |
|
|
# set the address for the loopback interface |
# set the address for the loopback interface |
ifconfig lo0 inet localhost |
ifconfig lo0 inet localhost |
|
|
|
# /etc/mygate, if it exists, contains the name of my gateway host |
|
# that name must be in /etc/hosts. |
|
if [ -f /etc/mygate ]; then |
|
route add default `cat /etc/mygate` |
|
fi |
|
|
# use loopback, not the wire |
# use loopback, not the wire |
route add $hostname localhost |
route add $hostname localhost |
route add -net 127 127.0.0.1 -reject |
route add -net 127 127.0.0.1 -reject |
|
|
# default multicast route |
# default multicast route |
route add -net 224.0.0.0 -interface $hostname |
route add -net 224.0.0.0 -interface $hostname |
|
|
# /etc/mygate, if it exists, contains the name of my gateway host |
|
# that name must be in /etc/hosts. |
|
if [ -f /etc/mygate ]; then |
|
route add default `cat /etc/mygate` |
|
fi |
|