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

Re: [Xen-users] Can one domU use two bridges?

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] Can one domU use two bridges?
From: "Yi Wang" <wymail@xxxxxxxxx>
Date: Thu, 28 Jun 2007 11:13:42 -0400
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 28 Jun 2007 08:11:53 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QuCUpEmeP83WShrfLg6pRiTIxCcQad2+4FfzTW3v9Yh1i1ozpfPxpRHMN/gXksHC6zfzTKzZWFbkLLU2V82hrH57P2L8Hze0I6bLzYjKEjGvR/Z+Wxe/Nh/NScnbONhmuiw4btZVlNQudiNiRIt9uP1rSlAphKeWzl02Ih8cyso=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DSKcZyCoJzaSmIq8R/R/2jD5egGNmy10cklMdgIoEJisceLKmYv4WcPCE2D/FkrrfufZIbbqAsrseS0IOPOZ6u3B3uGX3VvrVIhSkrXfX/vd02DwsOudCavRB9c/hMLqsawr1PuQHJrWimlyDj4+XLCl4TFX1SvExv36+ge11jI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B02561EB2@xxxxxxxxxxxxxxxxx>
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>
References: <9026964a0706280706v78e942e3u743721070fc6d66e@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B02561EB2@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
One thing is that I only have one public IP address, so I might have
to do NAT at the bridge that connects to the public Internet (the
other NIC connects to a private network so there is no IP issue).

Could anyone tell me how to set up NAT in this setting?
(The only tutorial I found is the following link, but it seems only
handles port translation case?)
http://www.howtoforge.com/debian_etch_xen_3.1_p4

Thanks,
Yi

On 6/28/07, Petersson, Mats <Mats.Petersson@xxxxxxx> wrote:


> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Yi Wang
> Sent: 28 June 2007 15:06
> To: Xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] Can one domU use two bridges?
>
> Hello,
>
> My server has two NICs.  Is there a way that I could create two
> virtual interfaces in each domU such that on vif is attached to the
> bridge with NIC1 and the other vif is attached to the bridge with
> NIC2?

Sure, you can connect two different NIC's in each DomU and connect them
via the relevant bridge to the external connection.

Assuming that xenbr0 => peth0, xenbr1 => peth1
You would configure the guest as:
vif = [ '...., bridge=xenbr0', '...., bridge=xenbr1']
The '...' is the usual setup for a network card, such as
mac=xx:xx:xx:xx:xx and possibly "type=ioemu" if you are using HVM
guests.

In the guest you'd obviously need to configure the network cards (or
have a DHCP server to set them up that way from the outside) so that the
network is routed the right way, but there's absolutely no problem with
the principle of this operation [the routing is of course exactly the
same problem as you'd have if you use two network card in a PHYSICAL
machine].

--
Mats
>
> Thanks,
> Yi
>
> _______________________________________________
> 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>