SUMMARY: routed and gateways

From: Michael Pope (mdp@wilj.itl.co.uk)
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 gw.itl.co.uk 1
        add net default: gateway gw.itl.co.uk

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 gw.itl.co.uk 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.

Answer:-

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
   fi

Thanks to :-

stern@sunrise.East.Sun.COM (Hal Stern - NE Area Systems Engineer)
Larry Chin <Larry_Chin@ca.cch.com>
Neil Greene <neil@bMD.com>
bismark@alta.jpl.nasa.gov (Bismark Espinoza)
Rj Nichols <nicholr@titanium.sps.mot.com>
rwolf@dciem.dnd.ca (Robert Wolf)
Jim Wright <jwright@phy.ucsf.edu>
valko@cyberspace.com (Jack Valko)
Vippin Chadha <vipin@cadence.com>
wallen@cogsci.UCSD.EDU (Mark R. Wallen)
Andy McCammont (0119) <mccammaa@expt05.stp.xfi.bp.com>
root@wisdom.maf.nasa.gov (Mark Hargrave (504) 257-1242)
root@wisdom.maf.nasa.gov (Mark Hargrave (504) 257-1242)
riley@stavanger.Geco-Prakla.slb.com (Mark Riley)
mshon@sunrock.East.Sun.COM (Michael J. Shon {*Prof Services} Sun Rochester)
martin@gea.hsr.it (Martin Achilli)
greiml@explorer.Uni-Trier.DE (Alexander Greiml)
Ross.Stocks.INSDRS01@nt.com
Juergen Peus <grobi@uni-paderborn.de>
perryh@pluto.rain.com (Perry Hutchison)
"Gyuere Peter" <PETER@LIBWARE.lib.klte.hu>
Elser Gerhard <gelser@focus.co.at>

-- 

Mick Pope Research & Development

Wilj International Ltd, Internet: mdp@wilj.itl.co.uk 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