ONTAP Discussions

Highlighted

How can we expand a subnet?

We need to expand our subnet from a /24 to a /23.

If I try to change the netmask on a LIF, I get an error about the netmask not matching the subnet:

network interface> modify -vserver SVMData -lif SVMData_nfs_lif1 -netmask 255.255.254.0
Error: command failed on vserver "SVMData" lif "SVMData_nfs_lif1": Cannot update LIF associations
for LIF "SVMData_nfs_lif1". The netmask of the LIF ("255.255.254.0") does not match the
netmask of the subnet ("255.255.255.0").

If I try to change the netmask on the subnet, I get an error about the LIFs:

network subnet> modify -subnet-name COMPANY -subnet 192.168.156.0/23

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.

Must I delete all the LIFs, change the subnet and recreate the LIFs?

 

1 REPLY 1
Highlighted

Re: How can we expand a subnet?

This might help:   

 

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-nmg%2FGUID-2067E0EA-4907-4471-9274-2FB3655233A2.html

 

You can set the value true for the -force-update-lif-associations option when modifying the range of IP addresses.

 

I've not actually ran that flag though.  I would test it out before doing it in prod if you can. 

 

Check out the KB!
Knowledge Base
All Community Forums