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

Add Static route to HP-UX

 
Cliff Lim Kok Hwee
Regular Advisor

Add Static route to HP-UX

Gd Day Team,

How do I add static routes on HP-UX?

Thanks/cliff
4 REPLIES 4
Kasper Hedensted
Trusted Contributor

Re: Add Static route to HP-UX

Hi,

You can add a static route in this file:
/etc/rc.config.d/netconf

# ROUTE_DESTINATION[0]=default
# ROUTE_MASK[0]=""
# ROUTE_GATEWAY[0]=""
# ROUTE_COUNT[0]=""
# ROUTE_ARGS[0]=""

remember to increase the number i [] field.

Cheers
Adisuria Wangsadinata_1
Honored Contributor

Re: Add Static route to HP-UX

Hi,

Check the command 'route' and see the man pagae of this :

# man route

Check the url below (docID : HONCIKKBRC00000016) about 'How do I add or delete a route?' :

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

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Cliff Lim Kok Hwee
Regular Advisor

Re: Add Static route to HP-UX

Hi,

And after which i need to run

#/etc/init.d net start

To restart tcpip....

Correct me if I am wrong.

Thanks/cliff
Adisuria Wangsadinata_1
Honored Contributor

Re: Add Static route to HP-UX

Hi,

Yes, you need to restart the services.

/sbin/init.d/net start

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

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix