Search code examples
openstackopenstack-neutron

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?


Solution

  • 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.