SUMMARY: Adding static routes

From: Claudio Lapidus (clapidus@hotmail.com)
Date: Thu Aug 14 2003 - 21:58:23 EDT


----- Original Message -----
> What is the proper place to configure static routes for a Solaris host? I
> mean, besides the default gateway configured in /etc/defaultrouter...
>
> I need to add a second static to point to a certain net via a dedicated
> gateway. I checked SunDocs but I've been unable to find anything
pertinent.

There is general consensus in adding a script like this one:

$ cat /etc/rc2.d/S76static-routes
#!/bin/sh
route add -net ...
route add -net ...

The exact number may vary a bit, but the idea is to get it executed just
after IP services are up, so any application that might come afterwards find
the routes already in place.

Also, many people point out that there seems to have no standard provision
in Solaris for this task, lacking a dedicated file for this purpose like
other Unices have.

Thank you *very* much to all who responded, including Judith Reed, Mark, Jon
Polak, Michael Peters, Peter Ondruska, Mike Sandler, Russell Page, Siva
Santhakumar, Andrew Caines, Steven Haywood, David Harrington, Steve Starer,
Eliezer Ramm, Reggie Beavers, Matthew Westover, Charles Homan, Andres Rojas,
Charlotte Ratliff, Andrew Rotramel and Alan Pae.

As usual, responses started to came back after 8 minutes! Now go and get
that from a commercial support :)

thanks again
cl.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:56 EDT