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


Re: [Xen-users] Howto mix public and private ip-addresses?

To: Joerg Schoppet <joerg@xxxxxxxxxxx>, XEN User - listmembers <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Howto mix public and private ip-addresses?
From: Stephan Seitz <s.seitz@xxxxxxxxxxxx>
Date: Sun, 09 Dec 2007 13:30:35 +0000
Delivery-date: Sun, 09 Dec 2007 05:31:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <475BC166.7090500@xxxxxxxxxxx>
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>
Organization: netz-haut e.K.
References: <475BC166.7090500@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20071022)

for easier use i packed our own xen deb's with an additional
script in /etc/xen/scripts to setup more than one bridge:

the entry in xend-config.sxp has to be changed from 'network-bridge'
to the name of the wrapper script (needs to be chmod +x)

# this is an example to start more than one bridge on different vif's


# start first bridge (xenbr0) on eth0
$XENDIR/network-bridge "$@" netdev=eth0 bridge=xenbr0 vifnum=0

# start another bridge (xenbr1) on eth1
#$XENDIR/network-bridge "$@" netdev=eth1 bridge=xenbr1 vifnum=1

# start a third bridge (xenbr2) as machine internal net segment
#/sbin/modprobe dummy 2>/dev/null >/dev/null && \
#    /sbin/ifconfig $DUMMY up 2>/dev/null >/dev/null && \
#    $XENDIR/network-bridge "$@" netdev=$DUMMY bridge=xenbr2 vifnum=2

uncommenting the third bridge entry, a domU config line like

vif = [ 'mac=gi:ve:so:me:mac,bridge=xenbr0', 
'mac=gi:ve:an:ot:her:mac,bridge=xenbr2 ]

should give you two domU interfaces, the second one bound to a bridge on dom0's 

this could be used to connect the domU's together. even dom0 could use this 
via dummy0.

one thing to note: during tests with heavy net i/o over a dummy0 bridge i found 
freezing, but this could have been a dom0's kernel issue.



Joerg Schoppet schrieb:
> Hi,
> actually I have the following setup:
> Ubuntu Gutsy with Xen 3.1
> I have one public ip-address AND a /29 subnet with public ip-addresses.
> Xen is configured as routed-setup:
> dom0: has the public ip-address and the first ip-address from the subnet.
> each domU has an ip-address from the subnet and as gateway the first
> ip-address from the subnet.
> Everything works!
> Now I want to put a private address 192.168.1.x to each domU and to
> dom0, so that I can bind some network-services to these ip-addresses,
> which should only be addressable within the virtual systems.
> How can I do this?
> I've tried the following:
> - Added a dummy-interface to dom0 with
> - Added e.g. to the vif-config in the domain-config-file of
> a domU.
> - Added a dummy-interface to a domU with e.g. I tried the
> config with no gateway, with the same gateway as the "normal" interface
> (public ip) and with the gateway
> No luck so far.
> Any tips, tricks, hints?
> Regards
> Joerg Schoppet
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

Attachment: s_seitz.vcf
Description: Vcard

Attachment: signature.asc
Description: OpenPGP digital signature

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>