1834814 Members
2350 Online
110070 Solutions
New Discussion

network routes

 
SOLVED
Go to solution
Scott E Smith
Frequent Advisor

network routes

I have a couple of static network routes that are not being added when my system starts up. There are two network startup scripts in the rc3.d init level. Both of them fail with a "usage" error in the route add command. I have a test system with the exact same netconf file that works fine. Any Ideas? Thanks.
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: network routes

Hi Scott:

Can you manually run the scripts? Are your patch levels the same on the production and test servers? Are your scripts relying on PATHs and/or environmental variables that not present during the startup process?

Regards!

...JRF...
Scott E Smith
Frequent Advisor

Re: network routes

I havn't run them manually other than, to add the routes by hand after the system starts. The patch levels are mostly identical. Where there are differences they are not network related. I would suspect that I'd have other startup failures as well if the PATH statements were an issue. I thought it might be the order of the scripts but the test box has same files.
I have an S008net.sd and an S340net command in the rc2.d directory. The error output is :
Configure LAN interfaces
Output from "/sbin/rc2.d/S008net.sd start":
----------------------------
ERROR: usage: add destination [netmask mask] gateway [metric]
ERROR: usage: add destination [netmask mask] gateway [metric]
"/sbin/rc2.d/S008net.sd start" FAILED and
Output from "/sbin/rc2.d/S340net start":
----------------------------
ERROR: usage: add destination [netmask mask] gateway [metric]
ERROR: usage: add destination [netmask mask] gateway [metric]
"/sbin/rc2.d/S340net start" FAILED

Clear as mud.....

MANOJ SRIVASTAVA
Honored Contributor

Re: network routes

The best way is to run these command manually and check whehter the same get added , the sysntax may be writer but the stuff like default gateway etc may not be reachable or there can be problem in the lan card itself.


Manoj Srivastava
James R. Ferguson
Acclaimed Contributor

Re: network routes

Hi (again) Scott:

I urge you to manually run the failing scripts.

From the errors you report, I'd suspect that some of the derived variables are bad. You might want to add some debugging echo commands to output the command strings. The scripts you mention rely on a sound '/etc/rc.config.d/netconf'.

Regards!

...JRF...