简体   繁体   中英

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?

Suppose I want IP 10.10.90.95, how can I add this specific IP to my pool available list?

To claim a specific floating-ip for a tenant, you can run the following neutron command. Note that this will succeed only if that IP address is not already claimed by some other tenant:

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.

Once floating IP is released, it gets automatically added to the available floating ip pool.

Use:

nova floating-ip-associate < instance-id > < floating-ip >

to associate specific floating-ip to the 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