Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Solaris - static routes

Thread Tools
 
Search this Thread
 
Old 17 July 2002, 02:51 PM
  #1  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Am having a brainfade today........

Where do you configure static routes in Solaris, so that they will be recreated on a reboot.

route add blahblah will not let them be recreated on a reboot.

Dave
Old 17 July 2002, 03:03 PM
  #2  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Ooer what happened there ? Dont remember clicking twice....
Old 17 July 2002, 03:05 PM
  #3  
ScoobyJawa
Scooby Regular
 
ScoobyJawa's Avatar
 
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes on 0 Posts
Post

/etc/defaultrouter ????????

"man defaultrouter" gives some info about routes the machine will use....


[Edited by ScoobyJawa - 7/17/2002 3:06:31 PM]
Old 17 July 2002, 03:08 PM
  #4  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Dont want a default route, want to add more static routes.

Dave
Old 17 July 2002, 03:09 PM
  #5  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Mind you, could I add the extra routes as default ones as you can put more than one entry in the defaulrouter file ?
Old 17 July 2002, 03:20 PM
  #6  
dsmith
Scooby Regular
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Is it not /etc/inetd.conf ?

(warning I man not a unixy type person so that may not be correct!)

Deano
Old 17 July 2002, 03:46 PM
  #7  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

Right, done it.

I created a file called /etc/rc2.d/S99routes and put the "route add" entries in there et voila !

Dave
Old 17 July 2002, 04:10 PM
  #8  
ScoobyJawa
Scooby Regular
 
ScoobyJawa's Avatar
 
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes on 0 Posts
Post

ah ya cheat - thats not a fix lol!!! Do the job though

To your other Q - AFAIK you can have a whole list of default routes in that file.....
Old 17 July 2002, 04:43 PM
  #9  
^Qwerty^
Scooby Regular
 
^Qwerty^'s Avatar
 
Join Date: Feb 2002
Location: East Yorkshire
Posts: 1,764
Likes: 0
Received 25 Likes on 19 Posts
Post

Thats how I do it:

S99static

contents of file is something like:

/usr/sbin/route add <networks you want to add> <gateway>
Old 17 July 2002, 05:25 PM
  #10  
ids
Scooby Regular
 
ids's Avatar
 
Join Date: May 1999
Posts: 424
Likes: 0
Received 0 Likes on 0 Posts
Post

Remember on Solaris 8 and above you can put the entries into /etc/staticroutes

Ids
Old 17 July 2002, 05:32 PM
  #11  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

You sure ? Cant find anything about that in the Answerbook server.

Old 17 July 2002, 05:40 PM
  #12  
ids
Scooby Regular
 
ids's Avatar
 
Join Date: May 1999
Posts: 424
Likes: 0
Received 0 Likes on 0 Posts
Post

Unless the flip flop wearing, bearded Unix goons at our place have added this in im almost sure its a feature of Solaris 8..... Dont have a box to hand to try it on :<

Ids
Old 17 July 2002, 11:14 PM
  #13  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

flip flop wearing, bearded Unix goons
ROTFLMAO
Old 17 July 2002, 11:27 PM
  #14  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

I resent that they're sports sandals

yep .. I use /etc/rc3.d/S99routes too ~ saves you having to worry about whether it's Solaris 2.7, 8 or 9.

Steve

Anyone got Sol9 in a production environment yet ? Impressions ?
Old 18 July 2002, 12:13 PM
  #15  
orbv
Scooby Regular
 
orbv's Avatar
 
Join Date: Apr 2001
Location: Hants
Posts: 1,103
Likes: 0
Received 0 Likes on 0 Posts
Post

Try /etc/gateways

As documented in in.routed(1M)
Old 18 July 2002, 12:48 PM
  #16  
druddle
Scooby Regular
Thread Starter
 
druddle's Avatar
 
Join Date: Mar 2001
Location: Berkshire
Posts: 5,528
Likes: 0
Received 0 Likes on 0 Posts
Post

/etc/staticroutes seems to be connected with IPv6.

Dave
Old 19 July 2002, 08:55 AM
  #17  
krankyd
Scooby Regular
 
krankyd's Avatar
 
Join Date: May 2001
Posts: 672
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Usally just hack the inet start script. We have custom IP tuning scripts and we just add the static routes in there..


[Edited by krankyd - 7/19/2002 8:58:31 AM]
Old 19 July 2002, 12:35 PM
  #18  
DrEvil
Scooby Regular
 
DrEvil's Avatar
 
Join Date: Oct 2000
Location: Surrey, UK
Posts: 8,384
Likes: 0
Received 0 Likes on 0 Posts
Lightbulb

we use /etc/rc2.d/S99routes as well... doesn't mean its the best way thou...

I thought /etc/gateways was a better way... but I'm not payed to think here (@work)...

Alex
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StefanW
Subaru Parts
4
21 October 2015 09:04 PM
Benrowe727
ScoobyNet General
7
28 September 2015 07:05 AM
nowellyboy
General Technical
0
22 September 2015 02:12 PM
Matt_182
Suspension
6
18 September 2015 05:31 PM



Quick Reply: Solaris - static routes



All times are GMT +1. The time now is 08:47 PM.