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


[Xen-devel] [Xen 3.2]How to use NAT and bridge together?

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [Xen 3.2]How to use NAT and bridge together?
From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
Date: Wed, 20 Feb 2008 15:43:38 +0530
Delivery-date: Wed, 20 Feb 2008 02:14:04 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=J1r9zy/dCmjhiHX2pfM5PeV4EQsG+dc7T7bcXtjKmTA=; b=CctV31eS0WSZisG5mbQE5HhjpzbRwnwV8Ea18KbMFDkduKvFgXMKi0ZnThv2SfSqiLpVKFGY2XmaytGwOxVaWY9RC9039wc8d4VrckyVWeBWKrWclHJUO8JJpAwAdFiAtj/ajik+ZgYweXQKp+Cp8Wa3Obt5zQjyuqIFOm/ciP8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GcaZdZK1KmL9BlEaYoFMtVSbvUiHKiSDgFCxeSCizRruL/vAqD7Uv+L3PIWSZL5kppJlykozqFkPvzogD/LQy4UqEL5KdQ0FUmvH/8wIDWqcmr8kRMNdjP1LVzremwMZcEAANy+WbyiFSWnN5BOCGp9XilTVBjuosRxvL8gepLc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi All,

How does NAT work now in xen-3.2?
I am not at all able to write a custom script which will attache peth0
to bridge xenbr0(eth0 now) and make peth1 NAT for a dedicated HVM

This is what i write in my custom script.

dir=$(dirname "$0")

"$dir/network-bridge" "$@" bridge=eth0 netdev=eth0

"$dir/network-nat" "$@" netdev=eth1

Whats wrong this thing?

Can't i run one ethernet interface in NAT mode and other in bridged
mode at the same time in Xen-3.2?

How will i know that this NAT thing is working only for one NIC and
one HVM domainU?What should i look for in dom0?

$ brctl show gets me [without any domU working]
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0000c0123300       no              peth0

Can someone explain me why xenbr0 was renamed to eth0 and so on?
It seems to beat shit out of poor soul like me :-).

On a side note, the eth1 device on domainU cannot be created, meaning
something wrong with the way i am using nat-script it seems. How do i
use it in this case.

I used the syntax after a look at network-nat under /etc/xen/scripts/ .

Any pointers.

ps:-  I have looked into shorewall and xen configuration link,
it works only for PV guests.

Pradeep Singh Rautela

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [Xen 3.2]How to use NAT and bridge together?, pradeep singh rautela <=