ONTAP 9

to Japanese version

Create a subnet

You can create a subnet to allocate specific blocks of IPv4 or IPv6 addresses to be used later when you create LIFs for the SVM.

This enables you to create LIFs more easily by specifying a subnet name instead of having to specify IP address and network mask values for each LIF.

Before you begin

You must be a cluster administrator to perform this task.

Procedure

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 create a subnet.

Steps
  1. Select Network > Overview > Subnets.

  2. Click add icon to create a subnet.

  3. Name the subnet.

  4. Specify the subnet IP address.

  5. Set the subnet mask.

  6. Define the range of IP addresses that comprise the subnet.

  7. If useful, specify a gateway.

  8. Select the broadcast domain to which the subnet belongs.

  9. Save your changes.

    1. If the IP address or range entered is already used by an interface, the following message is displayed:
      An IP address in this range is already in use by a LIF. Associate the LIF with this subnet?

    2. When you click OK, the existing LIF will be associated with the subnet.

CLI

Use the CLI to create a subnet.

Steps
  1. Create a subnet.

    network subnet create -broadcast-domain ipspace1 -ipspace ipspace1 -subnet-name ipspace1 -subnet 10.0.0.0/24 -gateway 10.0.0.1 -ip-ranges "10.0.0.128-10.0.0.130,10.0.0.132"

    The subnet name can be either a subnet IP value such as 192.0.2.0/24 or a string such as ipspace1 like the one used in this example.

  2. Verify that the subnet configuration is correct.

    The output from this example shows information about the subnet named ipspace1 in the ipspace1 IPspace. The subnet belongs to the broadcast domain name ipspace1. You can assign the IP addresses in this subnet to data LIFs for SVMs created in the ipspace1 IPspace.

    network subnet show -ipspace ipspace1

Top of Page