[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Directly connecting two domU


  • To: Libor <li.v@xxxxxxxx>,xen-users@xxxxxxxxxxxxx
  • From: "Niels Dettenbach (Syndicat IT&Internet)" <nd@xxxxxxxxxxxx>
  • Date: Sat, 03 Mar 2012 06:17:24 +0100
  • Delivery-date: Sat, 03 Mar 2012 05:26:11 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



Libor <li.v@xxxxxxxx> schrieb:

>I have following problem which I wasn't able to solve:
>I have two domU, let's call them domU1 and domU2, and I need to set up
>two networks:
>- one bridge for domU1 which will connect it to real Ethernet (done)
>- some private network only between domU1 and domU2.
>Is it possible?

yes.

as long as you did not run out of any regarding device handles you may 
create/use as many bridges or vifs as you like Ã)

>In VMware it's very easy to do so by creating multiple virtual Ethernet
>cards and setting up the network in the standard matter, but since Xen
>has different idea behind networking, I'm a bit lost.

hmmm,
the priciples behind XEN for such a setup are the same as in VMware or 
VirtualBox:

assuming you want to do a fully bridged setup:

- - create two linux bridges like public0 and private0 (i.e. brctl add or by 
your OSs default networking mechs)

- - create two vifs on each domU (DomU config plus network-bridge in xend.conf)

- - connect one of the vifs to public0 and the other to private0 (in DomUs 
configs)

- - connect public0 with a "public" (real hardware) interface - so that virtual 
"switch" is connected with the "outside" network

you may then give IPs from your public network to the vifs on public0 within 
your DomUs and i.e. from a private address segment on vifs on your private0 
bridge.

Now you can reach DomUs vice versa by private IPs without any "physical" 
connection to a outer network over bridge private0 and public with public IPs 
on the public0 switch.

If you want to connect Dom0 from DomUs you should give at least one of the 
bridges (i.e. private0) an IP too (ip or ifconfig).


hth
best regards,


Niels.
- --
Niels Dettenbach
Syndicat IT&Internet
http://www.syndicat.com
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iIEEAREIAEEFAk9RqWI6HE5pZWxzIERldHRlbmJhY2ggKFN5bmRpY2F0IElUJklu
dGVybmV0KSA8bmRAc3luZGljYXQuY29tPgAKCRBU3ERlZRyiDdWUAJ9yoO2HGpIj
NaCU3t721RG/DImZDwCfSPiaE+bGQ8ag3G38ZNK0JRCY3fU=
=zqMF
-----END PGP SIGNATURE-----


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.