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.
0
votes
1 Answers
1
votes
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.