WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to setup network configuration in guest domain.

To: tim.post@xxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to setup network configuration in guest domain.
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Tue, 2 Jan 2007 15:38:05 +0530
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 02 Jan 2007 02:08:06 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Rfgk+EKo8N5zIPqadf1kwXjAZD3e1TxZ1blMGd00rzTbnKzyes6wvoZXnzp102gXPEOtCZGQWyRHi6E//tJ1Y9uan3Xh7ySwaZOei6/xmMHOjYREhLGxGrJ99+v1kodfvHQOarbzhYTbulMZnVIMxf+m/LxG5oQOmDwPnjVKFvY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1167395080.26911.19.camel@tower>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f58fc26d0612290129k6ee5487fwd266250bdb6f38c3@xxxxxxxxxxxxxx> <1167389928.26909.8.camel@tower> <f58fc26d0612290333h5b41f000kb670ed0811dfd4aa@xxxxxxxxxxxxxx> <1167395080.26911.19.camel@tower>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
thanks tim,
My domains are able to communicate well also i able to mount nas location to my guest domain.






On 12/29/06, Tim Post <tim.post@xxxxxxxxxxxxxxx> wrote:
On Fri, 2006-12-29 at 17:03 +0530, trilok nuwal wrote:
> Hi Tim,
> Thanks for the update.
>
> I am using FC5.
>

Xen is the same once installed, but bridging / networking is a tad
different than GNU/Debian systems. Looks like you got that part right,
however so no worries.

> example:
> My dom0 IP 139.185.48.204
>
> and config file for configuration file contains vif
> vif = [ 'mac=FE:FF:FF:FF:FF:FF , ip= 139.185.48.214 , bridge=xenbr2']

You are correct. Typically I don't specify an IP in the config file, I
just bring it up in the guest itself.. however its 6 of one half dozen
of the other.

Each guest should get a static mac that stays with it, the syntax of the
mac (sort of) matters , what matters most is that they are unique and
always get paired with the same IP address.

XenSource registered a prefix that indicates a 'virtual' nic, I can't
remember what it is unfortunately. Someone else here will surely chirp
in with it.

>
> Now tell me, Is mac of eth0 in guest domain should be
> FE:FF:FF:FF:FF:FF as in vif and same as IP.

Each guest gets its own IP, be it public or reserved. Each guest also
needs its own unique (and static) mac address. If an IP broadcasts using
a different mac than it used a minute before, it could take your router
up to 10 minutes to re-arp the IP .. and networking would seem broken.
Its important that public macs remain the same and always associated
with the same IP.

On the private bridge .. this isn't a big concern since re-starting it
is rather simple if needed, but still good practice to follow.

>
> I also want that my mchines should be pingable from each other.
>

This is not a problem at all. All machines (guests) will be able to ping
eachother on the public or private bridge respectively provided you have
no firewall on dom-0 (or the guests) preventing it. Just be sure you
don't specify a gateway on dom-0 for the private bridge, and be sure stp
on your bridges is turned OFF.

>
> This is bit confusing for me.
>

Its a bit confusing for anyone who gets thrown into bridged ethernet
networking. Hope this is of some help to you :)

> Thanks,
> Trilok
>

Best,
-Tim

>
> On 12/29/06, Tim Post <tim.post@xxxxxxxxxxxxxxx> wrote:
>         On Fri, 2006-12-29 at 14:59 +0530, trilok nuwal wrote:
>         > Hi,
>         >
>         > I want to setup network congfiguration in my guest domain.
>         How this
>         > can be setup so that my dom0 should be pingable  from my
>         guest domain.
>         > Because i wanted to mount NFS location to my guest domain.
>         >
>         > Thanks in advance for help.
>         >
>         > Trilok
>
>         You would do this as you would normally. For all intensive
>         purposes,
>         dom-0 and your guest can be counted as two completely separate
>         machines.
>         I'm assuming dom-0 has an IP, just provide one for your guest.
>
>         Another useful way of doing this is bringing up a second
>         bridge that
>         doesn't port any physical ethernet device, and using it as you
>         would a
>         dumb ethernet switch. This lets you have a public and private
>         network,
>         the private being between the guests themselves and dom-0.
>         Each guest
>         gets 2 vif's, one using the public bridge, one using the dummy
>         (private)
>         bridge.
>
>         If you give an indication of what OS you're using on dom-0, it
>         would be
>         easier to give some examples or better pointers. I'm happy to
>         help with
>         anything GNU .. but don't often venture into Fedora or other
>         yum-ish
>         distros with bridged networking or Xen.
>
>         Best,
>         -Tim
>
>         >
>         >
>         >
>         >
>         > _______________________________________________
>         > 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


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>