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] How to use NAT and bridge at the same time?

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to use NAT and bridge at the same time?
From: "Yi Wang" <wymail@xxxxxxxxx>
Date: Thu, 28 Jun 2007 13:22:40 -0400
Delivery-date: Thu, 28 Jun 2007 10:20:44 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=ExvNBFeyihqcueWSQFam+ue1she7QevMnv+n1OXU+fmvR+olSn6a1lSGb/FtyacY166gAarT3d4OIJUPFSH5Y/Z7Xk1zNV+7fGdsp/M5pCPwzIJjEphGvroemKnYgrS5O6vcPx/A41feGRcnv/4g0CbIngA0KahbNmmSgFycCLg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hCTx+gYPNMI77eSnkU9s8nZ/XNLH0cTiTQmkSTy89qRrJzNu868D+TTntmOIVs2tH0zmwb5U05dKnxDqTlV3fAcRSGBkM3vxjtIb+G36KdG++acKFQX9kn4hsx6eXPELMIbK+rglQZkLe1SXvnFl8hhhgYXOYd0rD3HlA1dgsNw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

Is there a way to use NAT and bridge at the same time? E.g., for each
domU, use NAT to access public Internet through NIC1, and use bridge
to access a private network through NIC2.

I tried the following in my xend-config.sxp file:

(network-script 'network-bridge netdev=eth1 bridge=xenbr1')
(vif-script 'vif-bridge bridge=xenbr1')

(network-script network-nat)
(vif-script     vif-nat)

but when I do a "brctl show", I see:

bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.000000000000       no
xenbr1          8000.feffffffffff               no              vif0.0
                                                                        peth1
                                                                        vif1.0
and the NAT doesn't work. (But the bridge works.)

The NAT works by itself (without the complications of bridge.)

Any hints?

Thanks,
Yi

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] How to use NAT and bridge at the same time?, Yi Wang <=