[vbox-dev] VLAN-Tagging on virtio_net linux guest / linux host

Stephan von Krawczynski skraw at ithnet.com
Tue May 14 12:52:23 GMT 2013


Hello Aleksey,

thank you for jumping in.
The base problem may be that there is no documentation at all how the host
should be configured regarding the vlans. My current setup is this (all linux):

Host has 4 interfaces with standard IPs.

Guest has three interfaces linked via bridge to 3 of the hosts interfaces.
Guest should be able to use one of this as normal interface as well as use
several 802.1Q VLANs on top of it.

Lets assume guests' interface is named eth1. 
So we are configuring some IP on it:
	ip addr add 192.168.1.33/24 dev eth1.
Then we create one vlan to test:
	vconfig add eth1 29
And add IP:
	ip addr add 192.168.2.8/28 dev eth1.29

Now we try to ping some remote host on this vlan:
	ping 192.168.2.5
Nothing happens, packets are lost somewhere.
But standard network works:
	ping 192.168.1.35
works, remote hosts answers.

If we do the very same thing on a physical host on the same network place,
everything is ok.
We tried to give the guest e1000, pcnet32 or virtio-net device types, all act
the same. 
Do we have to configure the vlan on the host side as well? Our expectation was
that this should not be needed in a bridge setup...
-- 
Regards,
Stephan



On Tue, 14 May 2013 15:50:59 +0400
Aleksey Ilyushin <aleksey.ilyushin at oracle.com> wrote:

> Hello Stephan,
> 
> Please elaborate on your network setup. What exactly is not working as expected? There was a problem with VLAN tag offloading in e1000, but it was fixed in 4.2. Both virtio-net and PCNet do not touch VLAN tags at all, these are processed by guests. Or is this a problem and you need VLAN tag offloading for virtio-net?
> 
> Regards,
> Aleksey
> 
> On May 14, 2013, at 2:32 PM, Stephan von Krawczynski wrote:
> 
> > Hello all,
> > 
> > is there a chance to get 802.1Q VLANs working "as expected" on linux guests? I
> > tried all network adapter types for the guest but none worked. Someone on the
> > user-list told me that there may be a general problem with the packet length
> > in forwarding.
> > Indeed this topic is a lot more important for us than the former discussion
> > about the network performance and multiqueuing. Is there currently a solution?
> > Will there be one in the future? A solution based on the virtio_net guest
> > device would be sufficient for us.
> > Can we help somehow?
> > -- 
> > Regards,
> > Stephan
> > 
> > _______________________________________________
> > vbox-dev mailing list
> > vbox-dev at virtualbox.org
> > https://www.virtualbox.org/mailman/listinfo/vbox-dev
> 
> 
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> https://www.virtualbox.org/mailman/listinfo/vbox-dev
> 




More information about the vbox-dev mailing list