ONTAP 9 Manuals ( CA08871-402 )

Delete a subnet

If you no longer need a subnet and want to deallocate the IP addresses that were assigned to the subnet, you can delete it.

The procedure you follow depends on the interface that you use—​ONTAP System Manager or the CLI:

ONTAP System Manager

Beginning with ONTAP 9.12.0, you can use ONTAP System Manager to delete a subnet

Steps
  1. Select Network > Overview > Subnets.

  2. Select kebob icon > Delete beside the subnet you want to remove.

  3. Save your changes.

CLI

Use the CLI to delete a subnet

About this task

You will receive an error if any service processor or network interfaces are currently using IP addresses in the specified ranges. If you want the interfaces to continue to use the IP addresses even after the subnet is deleted, you can set the -force-update-lif-associations option to true to remove the subnet’s association with the LIFs.

Step

Delete a subnet:

network subnet delete -subnet-name subnet_name [-ipspace ipspace_name] [-force-update-lif- associations true]

The following command deletes subnet sub1 in IPspace ipspace1:

network subnet delete -subnet-name sub1 -ipspace ipspace1

On this page


Delete a subnet

Top of Page