Tomasz Chmielewski
2007-Feb-02 11:49 UTC
[Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
I have a strange issue with trying to use VLANs on a server with e100 cards (Intel Ethernet Pro 100). After I start the "network-bridge" script, VLANs simply do not work anymore: dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 "$dir/network-bridge" "$@" vifnum=1 netdev=eth0.100 bridge=xenbr100 "$dir/network-bridge" "$@" vifnum=2 netdev=eth0.200 bridge=xenbr200 When I replace the card to the one using e1000 or tg3 driver, VLANs work correctly (however, I have more servers with e100 network interfaces onboard, where I''d like to use Xen). Any clues on why VLANs don''t work anymore with Intel Ethernet Pro 100 card when I start the "network-bridge" script? -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo
2007-Feb-02 12:02 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007 12:49, Tomasz Chmielewski wrote:> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > "$dir/network-bridge" "$@" vifnum=1 netdev=eth0.100 bridge=xenbr100 > "$dir/network-bridge" "$@" vifnum=2 netdev=eth0.200 bridge=xenbr200maybe you can check it manually: set network script to false, and create manually the bridge. one note: as i posted before, to work correctly all the bridge in your config, you MUST have (renamed in square): (p)eth0 -> xenbr0 -> eth0 (dom0) \- vconfig add eth0 100 - (p)eth0.100 -> xenbr0.100 -> eth0.100 (dom0) \- vconfig add eth0 100 - (p)eth0.100 -> xenbr0.200 -> eth0.200 (dom0) this is a bridge bug (or feature). bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Javier Guerra
2007-Feb-02 12:05 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007, Tomasz Chmielewski wrote:> Any clues on why VLANs don''t work anymore with Intel Ethernet Pro 100 > card when I start the "network-bridge" script?for VLANs it''s very convenient to use an MTU of 1504 on the ethx device (and 1500 on the vlanxx devices). but most 100mbit drivers don''t allow any MTU of more than 1500 (even if the cards themselves usually allow at least 1600). all Gb drivers i know allow for MTUs up to 9000 but i don''t know if your scripts try to setup the MTU to 1504... might be something else -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 12:15 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Daniele Palumbo wrote:> On Friday 02 February 2007 12:49, Tomasz Chmielewski wrote: >> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 >> "$dir/network-bridge" "$@" vifnum=1 netdev=eth0.100 bridge=xenbr100 >> "$dir/network-bridge" "$@" vifnum=2 netdev=eth0.200 bridge=xenbr200 > > maybe you can check it manually: > set network script to false, and create manually the bridge.Hmm, how do I do it? I noticed that VLANs won''t work with yet another 100 Mbit network card: Realtek 8139 (8139too module). e100 and 8139too have something MTU-related - setting MTU higher than 1500 is impossible: # ifconfig eth0 mtu 1501 SIOCSIFMTU: Invalid argument With e1000 card, I can set a higher MTU without problems. However, lowering MTU for eth0/VLANs doesn''t make any difference. -- Tomasz Chmielewski _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 12:22 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Javier Guerra wrote:> On Friday 02 February 2007, Tomasz Chmielewski wrote: >> Any clues on why VLANs don''t work anymore with Intel Ethernet Pro 100 >> card when I start the "network-bridge" script? > > for VLANs it''s very convenient to use an MTU of 1504 on the ethx device (and > 1500 on the vlanxx devices). but most 100mbit drivers don''t allow any MTU of > more than 1500 (even if the cards themselves usually allow at least 1600). > all Gb drivers i know allow for MTUs up to 9000 > > but i don''t know if your scripts try to setup the MTU to 1504... might be > something elseYes, these 100 Mbit cards don''t support MTU higher than 1500 (I have this issue with Intel/e100 and Realtek/8139too cards; with 1 Gbit cards everything works flawlessly). So I tried to setup VLANs (eth0.xxx) MTU to 1496, then to 1450, and it made no difference - still doesn''t work. -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo
2007-Feb-02 13:02 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007 13:15, Tomasz Chmielewski wrote:> > set network script to false, and create manually the bridge. > Hmm, how do I do it?move mac from eth0 to veth0, set eth0 mac FF:FE:FF:FF:FF:FF (if i remeber correctly, check for peth0 mac) ifconfig eth0 up brctl addbr xenbr0 [brctl stp off, sethello 0, setfd 0, man brctl] brctl addif xenbr0 eth0 brctl addif xenbr0 veth0 ifconfig veth0 up vconfig add veth0 100 vconfig add veth0 200 ifconfig veth0.100 up ifconfig veth0.200 up [return to brctl, use your imagination]> e100 and 8139too have something MTU-related - setting MTU higher than > 1500 is impossible: > # ifconfig eth0 mtu 1501 > SIOCSIFMTU: Invalid argumentthis can be normal, check if the driver support jumbo frame.> With e1000 card, I can set a higher MTU without problems.for sure, e1000 support jumbo frame.> However, lowering MTU for eth0/VLANs doesn''t make any difference.that is not the right way. uh, you can check also for "tx checksumming" (list are full of this). bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 13:13 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Daniele Palumbo wrote: (...)>> However, lowering MTU for eth0/VLANs doesn''t make any difference. > > that is not the right way. > > uh, you can check also for "tx checksumming" (list are full of this).It was rather about disabling tx checksumming for domU domains. And at least pings went through; in my case, even a smallest ping (-s 100 or so) will not get through. But disabling it here for dom0 also makes no difference - still, on two different 100 Mbit cards I tried (Intel e100 and Realtek 8139), VLANs don''t work with Xen (and work perfectly fine with 1 Gbit cards). -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski wrote:> But disabling it here for dom0 also makes no difference - still, on two > different 100 Mbit cards I tried (Intel e100 and Realtek 8139), VLANs > don''t work with Xen (and work perfectly fine with 1 Gbit cards).the following setup works prefectly for me: peth0 ----|----- | peth0.10 | | vif0.0 | | vif1.0 |----Domain-U ---------- Domain-0 # ip l s peth0 mtu 1496 Domain-U # ip l s eth0 mtu 1496 Greetings, -timo -- Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731 PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Timo Benk wrote:> Tomasz Chmielewski wrote: >> But disabling it here for dom0 also makes no difference - still, on two >> different 100 Mbit cards I tried (Intel e100 and Realtek 8139), VLANs >> don''t work with Xen (and work perfectly fine with 1 Gbit cards). > the following setup works prefectly for me: > > peth0 > ----|----- > | peth0.10 | > | vif0.0 | > | vif1.0 |----Domain-U > ---------- > > Domain-0 # ip l s peth0 mtu 1496 > > Domain-U # ip l s eth0 mtu 1496 > > Greetings, > -timoSorry, my mistake: peth0 ----|----- | peth0.10 | | vif0.0 | | vif1.0 |----Domain-U ---------- Domain-0 # ip l s eth0 mtu 1496 ^^^^ Domain-U # ip l s eth0 mtu 1496 -- Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731 PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 14:35 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Timo Benk wrote: (...)> Sorry, my mistake: > > peth0 > ----|----- > | peth0.10 | > | vif0.0 | > | vif1.0 |----Domain-U > ---------- > > Domain-0 # ip l s eth0 mtu 1496 > ^^^^ > Domain-U # ip l s eth0 mtu 14961) do you have a 100 Mbit network card? if so, which one? 2) could you paste the scripts you use to start the bridge (if you don''t use the standard scripts provided with Xen or made some changes)? Still, it does not work for me. -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski wrote:> Timo Benk wrote: > > (...) > >> Sorry, my mistake: >> >> peth0 >> ----|----- >> | peth0.10 | >> | vif0.0 | >> | vif1.0 |----Domain-U >> ---------- >> >> Domain-0 # ip l s eth0 mtu 1496 >> ^^^^ >> Domain-U # ip l s eth0 mtu 1496 > > 1) do you have a 100 Mbit network card? if so, which one? > > 2) could you paste the scripts you use to start the bridge (if you don''t > use the standard scripts provided with Xen or made some changes)? > > > Still, it does not work for me.Network card: 03:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02) Module: e100 Script: #/bin/bash brctl delif xenbr0 peth0 brctl delif xenbr0 vif0.0 ip l s xenbr0 down brctl delbr xenbr0 brctl addbr vlan10 brctl addbr vlan20 brctl addbr vlan30 ip l s vlan10 up ip l s vlan20 up ip l s vlan30 up modprobe 8021q vconfig add peth0 10 vconfig add peth0 20 vconfig add peth0 30 ip l s peth0.10 up ip l s peth0.20 up ip l s peth0.30 up brctl addif vlan10 peth0.10 brctl addif vlan10 vif0.0 ip l s eth0 mtu 1496 Additionally, it is necessary for me to set the MTU inside the Domain-U to 1496. xendom1~ # ip l s eth0 mtu 1492 Greetings, -timo -- Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731 PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 15:04 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Timo Benk wrote: (...)> Script: > > #/bin/bash > > brctl delif xenbr0 peth0 > brctl delif xenbr0 vif0.0 > > ip l s xenbr0 down > brctl delbr xenbr0 > > brctl addbr vlan10 > brctl addbr vlan20 > brctl addbr vlan30 > ip l s vlan10 up > ip l s vlan20 up > ip l s vlan30 up > > modprobe 8021q > vconfig add peth0 10 > vconfig add peth0 20 > vconfig add peth0 30 > ip l s peth0.10 up > ip l s peth0.20 up > ip l s peth0.30 up > > brctl addif vlan10 peth0.10 > brctl addif vlan10 vif0.0 > > ip l s eth0 mtu 1496Hmm, you sure you didn''t change anything / pasted the whole script? # /etc/init.d/xend start # (empty network-script) # bash -x script.vlans + brctl delif xenbr0 peth0 interface peth0 does not exist! + brctl delif xenbr0 vif0.0 interface vif0.0 does not exist! + ip l s xenbr0 down SIOCGIFFLAGS: No such device + brctl delbr xenbr0 bridge xenbr0 doesn''t exist; can''t delete it + brctl addbr vlan10 + brctl addbr vlan20 + brctl addbr vlan30 + ip l s vlan10 up + ip l s vlan20 up + ip l s vlan30 up + modprobe 8021q + vconfig add peth0 10 ERROR: trying to add VLAN #10 to IF -:peth0:- error: Invalid argument + vconfig add peth0 20 ERROR: trying to add VLAN #20 to IF -:peth0:- error: Invalid argument + vconfig add peth0 30 ERROR: trying to add VLAN #30 to IF -:peth0:- error: Invalid argument + ip l s peth0.10 up SIOCGIFFLAGS: No such device + ip l s peth0.20 up SIOCGIFFLAGS: No such device + ip l s peth0.30 up SIOCGIFFLAGS: No such device + brctl addif vlan10 peth0.10 interface peth0.10 does not exist! + brctl addif vlan10 vif0.0 + ip l s eth0 mtu 1496> Additionally, it is necessary for me to set the MTU inside the Domain-U to > 1496. > > xendom1~ # ip l s eth0 mtu 1492Question: do you set up VLANs in domU as well? I hope not, this is a wrong approach to VLANs. -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo
2007-Feb-02 15:09 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007 15:46, Timo Benk wrote:> Additionally, it is necessary for me to set the MTU inside the Domain-U to > 1496.with tg3, bnx2, 3c59x is not necessary. i think that it is not necessary at all, if you use xen > 3.0.2. in 3.0.2 there was an upper limit in MTU, in both front and back driver. there is also a patch (find my post). BTW, changing MTU to 1492 is not IMHO a good way to workaround. bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo wrote:> On Friday 02 February 2007 15:46, Timo Benk wrote: >> Additionally, it is necessary for me to set the MTU inside the Domain-U to >> 1496. > > with tg3, bnx2, 3c59x is not necessary. > i think that it is not necessary at all, if you use xen > 3.0.2. > in 3.0.2 there was an upper limit in MTU, in both front and back driver.Hm, i am using 3.0.4-1 and for me it is still necessary.> BTW, changing MTU to 1492 is not IMHO a good way to workaround.Why? Greetings, -timo -- Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731 PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski wrote:> Timo Benk wrote: > > (...) > >> Script: >> >> #/bin/bash >> >> brctl delif xenbr0 peth0 >> brctl delif xenbr0 vif0.0 >> >> ip l s xenbr0 down >> brctl delbr xenbr0 >> >> brctl addbr vlan10 >> brctl addbr vlan20 >> brctl addbr vlan30 >> ip l s vlan10 up >> ip l s vlan20 up >> ip l s vlan30 up >> >> modprobe 8021q >> vconfig add peth0 10 >> vconfig add peth0 20 >> vconfig add peth0 30 >> ip l s peth0.10 up >> ip l s peth0.20 up >> ip l s peth0.30 up >> >> brctl addif vlan10 peth0.10 >> brctl addif vlan10 vif0.0 >> >> ip l s eth0 mtu 1496 > > Hmm, you sure you didn''t change anything / pasted the whole script? > > # /etc/init.d/xend start # (empty network-script) > # bash -x script.vlans > + brctl delif xenbr0 peth0 > interface peth0 does not exist! > + brctl delif xenbr0 vif0.0 > interface vif0.0 does not exist! > + ip l s xenbr0 down > SIOCGIFFLAGS: No such deviceOf course this script assumes that there is already a bridge set up inside Domain-0, Default bridge xenbr0 with two interfaces vif0.0 and peth0. That explains the errors.> Question: do you set up VLANs in domU as well? I hope not, this is a > wrong approach to VLANs.No vlan setup inside the domSs. Just the MTU was changed in the Domains. Greetings, -timo -- Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731 PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 15:13 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Daniele Palumbo wrote:> On Friday 02 February 2007 15:46, Timo Benk wrote: >> Additionally, it is necessary for me to set the MTU inside the Domain-U to >> 1496. > > with tg3, bnx2, 3c59x is not necessary. > i think that it is not necessary at all, if you use xen > 3.0.2. > in 3.0.2 there was an upper limit in MTU, in both front and back driver.I use Xen 3.0.4.> there is also a patch (find my post). > BTW, changing MTU to 1492 is not IMHO a good way to workaround.Which doesn''t work for me on 100 Mbit cards (1 Gbit cards don''t need any workarounds). Which leads me to a question: those for whom VLANs work with 100 Mbit cards - do you set it up in dom0, or in domU? Setting up a VLAN in domU is a wrong approach. VLANs should be configured only in dom0, and should work transparently for domUs (which works for me with 1 Gbit cards, but not with 100 Mbit cards). -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo
2007-Feb-02 15:14 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007 16:04, Tomasz Chmielewski wrote:> + vconfig add peth0 10 > ERROR: trying to add VLAN #10 to IF -:peth0:- error: Invalid argument > + vconfig add peth0 20 > ERROR: trying to add VLAN #20 to IF -:peth0:- error: Invalid argument > + vconfig add peth0 30 > ERROR: trying to add VLAN #30 to IF -:peth0:- error: Invalid argument > + ip l s peth0.10 upi will repeat it. if you add a vlan to peth0 (whole interface), the bridge xenbr0 (whole interface) will stop working. at least, it does for me. if it works for you, please let me know. bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo wrote:> On Friday 02 February 2007 16:04, Tomasz Chmielewski wrote: >> + vconfig add peth0 10 >> ERROR: trying to add VLAN #10 to IF -:peth0:- error: Invalid argument >> + vconfig add peth0 20 >> ERROR: trying to add VLAN #20 to IF -:peth0:- error: Invalid argument >> + vconfig add peth0 30 >> ERROR: trying to add VLAN #30 to IF -:peth0:- error: Invalid argument >> + ip l s peth0.10 up > > i will repeat it. > if you add a vlan to peth0 (whole interface), the bridge xenbr0 (whole > interface) will stop working. > at least, it does for me.Yes, for sure. Seems for me that you did not have a peth0 Interface. Configure the default bridged setup and try the script again. If it is still not working for you, i cannot help you any more. Anything i can say is, the described setup works for me. Greetings, -timo -- Timo Benk - Jabber ID: fry@downtempo.de - ICQ ID: #414944731 PGP Public Key: http://m28s01.vlinux.de/timo_benk_gpg_key.asc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo
2007-Feb-02 15:20 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007 16:11, Timo Benk wrote:> > in 3.0.2 there was an upper limit in MTU, in both front and back driver. > Hm, i am using 3.0.4-1 and for me it is still necessary.strange. maybe you have a driver limit in e100, but it should not be as long as it support vlans.> > BTW, changing MTU to 1492 is not IMHO a good way to workaround. > Why?well, your switch (apart from some switch) suppose that you have 1500 byte of mtu. and all machine in your lan suppose it. you will have fragmentation your packet, if you are luckie, and maybe sometimes you will lose big packets (at least, i did). ok, that should not be in theory, but in real world it is something like weird. bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniele Palumbo
2007-Feb-02 15:24 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
On Friday 02 February 2007 16:13, Tomasz Chmielewski wrote:> Which leads me to a question: those for whom VLANs work with 100 Mbit > cardsmaybe you can ask it to xen-devel. but i guess that they will say "hey, do you still use 100 mbit network?" (i must say that i will never use a 100 mbit in producion, you can buy for 20$ an e1000 on ebay...)> do you set it up in dom0, or in domU?both (see below).> Setting up a VLAN in domU is a wrong approach.i agree, except for some applications. we have 4 labs, and we must configure some machine with an ip on all the labs (they are on different network). that are trusted machine, so it is a good way to setup it directly in domU. but generally speaking, yes, it is bad. bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 15:39 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Daniele Palumbo wrote:> On Friday 02 February 2007 16:13, Tomasz Chmielewski wrote: >> Which leads me to a question: those for whom VLANs work with 100 Mbit >> cards > > maybe you can ask it to xen-devel. > but i guess that they will say "hey, do you still use 100 mbit network?" (i > must say that i will never use a 100 mbit in producion, you can buy for 20$ > an e1000 on ebay...)We run our Xen servers and backup Xen servers on 1 Gbit network. All data is stored on NAS/SAN devices. If all Xen servers and Xen backup servers fail, we want to be able to start a "second backup servers", booted off a tftp. So a Xen server cat be booted off pxe/tftp on any machine with a network card and enough RAM, but I noticed, that VLANs don''t work on machines with 100 Mbit cards. Which is strange to me, as VLANs goes in pair with virtualization. -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas von Steiger
2007-Feb-02 19:35 UTC
AW: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
I think your network adapter has no support for IEEE 802.1Q VLAN Tagging You need a network adapter with IEEE 802.1Q VLAN Tagging support Thomas -----Ursprüngliche Nachricht----- Von: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] Im Auftrag von Tomasz Chmielewski Gesendet: Freitag, 2. Februar 2007 13:22 An: Javier Guerra Cc: xen-users@lists.xensource.com Betreff: Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work? Javier Guerra wrote:> On Friday 02 February 2007, Tomasz Chmielewski wrote: >> Any clues on why VLANs don''t work anymore with Intel Ethernet Pro 100 >> card when I start the "network-bridge" script? > > for VLANs it''s very convenient to use an MTU of 1504 on the ethx device(and> 1500 on the vlanxx devices). but most 100mbit drivers don''t allow any MTUof> more than 1500 (even if the cards themselves usually allow at least 1600).> all Gb drivers i know allow for MTUs up to 9000 > > but i don''t know if your scripts try to setup the MTU to 1504... might be > something elseYes, these 100 Mbit cards don''t support MTU higher than 1500 (I have this issue with Intel/e100 and Realtek/8139too cards; with 1 Gbit cards everything works flawlessly). So I tried to setup VLANs (eth0.xxx) MTU to 1496, then to 1450, and it made no difference - still doesn''t work. -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 01.02.2007 14:28 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 01.02.2007 14:28 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-02 19:49 UTC
Re: AW: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work?
Thomas von Steiger wrote:> I think your network adapter has no support for IEEE 802.1Q VLAN Tagging > You need a network adapter with IEEE 802.1Q VLAN Tagging supportIt has. Intel Ethernet Pro 100 (e100) and Realtek 8139 (8139too) support VLAN. VLANs work fine when I have 100 Mbit card as long as I don''t start "network-bridge" script. When I have a 1 Gbit card, VLANs works fine before and after starting "network-bridge" script (same system, same hardware, only network cards changed). -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-07 15:16 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work [SOLVED]?
Timo Benk wrote: (...)>> if you add a vlan to peth0 (whole interface), the bridge xenbr0 (whole >> interface) will stop working. >> at least, it does for me. > > Yes, for sure. Seems for me that you did not have a peth0 Interface. > > Configure the default bridged setup and try the script again. > > If it is still not working for you, i cannot help you any more. > > Anything i can say is, the described setup works for me.All right, finally I found where the problem is. In the end, it looks like your scripts do pretty much the same what the default Xen "network-bridge" script does. VLANs work for me on 100 Mbit cards if I *only* use VLAN-tagged interfaces for Xen networking (these scripts achieve more or less what your scripts): network-bridge start vifnum=1 netdev=eth0.100 bridge=xenbr100 network-bridge start vifnum=2 netdev=eth0.200 bridge=xenbr200 network-bridge start vifnum=3 netdev=eth0.300 bridge=xenbr300 However, I want to use normal, non-tagged networking, too: network-bridge start vifnum=0 netdev=eth0 bridge=xenbr0 After starting the bridge for eth0/xenbr0, VLANs don''t work anymore. With 1 Gbit cards, I don''t have this problem, and I can use a bridge with eth0. To sum up - I could: 1) 100 Mbit cards + Xen - simultaneously: - can use domains with VLANs - can not use domains without VLANs or: - can not use domains with VLANs - can use domains without VLANs 2) 1 Gbit cards + Xen - can use both VLAN and non-VLAN networking with guest domains The solution was: * Do not start a bridge (like xenbr0) for eth0: #network-bridge start vifnum=0 netdev=eth0 bridge=xenbr0 * Do *not* specify a bridge in configuration of domains that don''t use VLANs: - this one works: vif = [ ''ip=192.168.151.21, mac=00:16:3E:5B:19:14'' ] - this one will fail: vif = [ ''ip=192.168.151.21, mac=00:16:3E:5B:19:14'', bridge=''xenbr0'' ] -- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tomasz Chmielewski
2007-Feb-07 16:22 UTC
Re: [Xen-users] e100 + Xen + VLAN -> VLANs don''t work [SOLVED]?
Tomasz Chmielewski wrote: Correction, this still applies:> To sum up - I could: > > 1) 100 Mbit cards + Xen - simultaneously: > > - can use domains with VLANs > - can not use domains without VLANs > > or: > > - can not use domains with VLANs > - can use domains without VLANs > > > 2) 1 Gbit cards + Xen > > - can use both VLAN and non-VLAN networking with guest domains-- Tomasz Chmielewski http://wpkg.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users