Solaris - static routes
Jul 17, 2002 | 02:51 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
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
Jul 17, 2002 | 03:03 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Ooer what happened there ? Dont remember clicking twice....
Jul 17, 2002 | 03:05 PM
Joined: Aug 2001
Posts: 10,954
Likes: 0
From: Hampshire
/etc/defaultrouter ????????
"man defaultrouter" gives some info about routes the machine will use....
[Edited by ScoobyJawa - 7/17/2002 3:06:31 PM]
Jul 17, 2002 | 03:08 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Dont want a default route, want to add more static routes.
Dave
Jul 17, 2002 | 03:09 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Mind you, could I add the extra routes as default ones as you can put more than one entry in the defaulrouter file ?
Jul 17, 2002 | 03:20 PM
Joined: Mar 1999
Posts: 4,518
Likes: 0
Is it not /etc/inetd.conf ?
(warning I man not a unixy type person so that may not be correct!)
Deano
Jul 17, 2002 | 03:46 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Right, done it.
I created a file called /etc/rc2.d/S99routes and put the "route add" entries in there et voila !
Dave
Jul 17, 2002 | 04:10 PM
Joined: Aug 2001
Posts: 10,954
Likes: 0
From: Hampshire
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.....
Jul 17, 2002 | 04:43 PM
Joined: Feb 2002
Posts: 1,764
Likes: 25
From: East Yorkshire
Thats how I do it:
S99static
contents of file is something like:
/usr/sbin/route add <networks you want to add> <gateway>
Jul 17, 2002 | 05:25 PM
Joined: May 1999
Posts: 424
Likes: 0
Remember on Solaris 8 and above you can put the entries into /etc/staticroutes
Ids
Jul 17, 2002 | 05:32 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
You sure ? Cant find anything about that in the Answerbook server.
Jul 17, 2002 | 05:40 PM
Joined: May 1999
Posts: 424
Likes: 0
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
Jul 17, 2002 | 11:14 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
Quote:
flip flop wearing, bearded Unix goons
ROTFLMAO
Jul 17, 2002 | 11:27 PM
Joined: Sep 2001
Posts: 4,670
Likes: 0
From: Kingston ( Surrey, not Jamaica )
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 ?
Jul 18, 2002 | 12:13 PM
Joined: Apr 2001
Posts: 1,103
Likes: 0
From: Hants
Try /etc/gateways
As documented in in.routed(1M)
Jul 18, 2002 | 12:48 PM
Thread Starter
Joined: Mar 2001
Posts: 5,528
Likes: 0
From: Berkshire
/etc/staticroutes seems to be connected with IPv6.
Dave
Jul 19, 2002 | 08:55 AM
Joined: May 2001
Posts: 672
Likes: 0
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]
Jul 19, 2002 | 12:35 PM
Joined: Oct 2000
Posts: 8,384
Likes: 0
From: Surrey, UK
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
Oct 21, 2015 09:04 PM
Benrowe727
ScoobyNet General
7
Sep 28, 2015 07:05 AM
nowellyboy
General Technical
0
Sep 22, 2015 02:12 PM
Matt_182
Suspension
6
Sep 18, 2015 05:31 PM
10 ,
add ,
configuring ,
druddle ,
etcstaticroute ,
etcstaticroutes ,
file ,
list ,
net ,
route ,
routes ,
s99routes ,
solaris ,
static ,
statics