Troubleshoot IP pool issues in NSX
First, let’s reference Creating IP Pools in NSX. The only configuration of an IP Pool is the Name, Gateway, Prefix Length, DNS, and Static IP Pool as shown below. The first thing to confirm, is that you have the gateway, prefix length, and IP Pool settings correct.
If everything looks good, ensure that there are enough IPs in the pool. If you look at my configuration below, you will see that my VXLAN pool has used all 4 IPs in the pool.
If you click the used link you will see what IPs are allocated.
If I tried to install another host and configure VXLAN, I would get an error about insufficient IPs in my pool. Ensure that the pool is big enough, and if it needs more IPs, you can edit the pool by clicking the penil icon and increase the pool.
5 Comments
The assigned IP will not be released if the controllers are removed.
Is there any way to release the assigned IP?
I am using NSX 6.2 currently.
Regards,
Yves
Hi Yves,
You can release IP addresses from pool by using rest client
DELETE https:///api/2.0/services/ipam/pools//ipaddresses/
Regards
Hi Yves,
you can release an assigned IP using the REST API. There is a HTTP DELETE method for that, you’ll find it in the API documentation.
Best regards,
Simone.
What is the functionality of this REST call. Does it release all IP’s allocated, or does it release only the unused
what is the implication of doing this on a production env?
Thanks for all the helpful comments. To make it a bit more clear for those struggling to get this right:
Use the NSX API documenation for reference:
https://docs.vmware.com/en/VMware-NSX-for-vSphere/6.3/nsx_63_api.pdf
0. Configure Postman to use basic authentication when accessing the NSX REST API.
1. Configure Postman to accept XML in return by adding a request header: Content-Type: application/xml
2. Get the list of IP pools to find the appropriate IP pool ID
https://{your NSX IP or hostname}/api/2.0/services/ipam/pools/scope/globalroot-0
Output will be similar to:
ipaddresspool-1
…
The objectId parameter is what is needed to delete a specific reserved IP from the IP pool.
3. Delete the IP reservation from the pool. In my case this was 192.168.60.10.
https://{your NSX IP or hostname}/api/2.0/services/ipam/pools/ipaddresspool-1/ipaddresses/192.168.60.10
Output will be similar to:
true
The IP address reservation has now been removed from the IP pool.