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] IPcop in Xen

To: "Jason Solan" <jsolan@xxxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] IPcop in Xen
From: "Mark Hayward" <mhayward@xxxxxxxxxxx>
Date: Fri, 29 Feb 2008 14:47:19 -0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 29 Feb 2008 06:47:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1204291777.2897.14.camel@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: <CBF4C29D39D01640950B9548A53E65F20C3FE8@xxxxxxxxxxxxxxxxxxxx> <1204291777.2897.14.camel@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach615iPv02VeA3WQ8SoV3OnVOhm7AACjc/w
Thread-topic: [Xen-users] IPcop in Xen
Hi Jason,
Thanks for your help. I am unfortunately running this on a Celeron so I
do not have HVM :( I guess that is a show stopper. 
Thanks,
Mark

-----Original Message-----
From: Jason Solan [mailto:jsolan@xxxxxxxxxxxxxxxxxxxx] 
Sent: 29 February 2008 13:30
To: Mark Hayward
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] IPcop in Xen


On Fri, 2008-02-29 at 12:22 +0000, Mark Hayward wrote:
> Hi,
> 
> Can anybody point me in the right direction for getting Ipcop to work
> with xen? Is it even possible? I have googled and seen a couple of
> people say they have done it, can anybody just give me a breif idea of
> what is involved?
> 
> Many Thanks,
> 
> Mark


On Fri, 2008-02-29 at 12:22 +0000, Mark Hayward wrote: 
> Hi,
> 
> Can anybody point me in the right direction for getting Ipcop to work
> with xen? Is it even possible? I have googled and seen a couple of
> people say they have done it, can anybody just give me a breif idea of
> what is involved?
> 
> Many Thanks,
> 
> Mark

I have it set up on my network. (Gentoo 32-bit with xen 3.1)

Unless a recent version of IPCOP changed, you have to use HVM because
its using a 2.4 kernel.

I'm using 3 network cards on my dom0.

NIC 0 -- Default connection and bridge for all other guests besides
ipcop.

NIC 1 -- Local connection for IPCop (i.e. "green" connection from the
system to my switch)

NIC 2 -- External connection to IPCop (i.e. "red" connection from the
modem to the system) 


You need to use a custom network script for xen. (If you don't know how
let me know or google it, it's pretty easy and well documented)
The script i use to create the bridges is:
#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1
"$dir/network-bridge" "$@" vifnum=2 netdev=eth2 bridge=xenbr2

I do _not_ bring eth2 up on the dom0.  If the nic is up, I was unable to
get a DHCP address in IPCOP, so make sure it is down.

Once the network is setup, just install ipcop as a normal hvm guest
putting only xenbr1 and xenbr2 in the config file.


I *think* you should be able to do it with only 2 nic's, but don't know
for sure.  I had enough room and nic cards are cheap enough that I
didn't even bother trying with that setup.

If you need anything more clear let me know.


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

<Prev in Thread] Current Thread [Next in Thread>