Communications and Wireless
1850460 Members
4038 Online
104054 Solutions
New Discussion

adding route in serve startup

 
Ken Gagliano
Occasional Contributor

adding route in serve startup

I am trying to permanently enter a route in a startup file on a DEC Alpha Comoputer using Tru-64 Bit Unix V4.0G. I tried adding a file named route.S99 in the rc2.d directory that had the "route add" command line in it and it doesn't seem to work. Is this the proper way to do this or am I going about this wrong. What is the proper way to do this?

Thanks.
6 REPLIES 6
Jean-Pierre Denis
Valued Contributor

Re: adding route in serve startup

Hi,

yes that should do it.

Try running that file without restarting and see if the route are added.

Thanks,
JP
Open your Mind and use Open Source software...
william fitzgerald
New Member

Re: adding route in serve startup

I work with Ken G. This is for remote access to a server via isdn line. A route was successfully added to /sbin/rc2.d/S99route using command 'route add -host destinationIP gatewayIP'. After executing the command we were able to see the server from the remote site, when we rebooted the server,we couldnt see it anymore. Is this the correct command and directory? Do we need to modify sbin/init.d/gateway, inet or inetd?
Jean-Pierre Denis
Valued Contributor

Re: adding route in serve startup

Hi,

After executing 'route add -host destinationIP gatewayIP' or S99route ?
You are loosing the route when you reboot. When rebooting it will reach runlevel 2 and execute your S99route. This script sould contain the 'route add -host destinationIP gatewayIP' command and your route will be added.

Is your system running in runlevel 2 ?

Thanks,
JP
Open your Mind and use Open Source software...
Jerome Henry
Honored Contributor

Re: adding route in serve startup

I'm not much familiar with DEC alpha, but I've always thought one should set up network stuff at rc3.d, wherease r2.d was set for localc setting, not network ones...
HTH
J
You can lean only on what resists you...
william fitzgerald
New Member

Re: adding route in serve startup

Thank You JP and JH for your input, your comments led me to a solution. The server is in run level 3, we moved S99route from rc2.d to rc3.d, rebooted the server and the route remained, it looks like it worked.
Thanks again!
Jerome Henry
Honored Contributor

Re: adding route in serve startup

Happy it worked !!
J
You can lean only on what resists you...