SUMMARY: routed and gateways

From: Michael Pope (
Date: Thu Mar 09 1995 - 03:14:41 CST

Sorry this summary is a little late. I've been a bit busy lately
but I've got there in the end.

Original post:-

I've a Sun 2 running 4.1.1 on an internal network which accesses the
Internet via a gateway machine. Everytime the machine is rebooted
however I have to manully change the routing tables as follows:-

        % route add default 1
        add net default: gateway

Reading the manual for routed it appears I need to set up a file called
/etc/gateways which routed would read at root time to solve this problem.
This I have done but to no avail. /etc/gateways contains the entry:-

        net default gateway metric 1 passive

When routed starts I get no indication of any errors. I have checked
I have named the file correctly as it did not exist previously. It's OK.


I did make a typo, Sun 2 should have been Sparc 2, but I don't think
this made any difference to the outcome.

The vast majority of people pointed me to creating a /etc/defaultrouter file.
This I did.

I had to also add the following to rc.local as it wasn't in there. Probably
never was on 4.1.1 .

   if [ ! -f /sbin/route -a -f /etc/defaultrouter ]; then
           route -f add default `cat /etc/defaultrouter` 1

Thanks to :-

stern@sunrise.East.Sun.COM (Hal Stern - NE Area Systems Engineer)
Larry Chin <>
Neil Greene <> (Bismark Espinoza)
Rj Nichols <> (Robert Wolf)
Jim Wright <> (Jack Valko)
Vippin Chadha <>
wallen@cogsci.UCSD.EDU (Mark R. Wallen)
Andy McCammont (0119) <> (Mark Hargrave (504) 257-1242) (Mark Hargrave (504) 257-1242) (Mark Riley)
mshon@sunrock.East.Sun.COM (Michael J. Shon {*Prof Services} Sun Rochester) (Martin Achilli)
greiml@explorer.Uni-Trier.DE (Alexander Greiml)
Juergen Peus <> (Perry Hutchison)
"Gyuere Peter" <>
Elser Gerhard <>


Mick Pope Research & Development

Wilj International Ltd, Internet: Viking House, Phone: +44 1233 638383 Ellingham Way Fax: +44 1233 627553 Ashford, Kent, TN23 6NF ENGLAND Instrumental in Diagnostic Technology

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:18 CDT