1825775 Members
1974 Online
109687 Solutions
New Discussion

Add new gateway

 
SOLVED
Go to solution
ACossa
Occasional Contributor

Add new gateway

Hi,

I have done the following to add new gateway.

#router add gateway IP
eror message: Network unreachable

What should I do?

Thanks,
AC
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: Add new gateway

Hi,

example
# route add 192.xx.x.25 netmask 255.255.xxx.xxx 1

and do not forget to edit the /etc/rc.config.d/netconf file.

Regards,
Robert-Jan
sujit kumar singh
Honored Contributor

Re: Add new gateway

Hello


That means that the gateay that u want to add is not reachable.

do a

#netstat -rn
to check if that route is added or not.


Better to do it this way:

1) suppose 10.202.202.0 is the remote network that u want to reach.
u want to reach this using the lan2 on ur Server that has an assigned IP of 172.10.10.55
then give the command as

#route add net 10.202.202.0 172.10.10.55 1

and check


Regards


Sujit
Matti_Kurkela
Honored Contributor

Re: Add new gateway

You're forgetting to add the "hop count" parameter. Note the extra "1" at the end of both Robert's and Sujit's examples.

This is one of the differences between HP-UX and most other unix-like systems: in HP-UX, you must always specify the hop count when adding or deleting gateways.

MK
MK
ACossa
Occasional Contributor

Re: Add new gateway

Thanks to U all my problem has been fixed.

AC