You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ivan Rodriguez <iv...@gmail.com> on 2014/05/04 09:12:07 UTC

Network ip address change

Dear cloudstack users

What is the correct API call to change an ip address in a virtual machine ??
Also when a guest network is created you can define the range start and end
ip but once the network has been created how do you change the range ??

Thanks in advance

RE: Network ip address change

Posted by Saksham Srivastava <sa...@citrix.com>.
Hi,

You can update an Isolated Guest network/VPC tier guest vm cidr by using IP reservation.
Once a network is in Implemented state, update the network with the desired guest vm cidr.

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/reserved-ip-addresses-non-csvms.html
Summarized here: http://www.slideshare.net/srivastavasaksham/ip-address-reservation-cloudstack

Thanks,
Saksham

-----Original Message-----
From: Ahmad Emneina [mailto:aemneina@gmail.com] 
Sent: Sunday, May 4, 2014 1:04 PM
To: Cloudstack users mailing list
Subject: Re: Network ip address change

i believe to assign an ip address to a vm is best done on creation, else you'll need to use the addNic API[0] with the ipaddress param set, and remove nic API [1], to remove the undesired nic/IP. I'm not sure how to modify a network after creation, it doesnt seem updateNetwork [2] will have what you need. You might need to create a new network with the correct settings... HTH


[0]
https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/addNicToVirtualMachine.html
[1]
https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/removeNicFromVirtualMachine.html
[2]
https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/updateNetwork.html



On Sun, May 4, 2014 at 12:12 AM, Ivan Rodriguez <iv...@gmail.com> wrote:

> Dear cloudstack users
>
> What is the correct API call to change an ip address in a virtual 
> machine ??
> Also when a guest network is created you can define the range start 
> and end ip but once the network has been created how do you change the range ??
>
> Thanks in advance
>

Re: Network ip address change

Posted by Ahmad Emneina <ae...@gmail.com>.
i believe to assign an ip address to a vm is best done on creation, else
you'll need to use the addNic API[0] with the ipaddress param set, and
remove nic API [1], to remove the undesired nic/IP. I'm not sure how to
modify a network after creation, it doesnt seem updateNetwork [2] will have
what you need. You might need to create a new network with the correct
settings... HTH


[0]
https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/addNicToVirtualMachine.html
[1]
https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/removeNicFromVirtualMachine.html
[2]
https://cloudstack.apache.org/docs/api/apidocs-4.2/root_admin/updateNetwork.html



On Sun, May 4, 2014 at 12:12 AM, Ivan Rodriguez <iv...@gmail.com> wrote:

> Dear cloudstack users
>
> What is the correct API call to change an ip address in a virtual machine
> ??
> Also when a guest network is created you can define the range start and end
> ip but once the network has been created how do you change the range ??
>
> Thanks in advance
>