Operating System - HP-UX
1837912 Members
5871 Online
110124 Solutions
New Discussion

Re: setup static routes on HPUX 11.11

 
SOLVED
Go to solution
Kennethyap
Frequent Advisor

setup static routes on HPUX 11.11

Dear Experts,
How to setup a static routes on HPUX 11.11 ?
9 REPLIES 9
Jean-Luc Oudart
Honored Contributor
Solution

Re: setup static routes on HPUX 11.11

Hi,

use the route command

man route for more info.

Regards,
Jean-Luc
fiat lux
Kennethyap
Frequent Advisor

Re: setup static routes on HPUX 11.11

Have any documentation or guide ?
I needed to set it as permanent.

thks
Jean-Luc Oudart
Honored Contributor

Re: setup static routes on HPUX 11.11

You may also check this thread if you want to create the static routes at startup.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xaa7b5220af9bd5118ff10090279cd0f9,00.html

regards,
Jean-Luc
fiat lux
Slawomir Gora
Honored Contributor

Re: setup static routes on HPUX 11.11

Hi,

in file /etc/rc.config.d/netconf

add section

ROUTE_DESTINATION[1]="net x.x.x.x"
ROUTE_MASK[1]="y.y.y.y"
ROUTE_GATEWAY[1]="z.z.z.z"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

replace x.x.x.x, y.y.y.y z.z.z.z with you
parameters

and run command
/sbin/init.d/net start

Jean-Luc Oudart
Honored Contributor

Re: setup static routes on HPUX 11.11

Hp documentation :

docs.hp.com
enter the search keyword e.g. "route add"

Regards,
Jean-Luc
fiat lux
Kennethyap
Frequent Advisor

Re: setup static routes on HPUX 11.11

After modify the netconf file do we need t restart the /sbin/init.d/net ?
In OS 11.11, SAM only managed to configure a default route.
Slawomir Gora
Honored Contributor

Re: setup static routes on HPUX 11.11

Hi,
after modyfing /etc/rc.config.d/netconf
you must only run:

/sbin/init.d/net start
Kennethyap
Frequent Advisor

Re: setup static routes on HPUX 11.11

I need to have default route and static route.How to configure. I can't use route add to add-in..
Olivier Decorse
Respected Contributor

Re: setup static routes on HPUX 11.11

Hi,
For the default route, you can use the route command like this :
route add default x.y.z.t 1
where x.y.z.t is your gateway address.

Or put inside the /etc/rc.config.d/netconf something like :
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=x.y.z.t
ROUTE_COUNT[1]=1

For other static route, just put a valid address of a host or network, instead of "default".

Olivier.
They say "install windows 2k, xp or better", so i install unix !