Summary defaultrouter on Sun3/60

From: Hathaway, Robert (hathaway@gomemphis.com)
Date: Tue Nov 11 1997 - 10:00:54 CST


Thanks Sun Managers
The solution I liked best was john Valdez
The rest of the reply are below those that suggest adding the
defaultrouter
file only does not work on sun3/60 but does work on the Sparc.

If you have SunOS 4.1.1B installed on that 3/60, just create a
/etc/defaultrouter file as you're probably used to. If not, create
one anyway, and add this snippet to /etc/rc.local, after the "ifconfig
-a ..." line:
  
  #
  # Try to add a default route again, now that "/usr" is mounted and NIS
  # is running.
  #
  if [ ! -f /sbin/route -a -f /etc/defaultrouter ]; then
          route -f add default `cat /etc/defaultrouter` 1
  fi

You could also hardwire the default route in /etc/rc.local as well.

John Valdes

Robert Hathaway
hathaway@gomemphis.com

"Anyone Without a Sense of Humor is at the Mercy of the Rest of Us!"

# route add default 99.99.99 1

Bismark Espinoza
bismark@alta.jpl.nasa.gov
(818) 354-4734

Robert,

For both Sun OS 4.1.x and Solaris 2.x do:
  create file /etc/defaultrouter
  contents of file is IP address of router.
Setting of default router is not well documented. It is implemented in
the system start-up scripts (Sun OS /etc/rc.* ; Solaris /etc/init.d,
/etc/rc?.d).

Brion Leary <brion@dia.state.ma.us>

What OS?

If it's 4.1 or 4.1.1 then just create a file called /etc/defaultrouter
with either the hostname or IP address. For older releases just edit
/etc/rc.local, comment out the line that starts up in.routed and add:

  route add default xyz 1

where xyz is the hostname or IP address of the defautl router.

In the ;later releases there is a little bit of shell script that reads
from the file and performs the route add command. Nothing terribly
special there.

regards,

--
Glenn Satchell

ame as any other SunOS 4.x box (assuming you're running SunOS 4.x -- latest that supports the sun3 is SunOS 4.1.1_U1); create /etc/defaultrouter with the IP address of the intended "default router".

There should be code in /etc/rc.local that looks for this and takes care of it.

David Wolfskill

add a 'route default <router> 1' to /etc/rc.local (at the end is a good place)

| Nickolai Zeldovich

Robert,

Set the IP Address or host name of the router in /etc/defaultrouter.

/mdb mdb@dosmanos.cwiz.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:08 CDT