ONTAP Discussions

How can we expand a subnet?

JMJB

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

SpindleNinja

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. 

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public