Tomas Zatko
2008-Oct-07 09:56 UTC
[Xen-users] How to set particular ip on vif in dom0 after domU start?
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@lists.xensource.com http://lists.xensource.com/xen-users
Tomas Zatko
2008-Oct-09 12:58 UTC
[Xen-users] Re: How to set particular ip on vif in dom0 after domU start?
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@gmail.com> 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@lists.xensource.com http://lists.xensource.com/xen-users