On 2004-01-08, Alex Krowitz <(E-Mail Removed)> wrote:
> Would anyone know why ping returns "Destination unreachable", while
> traceroute seems to suceed? I thought traceroute used the same packet
> headers as ping
No, traceroute uses UDP with TTL set strategically, while ping uses two
ICMP messages (echo-request and echo-reply). It is not too uncommon for
some administrators to block echo-request, but they are usually dropped,
not responded with "Destination unreachable".
> ... Would anyone know why this ping is failing?
> [root@cannes root]# traceroute freedb.org
> traceroute to freedb.org (64.71.163.204), 30 hops max, 38 byte packets
> 1 fox (10.1.1.6) 1.157 ms 0.707 ms 0.690 ms
> 2 tnt02.wor.conversent.net (216.41.101.22) 163.941 ms 168.609 ms
....
> 12 freedb.org (64.71.163.204) 249.967 ms 249.636 ms 239.853 ms
> [root@cannes root]# ping freedb.org
> PING freedb.org (64.71.163.204) 56(84) bytes of data.
> From tnt02.wor.conversent.net (216.41.101.22) icmp_seq=1 Dest
> Unreachable, Bad Code: 9
> From tnt02.wor.conversent.net (216.41.101.22) icmp_seq=2 Dest
> Unreachable, Bad Code: 9
Lets see, I can ping it successfully, which means its not a fault at
their end (although the fault could have been temporary I suppose).
Since the error is being emitted from tnt02.war.conversent.net, which
is the first router outside of your network, I would suspect either
your ISP is blocking something (and doing a strange job of it), or
there is something peculiar at your end, such as not NATing everything.
The most troubling part is the "Bad Code: 9", as no ICMP message that
is documented in the ICMP RFC has a code value of 9, so find out what's
emitting that.
tcpdump -i <your_outside_iface> icmp
Ping freedb.org
If that doesn't show any information about the ICMP values, do this
tcpdump -w /tmp/icmp.pcap -i <your_outside_iface> icmp
Copy icmp.pcap to a machine with ethereal installed.
ethereal /tmp/icmp.pcap
However, since tnt02 is the next step out of your network, and you are
using a private network, make sure that you are using NAT, although the
fact that traceroute is working would seem to indicate that this is
working, as packets are making their way back to you.
PS. Does it make a difference which host/network you ping?
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!