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 know which interface DomU sees the Vif device

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to know which interface DomU sees the Vif device
From: Jorge Armando Medina <jmedina@xxxxxxxxxxxxxxx>
Date: Thu, 18 Nov 2010 16:26:23 -0600
Delivery-date: Thu, 18 Nov 2010 14:23:32 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-compugraf.com; h=content-type:content-type:in-reply-to:references:subject :subject:mime-version:user-agent:organization:from:from:date :date:message-id:received:received; s=mail; t=1290118924; bh=IXI DiJnLAVM6q9ghZBHHsjQ/l49YODKk71zxkpwFHdQ=; b=JKGhJbvUgrUX4DRJRQw msNClM0QSWDhIQbxAZFlucvfY+0QHqRnu79RbrcWOCouhmQA76SPiNrwh7ra8KY9 Awx3lryq2mFPKvk0xB85TdSMZIGJvrS/UOUDXV+HcFNwgYusX4L/2WIFfGIrAZki 9+dj5p9FU+RyWTOM+ny0f6Xc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinhqphJpV5YmeaTQc4CB+LacUc5WMJ4iHSUKJE+@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=28E40632; url=
Organization: Computación Grafica de México
References: <4CE5670D.6020807@xxxxxxxxxxx> <AANLkTinhqphJpV5YmeaTQc4CB+LacUc5WMJ4iHSUKJE+@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10
On 11/18/2010 03:04 PM, Fajar A. Nugraha wrote:
> On Fri, Nov 19, 2010 at 12:49 AM, Diego Dias <diego.dias@xxxxxxxxxxx> wrote:
>   
>> Is there a way to dinamically know on which network interface domU sees the
>> Vif Dom0 "gives" to them.
>>
>> Ex:
>>    on Dom0: Vifname: vif111.0
>>    on DomU: vif111.0 on network interface : eth0
>>     
> On the default setup, it's easy
>
>   
>>    on Dom0: Vifname: vif111.0
>>    on DomU: vif111.0 on network interface : eth0
>>     
> vif111.0 means it's the first interface of a domU with id 111. Run "xm
> list" and see which domU has that ID. In the domU side,
> vif111.0 will be eth0, vif111.1 will be eth1, and so on.
>
>
> Another method to look (which is especially useful if you've changed
> the interface name) is something like this:
> # xm list
> Name                                        ID   Mem VCPUs      State   
> Time(s)
> Domain-0                                     0  2046     2     r----- 
> 1700592.7
> ubuntu-test                                231   128     1     -b----  26724.9
>
> # xm network-list ubuntu-test
> Idx BE     MAC Addr.     handle state evt-ch tx-/rx-ring-ref BE-path
> 0   0  00:16:3E:63:2E:90    0     4      11    1297 /1296
> /local/domain/0/backend/vif/231/0
>
> # xenstore-ls /local/domain/0/backend/vif/231/0
> (selected output only)
> bridge = "br6"
> domain = "ubuntu-test"
> handle = "0"
> frontend = "/local/domain/231/device/vif/0"
> vifname = "u-test-eth0"
>
>   
Good, tip, I didnt know how to match the vif from network-list.

Thanks.


-- 
Jorge Armando Medina
Computación Gráfica de México
Web: http://www.e-compugraf.com
Tel: 55 51 40 72, Ext: 124
Email: jmedina@xxxxxxxxxxxxxxx
GPG Key: 1024D/28E40632 2007-07-26
GPG Fingerprint: 59E2 0C7C F128 B550 B3A6  D3AF C574 8422 28E4 0632


Attachment: signature.asc
Description: OpenPGP digital signature

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