VirtualBox

Opened 13 years ago

Closed 13 years ago

#8609 closed defect (fixed)

NAT incorrectly works with guest's with static-assigned IP addresses -> fixed in SVNand uses ARP announce mechanism.

Reported by: Francis Moreau Owned by:
Component: network/NAT Version: VirtualBox 4.0.4
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

Hello,

I'm using VBOX 4.0.2, with a Linux guest which is using NAT.

The guest can do ping, ping www.virtualbox.org works, but doing wget www.virtualbox.org doesn't work, wget application is waiting for the HTTP server answer.

I'm attaching the pcap file which logs the vbox network activity.

I'm also attaching the host tcpdump log.

Attachments (3)

VBox.log (48.1 KB ) - added by Francis Moreau 13 years ago.
VBox.log
linux.pcap (5.4 KB ) - added by Francis Moreau 13 years ago.
packet trace on the VM level when doing wget www.virtualbox.org
host.log (1.7 KB ) - added by Francis Moreau 13 years ago.
A tcpdump trace at the host level when doing wget www.virtualbox.org

Download all attachments as: .zip

Change History (14)

by Francis Moreau, 13 years ago

Attachment: VBox.log added

VBox.log

by Francis Moreau, 13 years ago

Attachment: linux.pcap added

packet trace on the VM level when doing wget www.virtualbox.org

by Francis Moreau, 13 years ago

Attachment: host.log added

A tcpdump trace at the host level when doing wget www.virtualbox.org

comment:1 by vasily Levchenko, 13 years ago

Summary: Linux Guest can't receive packetsNAT incorrectly works with guest's with self assigned IP addresses.

comment:2 by vasily Levchenko, 13 years ago

While conversation on IRC we've found that this guest uses static-assigned IP, which leads to broadcasting of all IP traffic, dropped by guest TCP/IP stack.

comment:3 by vasily Levchenko, 13 years ago

Version: VirtualBox 4.0.2VirtualBox 4.0.4

comment:4 by vasily Levchenko, 13 years ago

And I was able to reproduce issue locally.

comment:5 by vasily Levchenko, 13 years ago

Summary: NAT incorrectly works with guest's with self assigned IP addresses.NAT incorrectly works with guest's with static-assigned IP addresses and uses ARP announce mechanism.

comment:6 by vasily Levchenko, 13 years ago

Affected guests use ARP announce mechanism only.

comment:7 by vasily Levchenko, 13 years ago

Summary: NAT incorrectly works with guest's with static-assigned IP addresses and uses ARP announce mechanism.NAT incorrectly works with guest's with static-assigned IP addresses -> fixed in SVNand uses ARP announce mechanism.

comment:8 by vasily Levchenko, 13 years ago

Some distros like Mandriva executes arping -U and arping -A in case of statically assigned IP in ethernet initialization scripts, that results that guest generates Gratuitous ARP packets, without respect to sysctl *.arp_notify.

in reply to:  7 comment:9 by Francis Moreau, 13 years ago

Replying to Hachiman:

BTW, I'm wondering what was going on on the NAT side: does it incorreclty set an entry in the ARP table for the guest to broadcast ethernet address, or does it add no entry at all ?

Thanks

comment:10 by vasily Levchenko, 13 years ago

It's used not right fields: in case ARP Gratuitous requests and response source IP and Ether are the same, but target pair is different in one case it's exactly copy of source ones, and in other target broadcast ethernet and source IP; that made collision in mandriva case. Now we use source pair and in case of any type of announce (arping or arp_notify) we print result to the log. Probably we should add some logging for statically address assigned guests without notification for information.

comment:11 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use