Simple answer - you can't. In an advanced zone, you can specify the IP address when you create a new VM using the API, however in a basic zone, because the IP will depend on which POD your VM ends up in, and as a user you cannot influence this, there is no way to specific the IP, even if you are a root admin.
The reason it still fails when you manually change the IP is that the security groups feature is expecting the VM to have the IP CloudStack allocated it via DHCP. Regards Geoff Higginbottom CTO / Cloud Architect D: +44(0)20 3603 0542<tel:+442036030542> | S: +44(0)20 3603 0540<tel:+442036030540> | M: +44(0)7968161581<tel:+447968161581> geoff.higginbot...@shapeblue.com<mailto:geoff.higginbot...@shapeblue.com> | www.shapeblue.com ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS On 26 Jun 2013, at 05:02, "WXR" <474745...@qq.com<http://qq.com>> wrote: cloudstack version: 4.1 network type: basic network When I create a new instance,the vm will get a random IP from the DHCP server on vrouter. If I want to: 1.allocate a specific ip to the vm. 2.allocate multiple ips to the vm. 3.change the vm ip from one to another. How can I achieve it? I try to bind the ip to the vm nic manually but the ip can not be accessed. This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.