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 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] RE: Simple network config question

To: 'Jonathan Bayles' <jbayles@xxxxxxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] RE: Simple network config question
From: Tait Clarridge <Tait.Clarridge@xxxxxxxxxxxx>
Date: Thu, 2 Jul 2009 13:04:38 -0400
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Thu, 02 Jul 2009 10:08:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <386FCF83D8086E4A89655E41CD3B53D3D1B2EA8A@rtexch01>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <386FCF83D8086E4A89655E41CD3B53D3D1B2EA8A@rtexch01>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acn7Mn8SEUEUloEcSt6VQo2gDGOATAABLPjw
Thread-topic: Simple network config question
> Hey guys,
> 
> Usually all my guests go out through various bridges connected to eth0, but I
> came across a scenario where I need to connect one guest to a special
> backend network. The network is connected to an access port on a switch via
> eth2 on the xen server. If I set an IP on eth2 in the correct network it 
> works just
> fine. How can I share this connection up to a domU? I cant tell the switchport
> to become a trunk and bridge out internally like I usually do. Any help is 
> greatly
> appreciated!!

What you may want to try is bridging the connection on eth2 to something like 
xenbr2 and in the config file have a line that is:

vif=['bridge=xenbr2']

Just make sure that before you bridge the connection that eth2 is given the IP 
that will make it work.

To create the bridge (after getting eth2 connected with the proper IP):

brctl addbr xenbr2 
brctl addif xenbr2 eth2
ifconfig xenbr2 up

Then you put the line in the config file as stated above, and bring up the VM. 
It should be able to connect to resources on the "special backend network" once 
it either gets an IP from a DHCP source or if you manually configure it.

If you need any help, let me know. Is it for a Windows or Linux VM?

Tait

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users