1834022 Members
2578 Online
110063 Solutions
New Discussion

static routes

 
Tom DeCola
New Member

static routes

How do you add a static route to an HP3000? Our catalogueing server for our web site is unable to talk IP to where we need and a friend had this similar problem on an AS/400, though he wasn't the one to add the static route, so he couldn't guide me...not to mention it was a different OS. Any help in how to add this static route would be greatly appreciated. I can't find anything online that shows usage of the command.

Thanks!
3 REPLIES 3
Kofi ARTHIABAH
Honored Contributor

Re: static routes

Tom:

Static routes are added with the route command. do a man on route - the syntax is:

route add $DEST $GWAY $COUNT

where $DEST is the IP address you want the route to - this could be a network
$GWAY is the machine which will take your packets and forward it to the $DEST (it would typically be a router or the actual host that you are creating the route to - if they are on the same subnet) and $COUNT is the prefence level - also called cost... usually set to 1.

usually, when you have static routes in one direction, you must have them in the other (ie. from the other host as well) so that the other host knows where to sent its packets destined for the source machine.

you best bet is to look at

/etc/rc.config.d/netconf
(there are examples for setting up routes that remain even after a reboot)

man on route

good luck
nothing wrong with me that a few lines of code cannot fix!
Patrick Wallek
Honored Contributor

Re: static routes

You probably need to post this in the HP3000 or MPE forum to get the best response. This is the HP-UX forum.

But to provide you with a partial answer -- There is a screen somewhere in NMMGR that will allow you to do this. I don't remember exactly where. It's been 3 years since I've done anything with MPE.
Kofi ARTHIABAH
Honored Contributor

Re: static routes

Well caught Patrick! - I should have read the 3000 - oh dyslexia is setting in... time to log off.
nothing wrong with me that a few lines of code cannot fix!