[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to use NAT and bridge at the same time?


  • To: Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Yi Wang" <wymail@xxxxxxxxx>
  • Date: Thu, 28 Jun 2007 13:22:40 -0400
  • Delivery-date: Thu, 28 Jun 2007 10:20:44 -0700
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.