LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 12-08-2007, 07:19 AM   #1
rust8y
Member
 
Registered: May 2006
Posts: 100

Rep: Reputation: 15
Make route permanent


I am running Solaris 9.
I have just added a route

route add host 10.10.50.75 192.168.8.16

How do I make this route permanent so after a re-start of the Sun server the route will stay?
 
Old 12-08-2007, 10:57 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Latest Solaris have "route -p" (persistent). With Solaris 9, you need add a custom rc script with the proper commands.
 
Old 12-08-2007, 10:57 AM   #3
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by rust8y View Post

How do I make this route permanent so after a re-start of the Sun server the route will stay?
Create a file in /etc/initd/S93inetroutes

Fill it up with the proper routadd info, like
/usr/sbin/routeadd -yaddah yaddah

Link the file to /etc/rc2.d/S93inetroutes
 
Old 12-08-2007, 11:36 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Quote:
Originally Posted by coolster View Post
Create a file in /etc/initd/S93inetroutes
That should be:
/etc/init.d/inetroutes
 
Old 12-09-2007, 04:53 PM   #5
rust8y
Member
 
Registered: May 2006
Posts: 100

Original Poster
Rep: Reputation: 15
I have su as root.
cd /etc/init.d

There is no file called inetroutes in the directory /etc/init.d

Do I create the file inetroutes?

Create the file inetroutes -

route add host 10.10.80.14 192.168.8.35

What do I need to do next?
 
Old 12-09-2007, 05:22 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Create a link to this file in /etc/init.d/S93inetroutes
 
Old 12-09-2007, 07:57 PM   #7
coolster
Member
 
Registered: Nov 2007
Distribution: Solaris 10, Solaris Nevada
Posts: 112

Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
That should be:
/etc/init.d/inetroutes
Yes, sorry (typoh).

C.
 
Old 12-09-2007, 10:49 PM   #8
rust8y
Member
 
Registered: May 2006
Posts: 100

Original Poster
Rep: Reputation: 15
Create a link to this file in /etc/init.d/S93inetroutes

How do I do this?
 
Old 12-10-2007, 02:25 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Code:
ln -s /etc/init.d/inetroutes /etc/rc3.d/S93inetroutes
 
Old 12-10-2007, 05:10 AM   #10
rust8y
Member
 
Registered: May 2006
Posts: 100

Original Poster
Rep: Reputation: 15
Hi Jlliagre.

Thanks for your patience and help on this. Much appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make txqueuelen changes permanent? bcg121 Linux - Networking 0 11-02-2007 08:32 AM
Permanent static Route on fedora cora 5 niurkin69 Linux - Networking 2 09-22-2006 04:56 PM
Permanent Default Route gianh Arch 3 05-07-2006 03:31 AM
Adding route and making ifconfig permanent gani *BSD 9 09-21-2004 03:01 AM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 11:07 AM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration