WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-users

[Top] [All Lists]

RE: [Xen-users] how to use eth2 instead of eth0 for bridge

To: "Gary W. Smith" <gary@xxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] how to use eth2 instead of eth0 for bridge
From: Tim Post <echo@xxxxxxxxxxxx>
Date: 2008年1月09日 14:59:32 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年9月16日 23:33:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <57F9959B46E0FA4D8BA88AEDFBE5829024F504@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: echoreply
References: <57F9959B46E0FA4D8BA88AEDFBE5829024F503@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <57F9959B46E0FA4D8BA88AEDFBE5829024F504@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: echo@xxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-users] how to use eth2 instead of eth0 for bridge , Fischer, Anna
Next by Date: RE: [Xen-users] how to use eth2 instead of eth0 for bridge , Gary W. Smith
Previous by Thread: RE: [Xen-users] how to use eth2 instead of eth0 for bridge , Gary W. Smith
Next by Thread: RE: [Xen-users] how to use eth2 instead of eth0 for bridge , Fischer, Anna
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /