View Single Post
  #1   (View Single Post)  
Old 29th April 2010
joostvgh joostvgh is offline
Port Guard
 
Join Date: Jan 2010
Posts: 38
Default ping: sendto: No route to host

I have searched google all about this but I can't find a solution.
I have a openbsd server, 2 nic's, pinging the internal network ips goes fine.

however pinging an external ip fails everytime, traceroute to it works, internet connection works, .. just the pinging fails.

# ping 195.238.2.21
PING 195.238.2.21 (195.238.2.21): 56 data bytes
ping: sendto: No route to host
ping: wrote 195.238.2.21 64 chars, ret=-1


# route get 195.238.2.21
route to: dnspool041.isp.belgacom.be
destination: default
mask: default
gateway: 192.168.0.1
interface: dc0
if address: 192.168.0.2
priority: 8 (static)
flags: <UP,GATEWAY,DONE,STATIC>
use mtu expire
4911464 0 0


# netstat -rn
Routing tables

Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default 192.168.0.1 UGS 1 4934551 - 8 dc0
127/8 127.0.0.1 UGRS 0 0 33200 8 lo0
127.0.0.1 127.0.0.1 UH 2 303 33200 4 lo0
192.168.0/24 link#2 UC 1 0 - 4 dc0
192.168.0.1 00:14:a9:7a:89:d3 UHLc 1 0 - 4 dc0
192.168.0.2 127.0.0.1 UGHS 0 0 33200 8 lo0
192.168.2/24 link#1 UC 21 0 - 4 rl0
....
....
....



Whats wrong then?
Reply With Quote