I have 2 network interfaces on a XEN host (SLES10, xen 3.0.4) eth0: 192.168.0.1 eth1: 172.16.0.1 and I have 2 xen guests. can I get the two guest systems fully separated from each others, by creating 2 bridges and each bridge connect to different physical interface? i.e. : eth0 --> xenbr0 --> vif1.0 and eth1 --> xenbr1 --->vif2.0 and how to do that? please, I need help in this issue urgently. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniel Ap. Martins Rosa
2007-May-24 14:52 UTC
Re: [Xen-users] fully separated virtual interfaces
Define in file of configuration of guest (172.16.0.1) to use bridge xenbr1 Define in file of configuration of guest (192.168.0.1) to use bridge xenbr0 brctl addbr xenbr1 && brctl addif xenbr1 eth1 && ip link set xenbr1 up Soon, the guest 172.16.0.1 will go up in bridge xenbr1 Daniel Aparecido Martins Rosa ----- Original Message ----- From: Mohammad Zohny To: Xen-users@lists.xensource.com Sent: Thursday, May 24, 2007 11:36 AM Subject: [Xen-users] fully separated virtual interfaces I have 2 network interfaces on a XEN host (SLES10, xen 3.0.4) eth0: 192.168.0.1 eth1: 172.16.0.1 and I have 2 xen guests. can I get the two guest systems fully separated from each others, by creating 2 bridges and each bridge connect to different physical interface? i.e. : eth0 --> xenbr0 --> vif1.0 and eth1 --> xenbr1 --->vif2.0 and how to do that? please, I need help in this issue urgently. ------------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
We''re using a script to do a similar thing: #!/bin/sh dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1 You''ll obviously need to change your xend config file to use this script instead of network-bridge. A very similar script is included in Xen 3.1 (not sure about earlier versions), called multi-bridge in /etc/xen/scripts. Obviously, you''ll need to specify in each guest''s config file which bridge to use (in the vif line, bridge=xenbr0 or bridge=xenbr1) Hope this helps, Martin Mohammad Zohny wrote:> I have 2 network interfaces on a XEN host (SLES10, xen 3.0.4) > > eth0: 192.168.0.1 <http://192.168.0.1> > eth1: 172.16.0.1 <http://172.16.0.1> > > and I have 2 xen guests. > can I get the two guest systems fully separated from each others, by > creating 2 bridges and each bridge > connect to different physical interface? > > i.e. : eth0 --> xenbr0 --> vif1.0 > and eth1 --> xenbr1 --->vif2.0 > > and how to do that? > > please, I need help in this issue urgently. > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
and this script will fully separate the 2 virtual machines, I mean If I configured a dhcp server in one network of them, will the virtual interface that bridged to the other network card take IP from this dhcp server? On 5/24/07, Mohammad Zohny <mohamad.zohny@gmail.com> wrote:> > I have 2 network interfaces on a XEN host (SLES10, xen 3.0.4) > > eth0: 192.168.0.1 > eth1: 172.16.0.1 > > and I have 2 xen guests. > can I get the two guest systems fully separated from each others, by > creating 2 bridges and each bridge > connect to different physical interface? > > i.e. : eth0 --> xenbr0 --> vif1.0 > and eth1 --> xenbr1 --->vif2.0 > > and how to do that? > > please, I need help in this issue urgently. > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Petersson, Mats
2007-May-24 15:23 UTC
RE: [Xen-users] Re: fully separated virtual interfaces
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Mohammad Zohny > Sent: 24 May 2007 16:16 > To: Xen-users@lists.xensource.com > Subject: [Xen-users] Re: fully separated virtual interfaces > > and this script will fully separate the 2 virtual machines, > I mean If I configured a dhcp server in one network of them, > will the virtual interface that bridged to the other network > card take IP from this dhcp server?The will just as separate as if you had two completely different networks connected to different machines. -- Mats> > > On 5/24/07, Mohammad Zohny <mohamad.zohny@gmail.com> wrote: > > I have 2 network interfaces on a XEN host (SLES10, xen 3.0.4) > > eth0: 192.168.0.1 > eth1: 172.16.0.1 <http://172.16.0.1> > > and I have 2 xen guests. > can I get the two guest systems fully separated from > each others, by creating 2 bridges and each bridge > connect to different physical interface? > > i.e. : eth0 --> xenbr0 --> vif1.0 > and eth1 --> xenbr1 --->vif2.0 > > and how to do that? > > please, I need help in this issue urgently. > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users