简体   繁体   中英

Create a network of single ip in openstack

I have some static ips spread out in different cidr blocks (assume 1 ip each). Now I want to create VMs out of specific ips. What I am trying to do is creating different networks (cidr /32 for each ip). However, OpenStack gives me an error The subnet in the Network Address is too small (/32). I just want to create VMs with specific static ips and am stuck at this point for quite a while.

When creating an instance , the --nic option allows you to set the fixed IP address:

[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid,auto,none>]

You can also add a fixed IP to an existing instance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM