Operating System - HP-UX
1745793 Members
3513 Online
108722 Solutions
New Discussion юеВ

route add Network is unreachable

 
Tariq Subra
Occasional Advisor

route add Network is unreachable

I can ping the gate way, but when I try to set-up an static route I get the following. However, seting up network range to it has no probelm. Here is a listing of what I get.

rhpweb01:/$ ping 192.168.200.6
PING 192.168.200.6: 64 byte packets
64 bytes from 192.168.200.6: icmp_seq=0. time=0. ms
64 bytes from 192.168.200.6: icmp_seq=1. time=0. ms
64 bytes from 192.168.200.6: icmp_seq=2. time=0. ms

----192.168.200.6 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
rhpweb01:/$
rhpweb01:/$ route add host 62.141.4.235 192.168.200.6
add host 62.141.4.235: gateway 192.168.200.6: Network is unreachable

Please note tried all combination of giving netmask etc.

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > networking. - Hp Forum Moderator

14 REPLIES 14
Chan 007
Honored Contributor

Re: route add Network is unreachable

have you tried 255.255.255.0 as netmask.

Also check you netstat -nr

if possible post it.

Try with count 2

Chan
Tariq Subra
Occasional Advisor

Re: route add Network is unreachable

Chan,
Thaks, but this will open the whole net range which would have severe result for other system. As I explained giving a net work range works. But not single host.
For example following works.
route add net 62.141.4.236 netmask 255.255.255.252 192.168.200.6
Rick Garland
Honored Contributor

Re: route add Network is unreachable

You can ping the gateway but is the gateway in your routing table?

The default gateway that is.

Should be a listing in your routing table with the UG flag. Do the netstat -nr to view.
Senthil Kumar .A_1
Honored Contributor

Re: route add Network is unreachable

Hi Tariq,

Could you post your current netstat -rn output in this query.

Regards
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Chan 007
Honored Contributor

Re: route add Network is unreachable

Enable with 255.255.255.0, in case if you have your 192.168.200.6 is your target host and router, then on that target hosts disbale ip forwarding using NDD.

Bit confusing isn't it..:-(

Chan
Tariq Subra
Occasional Advisor

Re: route add Network is unreachable


rhpweb01:/$ netstat -nr | grep default
default 192.168.200.1 UG 0 0 lan0 1500
rhpweb01:/$ netstat -nr | grep 62
62.141.4.236 192.168.200.6 UG 0 0 lan0 1500
rhpweb01:/$
Tariq Subra
Occasional Advisor

Re: route add Network is unreachable

Chan,
200.6 is not the target host. It is a gateway for 62.141.4 range. Which fowards to external router.
Chan 007
Honored Contributor

Re: route add Network is unreachable

Hi,

The suggestion is use a layer 3 switch or use firewall with NAT. That is the possible solution.

Where in layer 3 switch you can define what is the post which can send/route to which IP.

Chan
Chan 007
Honored Contributor

Re: route add Network is unreachable

Otherwise

Add an additonal lan card and use that for your routing users. There by this will be a seperate net. Only users who has access to your system will be able to work.

Note: In this case you have to disbale IP forwarding

Chan