简体   繁体   English

在openstack中分配已发布的浮动IP

[英]Allocate released floating IP in openstack

How do I allocate Floating IP to a tenant after the tenant releases it from the project in openstack? 租户从Openstack项目中释放浮动IP后,如何向其分配浮动IP?

Suppose I want IP 10.10.90.95, how can I add this specific IP to my pool available list? 假设我想要IP 10.10.90.95,如何将该特定IP添加到我的池可用列表中?

To claim a specific floating-ip for a tenant, you can run the following neutron command. 要声明租户的特定浮动IP,可以运行以下neutron命令。 Note that this will succeed only if that IP address is not already claimed by some other tenant: 请注意,只有在其他租户尚未声明该IP地址的情况下,此操作才会成功:

neutron floatingip-create --floating-ip-address 10.10.90.95 ext-net

Above assumes that your external network is named "ext-net" and the IP address you are trying to allocate is 10.10.90.95. 以上假设您的外部网络名为“ ext-net”,而您要分配的IP地址为10.10.90.95。

Once floating IP is released, it gets automatically added to the available floating ip pool. 浮动IP发布后,它将自动添加到可用的浮动IP池中。

Use: 采用:

nova floating-ip-associate < instance-id > < floating-ip > 新星浮动IP关联<实例ID> <浮动IP>

to associate specific floating-ip to the instance. 将特定的float-ip与实例相关联。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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