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: "Fajar A. Nugraha" <list@xxxxxxxxx>
Date: Fri, 19 Nov 2010 04:04:02 +0700
Delivery-date: Thu, 18 Nov 2010 13:06:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CE5670D.6020807@xxxxxxxxxxx>
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>
References: <4CE5670D.6020807@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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"

-- 
Fajar

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

<Prev in Thread] Current Thread [Next in Thread>