Gary W. Smith
2007-Sep-17 02:23 UTC
[Xen-users] how to use eth2 instead of eth0 for bridge
I have a machine that I added a 1GB card to it, and it has onboard eth0/1. What''s the easiest way to tweak Xen to use eth2 for all bridging instead of eth0? Would I just override the line in the vif-common.sh where it says -eth0? -Gary _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gary W. Smith
2007-Sep-17 02:32 UTC
RE: [Xen-users] how to use eth2 instead of eth0 for bridge
> > I have a machine that I added a 1GB card to it, and it has onboard > eth0/1. What''s the easiest way to tweak Xen to use eth2 for all > bridging instead of eth0? > > Would I just override the line in the vif-common.sh where it says - > eth0? >It looks like it''s automatically derived from the interface that holds the default gateway, so I guess that it''s a mood point to change anything. It should work automatically. Can someone confirm this? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fischer, Anna
2007-Sep-17 06:06 UTC
RE: [Xen-users] how to use eth2 instead of eth0 for bridge
> I have a machine that I added a 1GB card to it, and it has > onboard eth0/1. What''s the easiest way to tweak Xen to use > eth2 for all bridging instead of eth0? > > Would I just override the line in the vif-common.sh where it > says -eth0? > > -GaryJust change your xend-config.sxp like this: (network-script ''network-bridge netdev=eth2'') _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gary W. Smith
2007-Sep-17 06:45 UTC
RE: [Xen-users] how to use eth2 instead of eth0 for bridge
Thanks. I''ll try it. -Gary> -----Original Message----- > From: xen-users-bounces@lists.xensource.com [mailto:xen-users- > bounces@lists.xensource.com] On Behalf Of Fischer, Anna > Sent: Sunday, September 16, 2007 11:06 PM > To: Gary W. Smith > Cc: xen-users@lists.xensource.com > Subject: RE: [Xen-users] how to use eth2 instead of eth0 for bridge > > > I have a machine that I added a 1GB card to it, and it has > > onboard eth0/1. What''s the easiest way to tweak Xen to use > > eth2 for all bridging instead of eth0? > > > > Would I just override the line in the vif-common.sh where it > > says -eth0? > > > > -Gary > > Just change your xend-config.sxp like this: > > (network-script ''network-bridge netdev=eth2'') > > > _______________________________________________ > 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
Artur Linhart - Linux communication
2007-Sep-17 15:09 UTC
RE: [Xen-users] how to use eth2 instead of eth0 for bridge
Hi, But as far as I know even having 1GBit network card, the communication of the guests (at least with HVM guests) will still ahve only 100 MBis, is it right? At least on Xen 3.1.0 this is so.. Does anybody know if it is a different situation by the paravirtual hosts? Can be somehow improved the network traffic for HVM hosts? -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Gary W. Smith Sent: Monday, September 17, 2007 8:46 AM To: Fischer, Anna Cc: xen-users@lists.xensource.com Subject: RE: [Xen-users] how to use eth2 instead of eth0 for bridge Thanks. I''ll try it. -Gary> -----Original Message----- > From: xen-users-bounces@lists.xensource.com [mailto:xen-users- > bounces@lists.xensource.com] On Behalf Of Fischer, Anna > Sent: Sunday, September 16, 2007 11:06 PM > To: Gary W. Smith > Cc: xen-users@lists.xensource.com > Subject: RE: [Xen-users] how to use eth2 instead of eth0 for bridge > > > I have a machine that I added a 1GB card to it, and it has > > onboard eth0/1. What''s the easiest way to tweak Xen to use > > eth2 for all bridging instead of eth0? > > > > Would I just override the line in the vif-common.sh where it > > says -eth0? > > > > -Gary > > Just change your xend-config.sxp like this: > > (network-script ''network-bridge netdev=eth2'') > > > _______________________________________________ > 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 __________ Informace od NOD32 2534 (20070917) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Horn
2007-Sep-17 18:01 UTC
Re: [Xen-users] how to use eth2 instead of eth0 for bridge
On Mon, Sep 17, 2007 at 05:09:26PM +0200, Artur Linhart - Linux communication wrote:> > But as far as I know even having 1GBit network card, the > communication of the guests (at least with HVM guests) will still ahve only > 100 MBis, is it right?Nah, thats just what the model of the emulated network-card has as through- put, you can do more with HVM as you can see from my small benching at http://fluxcoil.net/doku.php/xen/docs .> At least on Xen 3.1.0 this is so.. Does anybody know > if it is a different situation by the paravirtual hosts? Can be somehow > improved the network traffic for HVM hosts?Use paravirtualized drivers if you can get those for the OS you are running under HVM (my benchmark misses the case HVM/paradrivers thou, since para is the most interesting method and HVM was just a fun here to look at). Maybe someone has an explanation for the difference throughput dom0->domU vs. domU->dom0 . Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sun, 2007-09-16 at 19:32 -0700, Gary W. Smith wrote:> > > > I have a machine that I added a 1GB card to it, and it has onboard > > eth0/1. What''s the easiest way to tweak Xen to use eth2 for all > > bridging instead of eth0? > > > > Would I just override the line in the vif-common.sh where it says - > > eth0? > > > > It looks like it''s automatically derived from the interface that holds > the default gateway, so I guess that it''s a mood point to change > anything. It should work automatically. > > Can someone confirm this?Usually most just add netdev=ethxx to the line in xend-config.sxp that calls network-bridge.>From the file (/etc/xen/scripts/network-bridge) :# Usage: # # network-bridge (start|stop|status) {VAR=VAL}* # # Vars: # # vifnum Virtual device number to use (default 0). Numbers >=8 # require the netback driver to have nloopbacks set to a # higher value than its default of 8. # bridge The bridge to use (default xenbr${vifnum}). # netdev The interface to add to the bridge (default eth${vifnum}). # antispoof Whether to use iptables to prevent spoofing (default no). I usually don''t use the scripts in /etc/xen/scripts, I let init handle the bridging on boot, this is because I make a few dummy bridges to use as ''virtual switches'' for my dom-U''s to enjoy a private lan and secondary nic. My xend-config.sxp calls ''network-dummy'' , which is just a script that exits 0 and does nothing. --Tim> > _______________________________________________ > 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