Virtual Machine can't PING with package size >=245 bytes

Discussions related to using VirtualBox on Windows hosts.
Post Reply
swish
Posts: 21
Joined: 10. Nov 2007, 14:45

Virtual Machine can't PING with package size >=245 bytes

Post by swish »

In a vm (WinXP SP2/VBox 2.2.0/NAT),I try ping a host addr 192.168.0.43 use follow command
ping 192.168.0.43 -n 1 -l 245
I found It reply a timeout message,so I try a ping to 10.0.2.2,I found if Package size >1472,seam error found,command is
ping 10.0.2.2 -n 1 -l 1473
I think this may be a bug in VBox 2.2,and I not test it in 2.1.4.
I comfirmed that bug with a vm ubuntu 9.04 with NAT,use follow command:
ping 192.168.0.1 -c 1 -s 245
ping 10.0.2.2 -c 1 -s 1473
the seam problem found.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Virtual Machine can't PING with package size >=245 bytes

Post by Sasquatch »

A ping does work with NAT, just not everything works properly. You will get a reply if you use a normal ping, but any additional parameters that make it change won't work. You change the packet size, and that won't work. Use Host Interface or Bridged instead.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply