1820046 Members
3131 Online
109608 Solutions
New Discussion юеВ

permanent route HP-UX11

 
JUAN_17
Occasional Advisor

permanent route HP-UX11

Hello everybody,
sorry, but my writed english is too bad!

How can i define the route entries after reboot???

when i type the command:
#route add default 123.22.22.22 1500
the entry appear, but, when i reboot the system, disappear..
what's wrong?
can you help me?


Thanks from Venezuela!
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: permanent route HP-UX11

You have to add the route to /etc/rc.config.d/netconf in order for it to come up when you reboot.

Here is the route section from one of my machines for the default route:

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=170.7.2.221
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""
S.K. Chan
Honored Contributor

Re: permanent route HP-UX11

You need to edit /etc/rc.config/netconf to make it permanent. The section you would modify would be ..
..
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=123.22.22.22
ROUTE_COUNT[0]=1
..
I'm not sure what's 1500 for in your command syntax. If that is meant to be the route count then it's set to 1 or 0 (1 means gateway is remote and 0 means the gateway is the local system).

Tim D Fulford
Honored Contributor

Re: permanent route HP-UX11

All the above good stuff. But unless you do a re-boot (which is when this is applied) it will not immidiately be applied. so

/sbin/init.d/net start

Will apply the above (or route add ...)

just mu 0.02???
-
Wodisch
Honored Contributor

Re: permanent route HP-UX11

Hi Juan,

be carefull with the "/sbin/init.d/net start" command, as it does NOT delete or flush the existing routes - that you'll have to do yourself before.
Well, only in case you have wrong routes setup, of course.

FWIW,
Wodisch