Unable to use an IP address from a subnet - Subnet does not have address available
Applies to
ONTAP 9
Issue
- Attempt to add a new LIF using a specific IP from a predefined Subnet in OnCommand System Manager (OCSM) fails with error:
Data ONTAP API Failed: Subnet "Subnet_name" in IPspace "IPSpace_name" does not have address "x.x.x.x" available. (Error 13001)
- Same error is shown when an attempt is made to create the LIF from the CLI:
Error: Command failed: Subnet "Subnet_name" in IPspace "IPSpace_name" does not have address "x.x.x.x" available.
- No IP addresses in the subnet are available despite only few being actually in use.
- The "missing" IPs are not found anywhere on the cluster:
- 10 IP addresses are reported in use:
::> network subnet show -ipspace Default -subnet-name Demo -instance
IPspace Name: Default
Subnet Name: Demo
Broadcast Domain: Default
Layer 3 Subnet: 10.20.30.0/24
Gateway: 10.20.30.1
IP Addresses or IP Address Ranges: 10.20.30.41-10.20.30.50
Total Address Count: 10
Used Address Count: 10
Available Address Count: 0
- Only 2 IP addresses are in use by LIFs - 8 are "missing":
::> network interface show -vserver * -lif * -ipspace * -address 10.20.30.*
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- ----
svm1
svm1_cifs_nfs_lif1
up/up 10.20.30.41/24 cluster1-01 a0a-10 true
svm1_cifs_nfs_lif2
up/up 10.20.30.42/24 cluster1-01 a0a-10 true