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

[Xen-users] Re: How to set particular ip on vif in dom0 after domU start

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: How to set particular ip on vif in dom0 after domU start?
From: "Tomas Zatko" <tomas.zatko@xxxxxxxxx>
Date: Thu, 9 Oct 2008 14:58:38 +0200
Delivery-date: Thu, 09 Oct 2008 05:59:23 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=aDgnpQmzrqMITjA3+t3eYUmAkFiMrW5S/xx4WfrOboo=; b=f6GdfkSgQfUH/F1WKoyi7CXROL7tsTVX2XKB+t6apc62m5tPeTyErl1v0P8F8fmE+S sapvlpOslrswhm+lq48YSzIjPUaLbLhdIBywDjjF6gofezFRJFXtQE0MNYadoSz5P9iV 3XuA/UUmhmqjba1R6Y7gRoliytksII8Eg15Vg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=UoQN438J0Ch5vRnPrLGFZGusHfoPAOWZzoB1agAkpHI766cT6xGX+Be9kVnzrLnH9T CobhcX5QMoWpQu9kNDQPTiyL0Ev71Ccb4Vzsl48WjT3mNGP+q4Fq1I8B+CqMP6Gd06Jg Y7N4nU3WGpIJ1RJNZylks4IFerzdMkXOMpFZ0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f06b60180810070256u30d08bcbh101972cf8c31b0e3@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>
References: <f06b60180810070256u30d08bcbh101972cf8c31b0e3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi xen-users

I came back to my problem today and finally found solution.
I added to vif-route script (/etc/xen/scripts/vif-route, online command section) this simple code:

        if [ -e /etc/xen/scripts/${vif} ]
        then   
                /etc/xen/scripts/${vif}
        fi                                                                                      

So when i use named vif device for domU (vif-alfresco.0 in this case) i create very simple script with vif name (/etc/xen/scripts/vif-alfresco.0) that will call command(s) (ip addr add 192.168.13.1/30 scope global dev vif-alfresco.0) in dom0.

I dont know if there is clearer way but this works well.

Best regards
Tomas Zatko



On Tue, Oct 7, 2008 at 11:56 AM, Tomas Zatko <tomas.zatko@xxxxxxxxx> wrote:
Hi xen-users

I am looking for answer to my question second day, but i cant find it.
I have domU with vif-route. How can i set particular ip on vif interface in dom0 after domU start?
(Or run some custom script for particular domU?)
Now i do it by hand (in dom0): ip addr add 192.168.13.1/30 scope global dev vif-alfresco.0
Thank you

Best regards
Tomas Zatko

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