Operating System - HP-UX
1839550 Members
2914 Online
110147 Solutions
New Discussion

configuring routing....??

 
sandro ginnari_1
Occasional Advisor

configuring routing....??

Hi,
Routing. Thats the problem!
In the /etc/rc.config.d/netconf file I find these lines:

ROUTE_DESTINATION[0]=X.Y.Z.B
ROUTE_MASK[0]=C.C.C.M
ROUTE_GATEWAY[0]=F.Y.R.E
ROUTE_COUNT[0]=1
OUTE_ARGS[0]=""
HOP_COUNT=1

Now if I want to add another STATIC route to my routing table, I guess I'll have to add the same lines with different paramiters.
The question is:
when I type netstat -rn the static routes I added do not appear, why?
How do I configure the gated.conf file and is it normal that it is located in /user/newconfig/etc/gated.conf?
Are there any other files I have to configure so that my routing works?
Dose netstat -rn show only the static routes?

Thanks!
By
5 REPLIES 5
Steven Sim Kok Leong
Honored Contributor

Re: configuring routing....??

Hi,

After you modify your /etc/rc.config.d/netconf, did you do a "/sbin/init.d/net stop;/sbin/init.d/net start" or reboot the system so that your changes can take effect?

Regards.

Steven Sim.
sandro ginnari_1
Occasional Advisor

Re: configuring routing....??

I forgot to say that I rebooted the system!
thanks
John Palmer
Honored Contributor

Re: configuring routing....??

Don't forget to increment the shell array subscript for your additional static route definitions in netconf. For example:-
ROUTE_DESTINATION[0]=X.Y.Z.B
ROUTE_MASK[0]=C.C.C.M
...
ROUTE_DESTINATION[1]=X.Y.Z.C
ROUTE_MASK[1]=C.C.C.M
...
ROUTE_DESTINATION[2]=X.Y.Z.D
ROUTE_MASK[2]=C.C.C.M
etc.

Berlene Herren
Honored Contributor

Re: configuring routing....??

Why is there a "HOP_COUNT"=1? The ROUTE_COUNT=1 indicated that you are using an external router. If =0, then you are using this box as it's own router. I don't recall ever seeing a "HOP_COUNT."

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Alan Riggs
Honored Contributor

Re: configuring routing....??

If gated is running, it could be overriding your static routes (removing them). Check to see whether the demon is running, decide whther you really need it, if so -- modify gated.conf to recognize the static routes.