Hi, 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? 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. Thanks a lot! Libor
Hi, 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? 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. Thanks a lot! Libor
Libor wrote:>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? > >In VMware it''s very easy to do so by creating multiple virtual >Ethernet cards and setting up the network in the standard matterYup, that''s just how you do it with Xen. Just create another bridge in the host (using the hosts native tools), and add a second virtual NIC to each guest. So you''d use : vif = [ ''bridge=br0'', ''bridge=br1'' ] in your guest config - substituting whatever names you used for your bridges. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books.
Niels Dettenbach (Syndicat IT&Internet)
2012-Mar-03 05:17 UTC
Re: Directly connecting two domU
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Libor <li.v@email.cz> 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@lists.xen.org http://lists.xen.org/xen-users