Ticket #1247 (closed defect: fixed)
ping doesn't work with NAT network interfaces
|Reported by:||bvassche||Owned by:|
Run a Windows XP guest on a Linux host, and configure the network interface as NAT. In the guest, run a ping command to a live host.
Expected: Windows guest reports that the host is alive.
Actual result: Windows guest reports that the request timed out.
Technical background: VirtualBox NAT translates the outgoing ICMP request in an UDP echo request (port 7). If the echo service is not enabled on this host (which is e.g. the case on OpenSolaris servers), that host will send back an ICMP error (destination unreachable). VirtualBox does not translate this ICMP error into an ICMP response for the guest. This can be easily verified by running Wireshark simultaneously on the guest OS and on the host OS.