Operating System - HP-UX
1753870 Members
7317 Online
108809 Solutions
New Discussion юеВ

How to add the static routes on HPUX

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to add the static routes on HPUX

Hi All,

How to add the static routes temporarily and permanently on HPUX.


3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to add the static routes on HPUX

Hi Senthil:

To add routes temporarily, use the 'route' command. See the manpages.

To add routes permanently, add them to '/etc/rc.config.d/netconf'.

Regards!

...JRF...
sujit kumar singh
Honored Contributor

Re: How to add the static routes on HPUX

Hi

temporary addition:

#route add net|host

permamnent addition
modify /etc/rc.config.d/netconf
#default gateway
ROUTE_GATEWAY[0]=10.10.10.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default
#to reach 192.168.0.1 using the IP addr 10.20.10.1
ROUTE_GATEWAY[1]=10.20.10.1
ROUTE_COUNT[1]=1
ROUTE_DESTINATION[1]=192.168.0.1


cat /etc/rc.config.d/netconf for more meanings on the variables.

regards
sujit
R.K. #
Honored Contributor

Re: How to add the static routes on HPUX

Hi Senthil,

Temporary addition:
See attachment

For Permanent:
Edit /etc/rc.config.d/netconf file as said.
OR
Make changes by Sam, this will also be permanent.

sam -> Networking and Communications -> Routes -> Action
Don't fix what ain't broke