The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error while adding a new user using Solaris Management Console. response_manu SUN Solaris 0 12-20-2006 02:20 AM
Adding an additional harddrive in solaris 9 GLJ@USC UNIX for Dummies Questions & Answers 5 08-09-2006 11:35 AM
adding interfaces in solaris 9 BG_JrAdmin UNIX for Dummies Questions & Answers 2 03-28-2005 08:18 AM
Adding Fonts to Solaris 2.8 Breen UNIX for Advanced & Expert Users 2 09-19-2002 09:43 AM
Adding an interface to solaris? mmaniscalco UNIX for Dummies Questions & Answers 1 02-06-2001 07:22 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-29-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
adding routes in Solaris

Solaris Guru's

What is the proper way to add routes in the routing table so after a node reboot the routes will not be lost.

I understand the /etc/defaultrouter for the default router
and the <route add> command but using this command routes will be removed once the node reboots.

Thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-29-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,207
add your routes to:

/etc/inet/routes

hth
Reply With Quote
  #3 (permalink)  
Old 11-29-2006
Registered User
 

Join Date: Nov 2006
Posts: 2
Thanks for the reply, if this files not exist, do I create a file name routes, and if this is the case will the entries follow this format

10.0.83.5 10.0.97.249

10.0.83.5 is the destination and .249 is the gateway, just asking the proper file layout.

Thanks again.
Reply With Quote
  #4 (permalink)  
Old 12-02-2006
Registered User
 

Join Date: Nov 2006
Posts: 252
/etc/defaultrouter normally for putting in the defaulrtouter or default gateway.

if your want to add other routes ...

example the command to add routes is

/usr/sbin/route add net 172.20.10.0 <gateway IP>
/usr/sbin/route add host 192.10.10.10 <gateway IP>

normally we create a file called S99routeadd, chmod 755 to it and place it under /etc/rc3.d so that everytime it reboots and system comes up it will autorun the script and add the routes.
Reply With Quote
  #5 (permalink)  
Old 12-03-2006
Registered User
 

Join Date: Dec 2005
Posts: 65
Sorry, maybe my question is silly, but why you don't just use route add default ?
Reply With Quote
  #6 (permalink)  
Old 12-03-2006
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,207
Quote:
Originally Posted by XP_2600
Sorry, maybe my question is silly, but why you don't just use route add default ?
sometimes more routes then one is used
Reply With Quote
  #7 (permalink)  
Old 12-04-2006
Registered User
 

Join Date: Jul 2005
Location: Amsterdam
Posts: 97
Quote:
Originally Posted by Brad_52000
Solaris Guru's

What is the proper way to add routes in the routing table so after a node reboot the routes will not be lost.

I understand the /etc/defaultrouter for the default router
and the <route add> command but using this command routes will be removed once the node reboots.

Thanks
for more info on routing take a look at:http://www.terminalcult.org/manpages...&Search=Search
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0