LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-08-2007, 06: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, 09:57 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Latest Solaris have "route -p" (persistent). With Solaris 9, you need add a custom rc script with the proper commands.
 
Old 12-08-2007, 09: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, 10:36 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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, 03: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, 04:22 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Create a link to this file in /etc/init.d/S93inetroutes
 
Old 12-09-2007, 06: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, 09: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, 01:25 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Code:
ln -s /etc/init.d/inetroutes /etc/rc3.d/S93inetroutes
 
Old 12-10-2007, 04: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



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 07:32 AM
Permanent static Route on fedora cora 5 niurkin69 Linux - Networking 2 09-22-2006 03:56 PM
Permanent Default Route gianh Arch 3 05-07-2006 02:31 AM
Adding route and making ifconfig permanent gani *BSD 9 09-21-2004 02:01 AM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 10:07 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:21 PM.

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
Open Source Consulting | Domain Registration