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] Xen in a routed network environment?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen in a routed network environment?
From: Ralph Passgang <ralph@xxxxxxxxxxxxx>
Date: Wed, 25 Jan 2006 01:25:25 +0100
Delivery-date: Wed, 25 Jan 2006 00:34:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20060124211315.GN7017@xxxxxxxxxxxxxx>
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: <20060124211315.GN7017@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
Am Dienstag, 24. Januar 2006 22:13 schrieb Andy Smith:
> Hello,
>
> I'm used to using Xen in a bridge mode where my dom0 and all domUs
> are on the same layer 2 network.  However now I have to set up a
> server whose eth0 is on one network and the domUs will be on another
> /29.
>
> So, for example, if the eth0 of dom0 is 192.168.1.214/24, then I
> have 10.1.1.0/29 (10.1.1.0 -> 10.1.1.7) routed to it for use in
> domUs, how would I go about setting that up?

As you would configure it for every normal/physical server. Your router has to 
route traffic for this /29 to the same network interface as for the /24 you 
are already using right now. xen (in bridge mode) is just like having more 
then one realserver connected to one of your switchports (by using an 
additional switch/hub or whatever). I would suggest that you bind one ip out 
of the /29 on the router, and one other ip out of the /29 on your domU. The 
domU now only has to be configured to use the ip and the correct netmask + 
your router's ip (the one from the new /29 net) as default gateway. It 
doesn't need to know about your already existing /24 network, that there is a 
bridge between the domU and the router or something else.

even your dom0 doesn't need to be configured at all (at least normaly), 
because again of the bridge used. A bridge doesn't care for any layer3 
related stuff like ip networking... It forwards traffic by arp/mac addreses. 
And as long as you don't do any blocking on layer2 or layer3 on your dom0 
(for the vifX interfaces or the peth0 interface) you shouldn't have to do 
anything on your dom0 for a new network. It's not dom0 related in any, it's 
just arriving on peth0 and gets forwarded to the correct vif interface 
automaticly.

> Is there any good documentation I could read on this subject?

Don't know... But probably not too much, because this is not really someting 
xen specific. you should try to look for howto's and information about 
bridges, routing, layer2/3 stuff and so on...  there is no xen specific stuff 
that you should be aware of (if I am not totally wrong).

> Thanks,
> Andy

--Ralph

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