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.
 
1
 
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.
 
2
 
If you click the used link you will see what IPs are allocated.
 
3
 
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.
 
4
 

5 Comments

  1. Yves -  December 3, 2015 - 4:55 am 348

    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

    Reply
    • Simone -  May 17, 2016 - 3:37 pm 475

      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.

      Reply
      • knp -  June 7, 2016 - 7:40 am 490

        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?

        Reply
  2. Erwin Zoer -  December 19, 2017 - 2:09 am 625

    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.

    Reply

Leave A Comment

Your email address will not be published. Required fields are marked (required):

Back to Top