Hi all. What is the canonical way of getting xen to fully work with 802.1q (vlans) ? After (re)searching i found many ways but so far none is working. platform is gentoo (x86/32) and netwerk card a tg3. xen is v3. my config is as follows ... eth0 is simply up (with no ip) and i created several eth0.x interfaces corresponding to several vlans. eth0.10 is de ''default'' vlan (i.e. default gw). what i want is a way of each DomU connect to the world thru it''s vlan bridge. for instance ... for a domU i defined bridge=xenbr0.10. and in /etc/xen/xend-config.sxp i defined (network-script my-network-scripts) contents of /etc/xen/scripts/my-network-scripts bellow #!/bin/sh set -x dir=$(dirname "$0") "$dir/network-bridge" vifnum=0.25 start brctl addif xenbr0.25 eth0.25 "$dir/network-bridge" vifnum=0.10 start brctl addif xenbr0.10 eth0.10 --x-- but i allways get an error saying that i need to increase the number loopbacks because i have reached the limit. Fact is that the limit is way higher ''cause i increased it (sucessfully) to... 100. What am i doing wrong ? Many Thanxs in advance Best Regards M. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Same problem here in debian sarge, and xen V3. Stuck ! On 12/15/05, Manuel da Costa <datashark@gmail.com> wrote:> Hi all. > > > What is the canonical way of getting xen to fully work with 802.1q (vlans) ? > After (re)searching i found many ways but so far none is working. > > platform is gentoo (x86/32) and netwerk card a tg3. xen is v3. > > my config is as follows ... > > eth0 is simply up (with no ip) and i created several eth0.x interfaces > corresponding to several vlans. > eth0.10 is de 'default' vlan (i.e. default gw). > > what i want is a way of each DomU connect to the world thru it's vlan > bridge. > > for instance ... for a domU i defined bridge=xenbr0.10. and in > /etc/xen/xend-config.sxp i defined > > (network-script my-network-scripts) > > > contents of /etc/xen/scripts/my-network-scripts bellow > > #!/bin/sh > set -x > dir=$(dirname "$0") > "$dir/network-bridge" vifnum=0.25 start > brctl addif xenbr0.25 eth0.25 > "$dir/network-bridge" vifnum=0.10 start > brctl addif xenbr0.10 eth0.10 > --x-- > > but i allways get an error saying that i need to increase the number > loopbacks because i have reached the limit. Fact is that the limit is way > higher 'cause i increased it (sucessfully) to... 100. > > What am i doing wrong ? > > > Many Thanxs in advance > > Best Regards > > M. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I think it should be sufficient to do as following: > > - create and test the vlans as normal (i think you already did this) > - try to create the bridge as follows (for the first try > without starting xend): > > # network-bridge start netdev=vlan100 bridge=xenbr0 > > at least this was working on my debian testing installation > but i have a problem now with incorrect tcp checksums in dom0 or domU. > See my post: > http://lists.xensource.com/archives/html/xen-users/2005-12/msg > 00412.htmlYou should be able to use ethtool on the vif''s to disable checksum offload, which is likely getting confused by the vlan headers. It would be good to get this entered on bugzilla just for the record. Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users