VirtualBox

Ticket #8769 (new defect)

Opened 3 years ago

Last modified 15 months ago

VLAN tagged packets mangled on bridged adapter

Reported by: kjotte Owned by:
Priority: major Component: network/hostif
Version: VirtualBox 4.0.6 Keywords: vlan network bridge
Cc: Guest type: other
Host type: Linux

Description

A guest that is bridged to a physical adapter on which VLAN tagged packets (ethertype 0x8100) are received, the packets arrive in the guest without the VLAN tag.

I will attach a Wireshark packet decode of a frame as seen from the host and the guest for review.

Attachments

vbox-tshark-wire.txt Download (3.5 KB) - added by kjotte 3 years ago.
Packet as seen on the wire at the host
vbox-tshark-guest.txt Download (3.3 KB) - added by kjotte 3 years ago.
Packet as seen within the guest
VBox.log Download (70.5 KB) - added by kjotte 3 years ago.
Log from Win7 VM seeing mangled packets

Change History

Changed 3 years ago by kjotte

Packet as seen on the wire at the host

Changed 3 years ago by kjotte

Packet as seen within the guest

comment:1 Changed 3 years ago by kjotte

I am also seeing this behavior when using a Host-only adapter that is a member of a Linux bridge.

comment:2 Changed 3 years ago by frank

  • Component changed from network to network/hostif

comment:3 Changed 3 years ago by frank

Did this work with an earlier version of VirtualBox?

comment:4 Changed 3 years ago by kjotte

I don't recall if I ever tried this under 3.2. Unfortunately I can't backrev this machine to test it out.

comment:5 Changed 3 years ago by klaus

Not 100% clear to me what the configuration of the NIC is. Is the card on the host configured to receive packets with a certain VLAN tag?

If it is then I'd say it's expected behavior (of the host OS) to strip the VLAN tag before it reaches the bridge.

comment:6 Changed 3 years ago by aleksey

kjotte,

Can you post the log? Is the problem still relevant?

comment:7 Changed 3 years ago by kjotte

I just tested with version 4.0.12 r72916 and am still seeing the problem.

VLAN tagging is functioning correctly to the OS, and I can use the Bridged adapter to a VLAN tagged interface (eg: eth0.2). My suspicion is something in the vbox filter code is mangling the packet before it gets passed to the guest.

What log(s) do you need to see?

comment:8 Changed 3 years ago by kjotte

After much tinkering, I seem to have found the problem. If any of the guests are set to use the Paravirtualized Network driver, this behavior is seen. If the guests are all configured to use something else (Intel, PCNet), then everything behaves correctly.

comment:9 Changed 3 years ago by kjotte

My apologies, I spoke to soon. I just experienced the behavior with two Intel guests. Back to the drawing board.

comment:10 Changed 3 years ago by aleksey

Please attach VBox.log from Logs subfolder located in VM folder. The same log can also be accessed via Machine->Show Log... menu item.

Changed 3 years ago by kjotte

Log from Win7 VM seeing mangled packets

comment:11 Changed 15 months ago by FredrikWendt

Adding myself as CC, having similar issues.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use