Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
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