Solved

Add peristent routes that will still retain after reboot

Posted on 2008-06-23
10
956 Views
Last Modified: 2013-12-19
Been trying to figure out a way of adding persistent routes to a new SCO Openserver 6 server.  I've been adding it with the "route add -net 1.1.1.0 1.1.1.254", but the routes don't retain after a reboot.  Any help on this matter would be appreciated.
0
Comment
Question by:khanhvo7
  • 5
  • 4
10 Comments
 

Author Comment

by:khanhvo7
ID: 21850992
Wanted to add that I am a novice on SCO and a step by step how to would be appreciated.
0
 
LVL 3

Expert Comment

by:ofkr
ID: 21851080
I would do this approach if I am on my linux box.

1) Create a file e.g "startup" in /etc/init.d/   [chmod that file "startup" must be an executable]
#!/bin/bash
/sbin/route add -net 1.1.1.0 1.1.1.254

2) run "update-rc.d startup defaults"

3) Reboot your box
0
 
LVL 14

Accepted Solution

by:
mikelfritz earned 500 total points
ID: 21851208
SCO has no init.d dir (at least up to 5.0.7).  All startups are done with inittab or /etc/rc2.d/ files  an upper case S at the beginning of the filename indicates to run the contents at boot.  Also the path to the route command is /etc

You need to create a file called S99addroute in /etc/rc2.d
The line in it would be:
/etc/route add -net 1.1.1.0 1.1.1.254
0
 

Author Comment

by:khanhvo7
ID: 21851220
Let me rehash what you just told me.
1.  Create a file named "startup" in /etc/init.d/
2.  chmod the file
3.  Add the route statements in the file
4. Run "update-rc.d startup defaults"
5. Reboot the box

As mentioned, I just started learning SCO so even commands such as chmod are new to me.  If I asked redundant questions it's only to make sure I am doing the right things.
0
 

Author Comment

by:khanhvo7
ID: 21851339
Question for Mikelfritz:
This is what I've done.
1.  Navigated to /etc/rc2.d/
2.  vi S99addroute
3.  added lines for multiple routes : /etc/route add -net 1.1.1.0 1.1.1.254
     /etc/route add -net 1.1.2.0 1.1.1.254
4. chmod 744 S99addroute
5. saved file

Do I still need to do an update command of any sort or is that all I need?  I've already added the routes manually so no point in rebooting it now.  
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Closing Comment

by:khanhvo7
ID: 31469974
A few follow up questions for you.
0
 
LVL 14

Expert Comment

by:mikelfritz
ID: 21851514
That will work just fine.

They will be added automatically at the next boot.
0
 
LVL 14

Expert Comment

by:mikelfritz
ID: 21851534
Maybe you can tell me something.  Is there even a /etc/init.d directory?  5.0.7 and older do not have it.  I don't have version 6 and don't plan on getting it.  I would just like to know for my own information.
0
 

Author Comment

by:khanhvo7
ID: 21851546
Yes there is, with these folder/files in them:

ANNOUNCE
CLEAN
HWDNLOAD
KERNINIT
MDAC
MOUNTFSYS
README
RECOVERY
RESERVED
RMTMPFILES
SYSINIT
USRDAEMON
USRDEFINE
audit
cron
cups
emu
ipfnat
kdc
lp
mse
mstppp
mysql
nfs
nmb
perf
pgsql
rpc
sendmail
smb
squid
sync
sysetup
tomcat
uucp
vxvm-mirstand
vxvm-reconfig
vxvm-recover
vxvm-startup
vxvm-sysboot
webmin
winbind
0
 
LVL 14

Expert Comment

by:mikelfritz
ID: 21851577
Then ofkr's approach would be fine too.  The /etc/rc2.d/SXXXXX method has been what's used for at least 5.0.7 and below.  Thanks for the info.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco Access point 6 56
SCCM 2012 - PXE WinPE - Boot Resolution Low 10 27
Unable to RDP to windows 10 pro machine 15 73
What's the problem with my DSL? 4 55
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now