All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen and VLANs
@ 2005-01-24 19:32 Evan Bigall
  2005-01-24 20:16 ` David Becker
  2005-01-25  2:46 ` Fajar A. Nugraha
  0 siblings, 2 replies; 4+ messages in thread
From: Evan Bigall @ 2005-01-24 19:32 UTC (permalink / raw)
  To: xen-devel

I am using Xen 2.0 with Mandrake 10.1 based hosts and guests.

There seems to be some sort of issue with VLANs and MTUs?

My VMs have two nics, each connected to a separate bridge.

In Dom1, I do: 

vconfig add eth1 5
ip addr add 10.20.8.17/24 broadcast 10.20.8.255 dev eth1.5
ifconfig eth1.5 up

In Dom2, I do:

vconfig add eth1 5
ip addr add 10.20.8.18/24 broadcast 10.20.8.255 dev eth1.5
ifconfig eth1.5 up

Pinging from Dom2 to Dom1, packet sizes smaller than 1469 work, packet sizes of 1469 and larger just hang.

If I set the MTU on the interface down to 1450, I can then ping with any packet size.

Has any done any experimentation with VLANs on Xen?  A problem is that the bridge does not support VLANs but I'm trying to work around that in a variety of ways.

Evan



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Xen and VLANs
@ 2005-01-24 20:15 Ian Pratt
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Pratt @ 2005-01-24 20:15 UTC (permalink / raw)
  To: Evan Bigall, xen-devel

> I am using Xen 2.0 with Mandrake 10.1 based hosts and guests.
> 
> There seems to be some sort of issue with VLANs and MTUs?

The interface in your dom0 can't support the normal ethernet mtu because
of the VLAN headers. We need to add a way of allowing the backend vif to
signal this to the frontend so that the maximum MTU is adjusted
appropriately. 

This is already planned for Xen 3.0. For the moment, I'm afriad you'll
need to reduce the MTU manually in the guest.

Ian



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Xen and VLANs
  2005-01-24 19:32 Xen and VLANs Evan Bigall
@ 2005-01-24 20:16 ` David Becker
  2005-01-25  2:46 ` Fajar A. Nugraha
  1 sibling, 0 replies; 4+ messages in thread
From: David Becker @ 2005-01-24 20:16 UTC (permalink / raw)
  To: Evan Bigall; +Cc: xen-devel


" Pinging from Dom2 to Dom1, packet sizes smaller than 1469 work, packet 
" sizes of 1469 and larger just hang.

I'd guess the bridging doesn't account for the space used by the vlan tag.

" Has any done any experimentation with VLANs on Xen?

Yes, I did the vconfig in dom0 and attached the vlan interface to the
bridge.  This way no vlan tags go over the bridge.
If you really want to see the tags in xenU, this scheme will not help.
    dom0# vconfig eth0 145
    dom0# brctl xen-br0 addif eth0.145



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Xen and VLANs
  2005-01-24 19:32 Xen and VLANs Evan Bigall
  2005-01-24 20:16 ` David Becker
@ 2005-01-25  2:46 ` Fajar A. Nugraha
  1 sibling, 0 replies; 4+ messages in thread
From: Fajar A. Nugraha @ 2005-01-25  2:46 UTC (permalink / raw)
  To: xen-devel

Evan Bigall wrote:

> I am using Xen 2.0 with Mandrake 10.1 based hosts and guests.
>
> There seems to be some sort of issue with VLANs and MTUs?
>
Why bother use VLANS in dom-U?

> My VMs have two nics, each connected to a separate bridge.
>
> In Dom1, I do:
> vconfig add eth1 5
> ip addr add 10.20.8.17/24 broadcast 10.20.8.255 dev eth1.5
> ifconfig eth1.5 up
>
> In Dom2, I do:
>
> vconfig add eth1 5
> ip addr add 10.20.8.18/24 broadcast 10.20.8.255 dev eth1.5
> ifconfig eth1.5 up
>
> Pinging from Dom2 to Dom1, packet sizes smaller than 1469 work, packet 
> sizes of 1469 and larger just hang.
>
> If I set the MTU on the interface down to 1450, I can then ping with 
> any packet size.
>
> Has any done any experimentation with VLANs on Xen?  A problem is that 
> the bridge does not support VLANs but I'm trying to work around that 
> in a variety of ways.
>
I use bridge, setup VLANS on Domain-0, and bridge each eth0.x on 
Domain-0 to ethy on dom-U.
That way dom-U only sees eth0, eth1, eth2, and so on. It works flawlessly.

Regards,

Fajar


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-25  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-24 19:32 Xen and VLANs Evan Bigall
2005-01-24 20:16 ` David Becker
2005-01-25  2:46 ` Fajar A. Nugraha
  -- strict thread matches above, loose matches on Subject: below --
2005-01-24 20:15 Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.