How to modify the netmask of a subnet with LIFs associated to it
Applies to
- ONTAP 9
- Network Subnet
Description
- Updating the netmask of a subnet with LIFs associated fails with below error, even with
-force-update-lif-associations true
Cluster01::> network subnet show -instance
IPspace Name: Default
Subnet Name: test
Broadcast Domain: Default
Layer 3 Subnet: 10.10.10.0/24
Gateway: -
IP Addresses or IP Address Ranges: 10.10.10.21-10.10.10.30
Total Address Count: 10
Used Address Count: 5
Available Address Count: 5
Cluster01::> network subnet modify -subnet-name test -subnet 10.10.10.0/22
Error: command failed: The subnet has one or more LIFs associated with it. Changing the netmask of existing LIFs through the subnet commands is not supported.
Cluster01::> network subnet modify -subnet-name test -subnet 10.10.10.0/22 -force-update-lif-associations true
Error: command failed: The subnet has one or more LIFs associated with it. Changing the netmask of existing LIFs through the subnet commands is not supported.
- Updating the netmask of the LIF that is associated to a subnet does not work either
Cluster01::> network interface modify -vserver xyz -lif xyz1 -netmask-length 22
Error: command failed: Cannot update LIF associations for LIF "xyz1". The netmask of the LIF ("255.255.252.0") does not match the netmask of the subnet
("255.255.255.0").