Create a network of single ip in openstack

658 views Asked by At

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.

1

There are 1 answers

7
berndbausch On

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.