Operating System - HP-UX
1834130 Members
3046 Online
110064 Solutions
New Discussion

How do I add a gateway on a HPUX server ?

 
SOLVED
Go to solution
Nigel Mushet
Occasional Advisor

How do I add a gateway on a HPUX server ?

We have a remote network which we want to access our HPUX server. On a Microsoft machine one would just add the IP address under the gateway field and all is well.

I have tried using the route add command:
route add 192.168.93.0 172.16.30.110

but get the message "network unreachable"

In the above example the 192 network is the remote network with the local network being 172 and the gateway device ip address is 172.16.30.110. (the HPUX server is 172.16.10.100)

Can anyone help me in setting up a gateway ?
6 REPLIES 6
Zeev Schultz
Honored Contributor

Re: How do I add a gateway on a HPUX server ?

Can you ping the gateway?
So computers don't think yet. At least not chess computers. - Seymour Cray
Trond Haugen
Honored Contributor

Re: How do I add a gateway on a HPUX server ?

The syntax is correct but are you sure you can reach 172.16.10.100? Can you ping it?
Does the arror message say anything more than "network unreachable"?

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Biswajit Tripathy
Honored Contributor

Re: How do I add a gateway on a HPUX server ?

> route add 192.168.93.0 172.16.30.110

Try:

# route add net 192.168.93.0 netmask 255.255.255.0 172.16.30.110 1

- Biswajit
:-)
bhavin asokan
Honored Contributor
Solution

Re: How do I add a gateway on a HPUX server ?

hi,

if you are able to ping to gateway 172.16.30.110

try

route add net 192.168.93.0 netmask 255.255.255.0 172.16.30.110 1


change in /etc/rc.config.d/netconf for making it permanant.

regds,
Nigel Mushet
Occasional Advisor

Re: How do I add a gateway on a HPUX server ?

Thanks to everyone for the replies!

The extended version of the route add command did the trick i.e. route add net 192.168.93.0 netmask 255.255.255.0 172.16.30.110 1

Nigel Mushet
Occasional Advisor

Re: How do I add a gateway on a HPUX server ?

Extended version of route add command did the trick