Operating System - HP-UX
1836356 Members
1912 Online
110100 Solutions
New Discussion

Re: How to add permanent route for HP11.11 server

 
SOLVED
Go to solution
YLTan
Frequent Advisor

How to add permanent route for HP11.11 server


I need to add a route permanently in my HP11.11 server. Which file do i need to update the route?

In Tru64, the route file is /etc/routes.
tyl
7 REPLIES 7
John Palmer
Honored Contributor

Re: How to add permanent route for HP11.11 server

/etc/rc.config.d/netconf

Regards,
John
G. Vrijhoeven
Honored Contributor

Re: How to add permanent route for HP11.11 server

Hi,

You can add it in /etc/rc.config.d/netconf
just use the route add command to add it on line.


Gideon
Stefan Farrelly
Honored Contributor

Re: How to add permanent route for HP11.11 server

/etc/rc.config.d/netconf

entry in it should look like this once done;

ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]="10.132.16.1"
ROUTE_COUNT[0]="1"
Im from Palmerston North, New Zealand, but somehow ended up in London...
YLTan
Frequent Advisor

Re: How to add permanent route for HP11.11 server


can you give me some examples on how to use the route command.

I need to add 15.48.31.1 as a gateway for all 15.48 traffic to go via this gateway.

I not too familiar with these parm in netconf

ROUTE_DESTINATION[0]="??"
ROUTE_MASK[0]="??"
ROUTE_GATEWAY[0]="??"
ROUTE_COUNT[0]="??"
ROUTE_ARGS[0]="??"
tyl
YLTan
Frequent Advisor

Re: How to add permanent route for HP11.11 server



the gateway i want to add is a second gateway beside the default. wat's the value
for

ROUTE_DESTINATION[0]="??"
tyl
T G Manikandan
Honored Contributor

Re: How to add permanent route for HP11.11 server

In your /etc/rc.config.d/netconf

ROUTE_DESTINATION[1]=
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=

John Palmer
Honored Contributor
Solution

Re: How to add permanent route for HP11.11 server

Your route command will be of the form:

route add net netmask 1

This translates into netconf as:

ROUTE_DESTINATION[n]="net "
ROUTE_MASK[n]=
ROUTE_GATEWAY[n]=
ROUTE_COUNT[n]=1
ROUTE_ARGS[n]=""

n starts as 0 and should be incremented for each route entry.

The example addresses that you have supplied don't appear valid because your router address is in the subnet you want to route to.

Regards,
John