Hello everyone! I''m new to this mailing list and Xen. I''ve been trying it out and it is really cool. But I have a problem. I''ll try to describe the problem and see if someone understands it and can help me with it. I got 3 ethernet cards on my Xen server and I''m going to use two of them for the domU and one for the dom0 (I think this is what I should call the server). The domU is going to be the gateway/dns-server and give the dom0 the it''s ip and all the other computers on the network their. I want to connect the first one (eth0) to my internet connection (static ip) and give it to my domU, the second one (eth1) is going to be connected to my internal lan (my switch) and to my domU. The third one (eth2) is also going to be connected to my internal lan but this one is going to be used by dom0 and get it''s ip from eth1 by dhcp. My question is, how do I configure this? Should i bridge eth0 and eth1 to my domU and if I do this, what ip should I use for the eth1, br0 and br1? In this case eth0 will have a static IP, but what should I give my br0? And how do I configure it (xend-confg.sxp?). Should i give eth1 xxx.xxx.xxx.2 and br1 xxx.xxx.xxx.1? Or should I use routing? Is this even possible? - Simon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I''ve come up with a new Idea. Is this possible, and if it is, how do I do it? eth0 = Static ip. -> route to domU eth1 = 192.168.1.2 -> bridge to domU (?) eth2 = 192.168.1.X -> get''s it''s (dom0) ip from the domU (gateway) Is it possible to use bridge with one and route with one? And how do I make dom0 to use only eth2? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Aug 11, 2008 at 12:09 PM, Simon Gottschlag <simon@gottschlag.se> wrote:> I''ve come up with a new Idea. Is this possible, and if it is, how do I do > it? > eth0 = Static ip. -> route to domU > eth1 = 192.168.1.2 -> bridge to domU (?) > eth2 = 192.168.1.X -> get''s it''s (dom0) ip from the domU (gateway) > > Is it possible to use bridge with one and route with one? > And how do I make dom0 to use only eth2?i think it would be simpler to use 2 bridges, and two interfaces: eth0 -> br0 <- DomU eth0 (static IP) eth1 -> br1 <- DomU eth1 (192.168.1.2) and on Dom0, either: a) setup br1 with dhcp (after DomU startup) or b) add veth0 to br1, use dhcp on veth0 no need for (physical) eth2 -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Aug 11, 2008 at 12:48 PM, Simon Gottschlag <simon@gottschlag.se> wrote:> Could you explain it a little close? > What do you mean with giving DomU eth0 static ip? > Can I give it whatever I want and it will still work?yep. the bridge in Dom0 is just that, a bridge (also known as an ethernet switch). it doesn''t care what IP the DomU uses, it just forwards Ethernet frames.> How do I make Dom0 to only use eth1, and not have access to eth0?don''t set any IP number to it. it will only be a ''patch cord'' between the real switch, and the internal bridge.> Last question, how do I make my DomU start when the computer starts?it depends on the Xen scripts you use. something like putting a soft link in /etc/vm/start to the DomU config -- Javier _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users