Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

How to save persistent routes in HP-UX

Damchey Lhendup_1
Occasional Contributor

How to save persistent routes in HP-UX

Can anyone please tell me how to make my routes persistent, so that I don't lose it when I restart my server.

Can it be done via SAM?
4 REPLIES
Horia Chirculescu
Honored Contributor

Re: How to save persistent routes in HP-UX

Hello,

Persistent routes (as well as other things related to network configuration) are stored in the configuration file:

/etc/rc.config.d/netconf

Just edit that file and you would have the persistent routes.

Horia.
Best regards from Romania,
Horia.
Turgay Cavdar
Honored Contributor

Re: How to save persistent routes in HP-UX

Just add the following entries in the file /etc/rc.config.d/netconf. For example if you want to add a route to 200.200.200.0 network with C class, and lets say you want to route to 172.10.1.1 type:

ROUTE_DESTINATION[1]="net 200.200.200.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="172.10.1.1"
ROUTE_COUNT[1]="1"
Horia Chirculescu
Honored Contributor

Re: How to save persistent routes in HP-UX

>Just add the following entries in the file /etc/rc.config.d/netconf.

... and do not forget to apply those changes, by restarting the network subsystem
(

/sbin/init.d/net stop
/sbin/init.d/net start
)
.

For more information

vi /sbin/init.d/net


Horia.
Best regards from Romania,
Horia.
rick jones
Honored Contributor

Re: How to save persistent routes in HP-UX

I've always edited the "netconf" file by hand myself - do be careful about the index numbers there btw. However, I do believe that SAM knows how to modify that file on your behalf.
there is no rest for the wicked yet the virtuous have no pillows