Operating System - HP-UX
1833687 Members
3896 Online
110062 Solutions
New Discussion

How do I keep new routes after reboot?

 
SOLVED
Go to solution
MRSG
Frequent Advisor

How do I keep new routes after reboot?

Hi,

I've just recently added 8 new routes to 2 V class servers. We need these routes to come up after reboot. I understand I should add these to netconf, can someone tell me how the entires should look if the "route A" was:

Network: 145.14.0.0
Netmask: 255.255.0.0
Gateway: 141.30.131.1

and "Route B" was

Network: 145.15.0.0
Netmask: 255.255.0.0
Gateway: 141.30.131.1

Thanks.
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: How do I keep new routes after reboot?

ROUTE_DESTINATION[0]=145.14.0.0
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]=141.30.131.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[0]=145.15.0.0
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]=141.30.131.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

I think that ought to do it.


Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: How do I keep new routes after reboot?

Hi,

Follow what Pete mentioned. But just make sure unique [index] is followed. For ex., for 145.14.0.0 use ROUTE_DESTINATION[1] etc., for 145.15.0.0 use ROUTE_DESTINATION[2] etc.,

You may seee ROUTE_DESINATION[0] already reserved for default route.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
harry d brown jr
Honored Contributor

Re: How do I keep new routes after reboot?


And of course when you are done, make sure you take an ignite backup!

live free or die
harry
Live Free or Die
Pete Randall
Outstanding Contributor

Re: How do I keep new routes after reboot?

Thanks, Sri - cut and paste only works if you proofread well - and we all know I don't!

Pete

Pete
Colin Topliss
Esteemed Contributor

Re: How do I keep new routes after reboot?

Another word of caution. If you get the routing wrong (usually something like adding an incorrect mask to a host route), you may find that the system hangs when you reboot (in S340net).

I've always tended to use a custom script to add routes once the network has started - we can then add entries and run any number of times without having to stop and restart networking.
Ravi_8
Honored Contributor

Re: How do I keep new routes after reboot?

Hi,

As Sri says Index should increment by 1 for each route entry
never give up