Operating System - HP-UX
1835243 Members
2442 Online
110078 Solutions
New Discussion

Re: too many routing tables...

 
SOLVED
Go to solution
yoon
Occasional Contributor

too many routing tables...

Hi..

I need to startup too many routing table..about more than 36..

All routing table is in netconf file,It didn't work properly...I wanna know how many..in it??

so I make up scripts to startup in manual..How can do it automatically??

thanks fot your help..
@.@
4 REPLIES 4
Rajeev  Shukla
Honored Contributor

Re: too many routing tables...

make a script to add routs and then put that script in /sbin/init.d
link it to /sbin/rc3.d/S... (number that is free)
that way this script will be called at the time of boot and for further controll put the configuration file in /etc/rc.config.d

if you nee futhrer help let me know.

Sridhar Bhaskarla
Honored Contributor

Re: too many routing tables...

Hi,

Your script should accept a 'start' argument and|or 'start_msg' argument. Put a case statement with the above two conditions and add the routing commands under 'start' condition. It will be flexible if you have a toggle script under /etc/rc.confid.d directory. Your /sbin/init.d scripts should source-in the toggle script and executes the case statement based on the parameters in the toggle script. Look at 'vt' script for example.

Once the script is ready, test it by manually running '/sbin/init.d/your_script start' and make sure there are no syntax errors.

Then create a link from /sbin/rc2.d as Sxxxyourscript to /sbin/init.d/your_script. xxx is a number and you have to choose it carefully. Network starts with the number 340 so make it 350 so that it will be executed immediately after the interfaces get configured. This way if you have any nfs-servers configured over the static routes, they will get mounted.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
yoon
Occasional Contributor

Re: too many routing tables...

thanks fot your help...

but I couldn't solve the problem..about how many routing tables in /etc/rc.config.d/netconf file
In my case, it didn't work normally..when they were registerd more than some 30..
does it limit the number of routing tables in /etc/rc.config.d/netconf file??
do you know??

thank you...@.@
Sridhar Bhaskarla
Honored Contributor
Solution

Re: too many routing tables...

I haven't come across the limit that you can have for static routes. My belief is that it is unlimited but definitely more than 36.

Check for inconsistencies in the indexes of your static routes. Make sure the number is properly incremented bye 1 starting with 0 and there are no duplications and mix-ups. YOu will need to carefully and patiently go through each and every route.

ROUTE_DESTINATION[0]="net 210.210.210.0"
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]=200.200.200.1
ROUTE_COUNT[0]=1

ROUTE_DESTINATION[1]="net 220.220.220.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]=200.200.200.1
ROUTE_COUNT[1]=1

If you want you can test for first 5 routes and keep adding them in increments of 5 routes. You can use 'route -f' to flush the routes everytime and '/sbin/init.d/net start' to start the routes. You shouldn't have your application running and better be at the console to do this work.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try