Operating System - HP-UX
1847256 Members
5839 Online
110263 Solutions
New Discussion

how to make sure the route added stay added?

 
SOLVED
Go to solution
twtandigi.com.my
Frequent Advisor

how to make sure the route added stay added?

i have added a few routes to my unix system. but each time i reboot the machine the route seems to be missing.
what should i do to make sure such a thing not to happen again?
5 REPLIES 5
twang
Honored Contributor
Solution

Re: how to make sure the route added stay added?

To permanently change route info, you should make change the file /etc/rc.config.d/netconf
in the following example, a netqork route is added:
ROUTE_DESTINATION[1]="net 192.168.168.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="172.168.168.254"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
T G Manikandan
Honored Contributor

Re: how to make sure the route added stay added?

Make entries into the /etc/rc.config.d/netconf file to make them persistent.
Norman_21
Honored Contributor

Re: how to make sure the route added stay added?

Also, make sure you remove any renamed files from there e.g.) netconf.old...etc

Hope this help
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Navid Hussain_1
Advisor

Re: how to make sure the route added stay added?

Hi,

You can modify /etc/rc.config.d/netconf file as mentioned above
Or you can create script and add them in startup script.

It works fine,

NAVID
SS_6
Valued Contributor

Re: how to make sure the route added stay added?

After you modify netconf file you may wish to do the following to make sure it will work perfect after next reboot.
#/sbin/init.d/net start
It will reread the netconf file.
thx
By providing solutions I am helping myself