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] advanced bridging...

To: mpatino@xxxxxxxxxxxx, Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] advanced bridging...
From: "louis nerion" <louis.nerion@xxxxxxxxx>
Date: Mon, 7 May 2007 14:15:56 +0200
Delivery-date: Mon, 07 May 2007 05:14:51 -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:in-reply-to:mime-version:content-type:references; b=b0wjtnDYeFM45YM0a7LgtAF3t43BYmCEt/KcGCchojgPchkwEekl6XarjJY/K0ZCHftQqCtV3W76ZrqyzmdBRLK7wR3jdO/gWf63BOotEFK6bX5aDxEyQ7HXYDbIM6ssi9MXncV1h8r755d7V1l1oZo4QfJxT/mDciBcVMZQ9bY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QGv/KonD06gGcqLeA9/wSQ+eYSw5FqwnHIxCMuAUhv5wa/z/1Vfo9wU5JGHokxaQgTCtpK3mWbS0mzd6GEvM3zW2+zvoW+lyOLiHgf57x6zVmQhAizECamKwqn/f+n/nP8LGjQC8cigx45TuUEGYXSksJ22/5z2/dUsNvyICM6E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <463A0AFA.2040804@xxxxxxxxxxxx>
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: <4639EC7F.30103@xxxxxxxxx> <4639FE29.9060709@xxxxxxxxxxxx> <463A022D.2010403@xxxxxxxxx> <463A0AFA.2040804@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello, i've some remarks!

2007/5/3, Marc Patino Gómez <mpatino@xxxxxxxxxxxx>:
Hi again,

this is the config of xen in my Debian Etch:

/etc/xen/xend-config

(network-script network-bridge-wrapper)
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)
(vncpasswd '')
---------------------------------------------------------------------------

/etc/xen/scripts/network-bridge-wrapper

/etc/xen/scripts/network-bridge start bridge=xenbr0 vifnum=0
/usr/sbin/brctl addbr xenbr1
/sbin/ifconfig xenbr1 up
----------------------------------------------------------------------------

the domu (Firewall)

/etc/xen/firewall-config.sxp


name="firewall"
kernel="/boot/vmlinuz- 2.6.16.33-xenU-x86_64"
root="/dev/hda1"
cpu=3
memory=256
disk=['file:/xen1/firewall.img,hda1,w']

vif=[
'mac=00:16:3e:70:21:02,bridge=xenbr0,vifname=firewall.eth0','mac=00:16:3e:70:32:02,bridge=xenbr1,vifname= firewall.eth1'
]
dhcp="off"
ip="XX.XX.XX.XX"
netmask="255.255.255.0"
gateway="XX.XX.XX.XX"

In my mind, there is a problem here, because you define one ip=" XX.XX.XX.XX" but you define two vif ...
So where this ip is allocated? vifname=firewall or vifname=firewall.eth1?


hostname="firewall.domain.com"

extra="3"

>on_reboot   = 'restart'
on_crash    = 'restart'
-------------------------------------------------------------------------------

in this domU (the firewall) I have a bridge between eth1 and eth0, you
can do in CentOS way (inside the domain) ;)


here is the config file of a domu behind the FW:

/etc/xen/domu-config.sxp
name="domu"
kernel="/boot/vmlinuz-2.6.16.33-xenU-x86_64"
root="/dev/hda1"
cpu=3
memory=92
disk=['file:/xen1/domu.img,hda1,w']

vif=[ 'bridge=xenbrFW , vifname=domu.eth0' ]
dhcp="off"
ip="XX.XX.XX.XX"

Here it 's good ! One ip for one vif !

netmask="255.255.255.0"
gateway="XX.XX.XX.XX"
hostname="domu.domain.com"

extra="3"


on_reboot   = 'restart'
on_crash    = 'restart'
----------------------------------------------------------------------------------------------------


> 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

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