Operating System - HP-UX
1847858 Members
2726 Online
104021 Solutions
New Discussion

Network unreachable when adding default route

 
SOLVED
Go to solution
S.C. Fun
Advisor

Network unreachable when adding default route

When I run
"route add default 150.150.7.25"
at a workstation, it says
"add net default: gateway 150.150.7.25: Network is unreachable".
But obviously, I could ping 150.150.7.25 from my workstation (IP=150.150.7.2 / 255.255.0.0). What do u think is the problem?

IP Config. at 150.150.7.25:
lan0: 150.150.7.25 255.255.0.0
lan1:192.1.1.1 255.255.255.0
2 REPLIES 2
Wieslaw Krajewski
Honored Contributor

Re: Network unreachable when adding default route

Hi,

Try

route add default 150.150.7.25 1

Rgds

Permanent training makes master
Juan González
Trusted Contributor
Solution

Re: Network unreachable when adding default route

Hi,
If you don`t specify the count parameter route will assume that is zero, A count of zero means that the gateway is the localhost. If the route leads to a destination trough a remote gateway, count should be greater than 0.

So, try
#route add default 150.150.7.25 1

Best regards
Juan Gonzalez