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

Re: [Xen-users] XEN Netwok Configuration


  • To: Anirban Ghosh <anirban_4you@xxxxxxxxxxx>
  • From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
  • Date: Thu, 22 Oct 2009 23:02:31 +0800
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 22 Oct 2009 08:16:06 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Gz5n1WdvkyCg4QUcQPxAHvnieSy0XsGEFEf9kBPkZghVzLEUFS9PQPja9zVJI1KML5 JBGsSWB7chRsueejHNdoHHBY/JBAJ1Jr97NLkyvwRoQd+tUNCncE4Aex6fjlkhTkYuyW +Ldm+osBIKmJtHTDLF6jz/RQ6p9eTJF3OzUnI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi

In each physical machine you have 2 NICS eth0 and eth1 with multiple virtual machines running.

You need to connect a cable from eth0 NIC port to the 10.1.1.x switch and another cable from eth1 NIC port to the 192.168.250.x switch.

Then for each virtual machine / guest configuration you need to specify

vif = [ 'bridge=eth0','bridge=eth1' ]

or

vif = [ 'bridge=xenbr0','bridge=xenbr1' ]

depending on the names of the ethernet bridges created in dom0.

So you will have 2 virtual NICs eth0 and eth1 in each virtual machine, each assigned to a different physical NIC in the host.

Inside each virtual machine, you need to specify DHCP for your networking configuration instead of static IP assignment.

You may also need to fine tune your iptables firewall configuration inside your host operating system / dom0.

Please correct me if I am wrong.

--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com
Email: space.time.universe@xxxxxxxxx
MSN: teoenming@xxxxxxxxxxx
Mobile Phone: +65-9648-9798
Street: Bedok Reservoir Road
Republic of Singapore

On Wed, Oct 21, 2009 at 3:21 PM, Anirban Ghosh <anirban_4you@xxxxxxxxxxx> wrote:
Hi,
I am Anirban Ghosh, from India. We are working on XEN virtualization. Presently I am facing a problem relating to network segment. The problem is as followes -

I have an existing network with 192.168.250.x, which is controled by a DHCP server. Now I have a cluster of XEN hosts. I am running another DHCP server in one of the XEN hosts with a range 10.1.1.x. Now each of the physical machine running XEN have two NIC i.e. eth0 & eth1. I want to allocate two seperate IP to each VM from this two DHCP servers, i.e. eth0 of each VM will get IP in the range 10.1.1.x and eth1 will get IP in the range 192.168.250.x.

In simple words I need two different IP for internal and external network.

Please give me a working solution for this.

Thanks & Regards,
Anirban Ghosh
School of Mobile Computing & Communication
Jadavpur University
Kolkata
West Bengal
India


From cricket scores to your friends. Try the Yahoo! India Homepage!

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




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

 


Rackspace

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