Operating System - HP-UX
1753774 Members
7214 Online
108799 Solutions
New Discussion юеВ

Re: Add routing entry at system startup

 
SOLVED
Go to solution
peterchu
Super Advisor

Add routing entry at system startup

I hv added the below routing entry to my system , but it will be erased after system reboot , how to set it as a permanent routing so that it still vaild even system reboot ? thx
5 REPLIES 5
Mauro Gatti
Valued Contributor

Re: Add routing entry at system startup

Add your route in /etc/rc.config.d/netconf and at every reboot it will be reloaded.


RGDS


Mauro
Ubi maior, minor cessat!
Muthukumar_5
Honored Contributor

Re: Add routing entry at system startup

To make permanent routing then use,

/etc/rc.config.d/netconf file

Other changes with on routing will be in effect using route / ifconfig upto reboot / shutdown there.


Easy to suggest when don't know about the problem!
Victor Fridyev
Honored Contributor

Re: Add routing entry at system startup

In /etc/rc.config.d/netconf copy the the entries for your default router, update array index and add the needed entry as
net IP.ADDR.XX.XX
or
host IP.ADDR.YY.YY

in the ROUTE_DESTINATION entry

HTH
Entities are not to be multiplied beyond necessity - RTFM
Shaikh Imran
Honored Contributor

Re: Add routing entry at system startup

Hi,

I agree with all above

Aslo Try this Document :

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063200509

The document says this way:

To add a permanent default route entry:
1. Add the route entry in /etc/rc.config.d/netconf
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=ip_address
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
2. reboot system for changes to take effect
3. netstat -rn shows permanent entry

Regards,

I'll sleep when i am dead.
Bharat Katkar
Honored Contributor
Solution

Re: Add routing entry at system startup

Hi,
I always do it with ...

# set_parms addl_netwrk

It's menu driven and safe..
Regards,
You need to know a lot to actually know how little you know