I've a 386 with Linux acting as a firewall/gateway to the Internet.
Now I want to be able to go "outside" with my SGI machines.
route add default 10.xx.xx.1 1
(IRIX 5.3)
does the trick, but I want to put this where it should be (and
done at boot time).
I've tried to put something like:
host 0.0.0.0 gateway 10.x.x.1 metric 1 passive
in /etc/gateways but this doesn't work (?)
BTW, the gateway has no routing info server running,
so routed can't figure it out automatically (at least that's
what I understand how it could be working).
Thanks in advance,
John
--
http://www.lageprijzen.nl/ - lage prijzen hardware/software
http://www.lageprijzen.nl/markt.html - 2e hands hardware/software
I've found:
1. If you make your gateway x.x.x.254 and you SGI box is on the same
subnet, it "just works"...
2. I had to change my default route on Irix 6.2 and I recall just using
"route add default x.x.x.x" and it worked and stayed configured that way
after rebooting.
Good luck.
| I've tried to put something like:
| host 0.0.0.0 gateway 10.x.x.1 metric 1 passive
| in /etc/gateways but this doesn't work (?)
| BTW, the gateway has no routing info server running,
| so routed can't figure it out automatically (at least that's
| what I understand how it could be working).
I have mine in /ect/config/static-route.options (on 6.2)
--
Penio Penev <Pe...@pisa.Rockefeller.edu> 1-212-327-7423
With IRIX 6.2 + a current sent of patches, you can put your default
route in /etc/config/static-route.options.
With IRIX 5.3, you'll want to put it in /etc/init.d/network.local.
--
Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: m...@dojo.mi.org
InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481
Is 'routed' running ?
If not:
su
chkconfig routed on
reboot
More generally:
ADDING A GATEWAY
----------------
Ralf....@dlr.de
In the following files replace the gateway name 'your_gate'
by your gateway name.
IRIX 4 to 5.3
-------------
Install the following file as /etc/init.d/network.local and
make the links as indicated.
-----------------------------------------------------------------
#!/bin/sh
#
# /etc/init.d/network.local
#
# Define a default route to a smart gateway
#
# The following links are required:
#
# ln -s /etc/init.d/network.local /etc/rc0.d/K39network
# ln -s /etc/init.d/network.local /etc/rc2.d/S31network
case "$1" in
'start')
/usr/etc/route add default your_gate 1
;;
'stop')
/usr/etc/route delete default your_gate 1
;;
*)
echo "usage: $0 {start|stop}"
;;
esac
-----------------------------------------------------------------
The link in /etc/rc0.d should be reported like:
lrwxr-xr-x 1 root sys 25 Nov 12 16:39 K39network -> /etc/init.d/network.local
The link in /etc/rc2.d should be reported like:
lrwxr-xr-x 1 root sys 25 Nov 12 16:39 S31network -> /etc/init.d/network.local
Comment by Alexis Cousein:
*If* you mount nfs filesystems that cross a router, add a umount -atk
nfs (and nfs2,nfs3,nfs3pref etc) before the route delete or you'll be
hosed...kina hard to notify servers when you just severed the link to
them :}.
Install the following file as /etc/gateways
#
# /etc/gateways
#
# This is the last resort if anything else fails
net default gateway your_gate metric 1 passive
host 11.0.0.1 gateway your_gate metric 1 passive
Comment by Alexis Cousein:
Also works in 5.3/6.2, BTW, if you keep running routed, as long as you
either put in 0.0.0.0 instead of default or define it in /etc/networks.
IRIX 6.2 and up
---------------
See 'man route' and /etc/config/static-route.options.
Configure /etc/config/static-route.options and reboot.
/etc/config/static-route.options:
# static-route.options
#
# The network startup script, /etc/init.d/network, invokes this
# script to set static routes. Site-dependent static routes should
# be put here.
#
# Because name services are not active when this file is invoked, any
# names used here should be defined in /etc/hosts.
#
# Read `man route`.
#
# Since $ROUTE and $QUIET are set in /etc/init.d/network, it is convenient
# to use `route` commands similar to the following here:
#
# $ROUTE $QUIET add -net 10 192.0.2.3
# or
# $ROUTE $QUIET add 192.168.1.1 192.0.2.5
Regards
Ralf....@dlr.de
German Aerospace Center (DLR)
Deutsches Zentrum fuer Luft- und Raumfahrt e.V.