Table of ContentsView in Frames

Creating a LIF

A LIF is an IP address associated with a physical port. If there is a component failure, a LIF can fail over to or be migrated to a different physical port, thereby continuing to communicate with the cluster.

Before you begin

About this task


  1. Create a LIF using the network interface create command.

    The following command creates a LIF and specifies the IP address and network mask values using the -address and -netmask parameters:

    cluster1::> network interface create -vserver vs1 -lif datalif1 -role data -data-protocol cifs,nfs -home-node node-4 -home-port e1c -address -netmask -firewall-policy data -auto-revert true

    The following command creates a LIF and assigns IP address and network mask values from the specified subnet (named client1_sub):

    cluster1::> network interface create -vserver vs3 -lif datalif3 -role data -data-protocol cifs,nfs -home-node node-3 -home-port e1c -subnet-name client1_sub -firewall-policy data -auto-revert true
  2. Optional: If you want to assign an IPv6 address in the -address option:
    1. Use the ndp -p command to view the list of RA prefixes learned on various interfaces.
      The ndp -p command is available from the nodeshell.
    2. Use the format prefix::id to construct the IPv6 address manually.
      prefix is the prefix learned on various interfaces.
      For deriving the id, choose a random 64-bit hexadecimal number.
  3. Verify that the LIF was created successfully by using the network interface show command.

    The following command shows all the LIFs in cluster1. Data LIFs datalif1 and datalif3 are configured with IPv4 addresses, and datalif4 is configured with an IPv6 address:

    cluster1::> network interface show
                Logical    Status     Network          Current      Current Is
    Vserver     Interface  Admin/Oper Address/Mask     Node         Port    Home
    ----------- ---------- ---------- ---------------- ------------ ------- ----
                cluster_mgmt up/up     node-1       e1a     true
                clus1        up/up    node-1       e0a     true
                clus2        up/up    node-1       e0b     true
                mgmt1        up/up    node-1       e1a     true
                clus1        up/up    node-2       e0a     true
                clus2        up/up    node-2       e0b     true
                mgmt1        up/up    node-2       e1a     true
                clus1        up/up    node-3       e0a     true
                clus2        up/up    node-3       e0b     true
                mgmt1        up/up    node-3       e1a     true
                clus1        up/up    node-4       e0a     true
                clus2        up/up    node-4       e0b     true
                mgmt1        up/up    node-4       e1a     true
                datalif1     up/down   node-4       e1c     true
                datalif3     up/up   node-3       e0c     true
                datalif4     up/up    2001::2/64       node-3       e0c     true
    16 entries were displayed.
  4. Verify that the configured IP address is reachable:
    To verify an... Use...
    IPv4 address network ping
    IPv6 address network ping6

    The following command verifies that the IPv4 address on datalif1 is accessible:

    cluster1::> network ping -node node-1 -destination is alive