Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging a route/gateway problem

Status
Not open for further replies.

khayr

Technical User
May 8, 2003
7
CA
From a Solaris box, 10.13.5.212 I am trying to ping another box 192.168.31.42 but get this error:

ICMP Host Unreachable from gateway MyHost1 (10.13.5.212)
for icmp from MyHost1 (10.13.5.212) to 192.168.31.42

Any suggestions as to why this fails. Note, these machines could see each other prior to a power failure.

>cat /etc/gateways
route add 10.0.0.0 -netmask 255.0.0.0 10.13.4.1
>
>ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.13.5.212 netmask fffffc00 broadcast 10.13.7.255
 
Hi,

Check you router box routing table. Make sure it has enrty for 192.168.*network.

regards,
feroz
 
netstat -rn will show your local routing, I'll assume from your >>cat /etc/gateways
route add 10.0.0.0 -netmask 255.0.0.0 10.13.4.1

You obviously have no route from the 10. back to 192. network (localy anyway).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top