我有一些静态 ip 分布在不同的 cidr 块中(假设每个 1 ip)。现在我想用特定的 ip 创建虚拟机。我想要做的是创建不同的网络(每个ip的cidr / 32)。但是,OpenStack 给了我一个错误 The subnet in the Network Address is too small (/32).
我只想创建具有特定静态 ips 的 VM,并且在这一点上卡住了很长一段时间。
答案 0 :(得分:1)
当 creating an instance 时,--nic
选项允许您设置固定 IP 地址:
[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid,auto,none>]
您也可以add a fixed IP到现有实例。