[Sunhelp] How do I make permanent route settings?

Dale Ghent sunhelp at sunhelp.org
Thu Nov 2 14:51:55 CST 2000


On Thu, 2 Nov 2000, Adams, Christopher wrote:

| I'm trying to set the gateway on my machines here at work and can't seem to
| make them stay.  
| I'm using the command "  route add default <gateway IP addr.>
| This works fine!  The machines are able to connect to the internet fine, but
| once a machine is rebooted, the gateway is again lost!
| 
| How do I hardcode the gateway entry?
| (Solaris 2.6/2.7/2.8 Sparc)

the default route goes in the /etc/defaultrouter file.

echo xxx.xxx.xxx.xxx > /etc/defaultrouter

See the defaultrouter man page.

/dale




More information about the SunHELP mailing list