Table of ContentsView in Frames

Configuring intercluster LIFs to share data ports

Configuring intercluster LIFs to share data ports enables you to use existing data ports to create intercluster networks for cluster peer relationships. Sharing data ports reduces the number of ports you might need for intercluster networking.

Before you begin

You should have reviewed the considerations for sharing data ports and determined that this is an appropriate intercluster networking configuration.

About this task

Creating intercluster LIFs that share data ports involves assigning LIFs to existing data ports and, possibly, creating an intercluster route. In this procedure, a two-node cluster exists in which each node has two data ports, e0c and e0d. These are the two data ports that are shared for intercluster replication. In your own environment, you replace the ports, networks, IP addresses, subnet masks, and subnets with those specific to your environment.

To learn more about LIFs and port types, see the Clustered Data ONTAP Network Management Guide

Steps

  1. Check the role of the ports in the cluster by using the network port show command.
    Example
    cluster01::> network port show
                                          Auto-Negot  Duplex     Speed(Mbps)
    Node   Port   Role         Link MTU   Admin/Oper  Admin/Oper Admin/Oper
    ------ ------ ------------ ---- ----- ----------- ---------- ----------
    cluster01-01
           e0a    cluster      up   1500  true/true   full/full  auto/1000
           e0b    cluster      up   1500  true/true   full/full  auto/1000
           e0c    data         up   1500  true/true   full/full  auto/1000
           e0d    data         up   1500  true/true   full/full  auto/1000
    cluster01-02
           e0a    cluster      up   1500  true/true   full/full  auto/1000
           e0b    cluster      up   1500  true/true   full/full  auto/1000
           e0c    data         up   1500  true/true   full/full  auto/1000
           e0d    data         up   1500  true/true   full/full  auto/1000
  2. Create a failover group on each node on both clusters for the data ports you want to share for intercluster communications by using the network interface failover-groups create command.
    Example
    The first of the following commands creates the failover group failover_cluster01-01_icl01 and assigns port e0c to the failover group. The second command adds port e0d to the failover group.
    cluster01::> network interface failover-groups create -failover-group 
    failover_cluster01-01_icl01 -node cluster01-01 -port e0c
    
    cluster01::> network interface failover-groups create -failover-group 
    failover_cluster01-01_icl01 -node cluster01-01 -port e0d
    
  3. Create an intercluster LIF on each node in cluster01 by using the network interface create command.
    Example
    The following commands create an intercluster LIF on each of the two nodes in cluster01 and assign the intercluster LIF to the failover group you created that contains the data ports.
    cluster01::> network interface create -vserver cluster01-01 -lif cluster01-01_icl01 -role intercluster -home-node cluster01-01 -home-port e0c -address 192.168.1.201 -netmask 255.255.255.0 -failover-group failover_cluster01-01_icl01 -failover-policy nextavail
    Info: Your interface was created successfully; the routing group i192.168.1.0/24 was created
    
    cluster01::> network interface create -vserver cluster01-02 -lif cluster01-02_icl01 -role intercluster -home-node cluster01-02 -home-port e0c -address 192.168.1.202 -netmask 255.255.255.0 -failover-group failover_cluster01-02_icl01 -failover-policy nextavail
    Info: Your interface was created successfully; the routing group i192.168.1.0/24 was created
  4. Verify that the intercluster LIFs were created properly by using the network interface show command with the -role intercluster parameter.
    Example
    cluster01::> network interface show –role intercluster
                Logical    Status     Network            Current       Current Is
    Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
    ----------- ---------- ---------- ------------------ ------------- ------- ----
    cluster01-01
                cluster01-01_icl01
                           up/up      192.168.1.201/24   cluster01-01  e0c     true
    cluster01-02
                cluster01-02_icl01
                           up/up      192.168.1.202/24   cluster01-02  e0c     true
  5. Verify that the intercluster LIFs are configured to be redundant by using the network interface show command with the -role intercluster and -failover parameters.
    Example
    The LIFs in this example are assigned the e0c port on each node. If the e0c port fails, the LIF can fail over to the e0d port.
    cluster01::> network interface show -role intercluster –failover
             Logical         Home                  Failover        Failover
    Vserver  Interface       Node:Port             Group Usage     Group
    -------- --------------- --------------------- --------------- --------
    cluster01-01
             cluster01-01_icl01 cluster01-01:e0c   nextavail       failover_cluster01-01_icl01
                                 Failover Targets: cluster01-01:e0c,
                                                   cluster01-01:e0d
    cluster01-02
             cluster01-02_icl01 cluster01-02:e0c   nextavail       failover_cluster01-02_icl01
                                 Failover Targets: cluster01-02:e0c,
                                                   cluster01-02:e0d
  6. Display routing groups by using the network routing-group show command with the -role intercluster parameter.
    An intercluster routing group is created automatically for the intercluster LIFs.
    Example
    cluster01::> network routing-group show –role intercluster
              Routing
    Vserver   Group     Subnet          Role         Metric
    --------- --------- --------------- ------------ -------
    cluster01-01
              i192.168.1.0/24
                        192.168.1.0/24  intercluster 40
    cluster01-02
              i192.168.1.0/24
                        192.168.1.0/24  intercluster 40
  7. Display the routes in the cluster by using the network routing-group show command to determine whether intercluster routes are available or you must create them.
    Creating a route is required only if the intercluster addresses in both clusters are not on the same subnet and a specific route is needed for communication between the clusters.
    Example
    In this example, no intercluster routes are available.
    cluster01::> network routing-group route show
              Routing
    Vserver   Group     Destination     Gateway         Metric
    --------- --------- --------------- --------------- ------
    cluster01
              c192.168.0.0/24
                        0.0.0.0/0       192.168.0.1     20
    cluster01-01
              n192.168.0.0/24
                        0.0.0.0/0       192.168.0.1     10
    cluster01-02
              n192.168.0.0/24
                        0.0.0.0/0       192.168.0.1     10
  8. If communication between intercluster LIFs in different clusters requires routing, create an intercluster route by using the network routing-groups route create command.
    The intercluster networks apply to each node; therefore, you must create an intercluster route on each node.
    Example
    In this example, 192.168.1.1 is the gateway address for the 192.168.1.0/24 network.
    Note: If the destination is specified as 0.0.0.0/0, then it becomes the default route for the intercluster network.
    cluster01::> network routing-groups route create -server cluster01-01 
    -routing-group i192.168.1.0/24 -destination 0.0.0.0/0 -gateway 192.168.1.1 -metric 40
    
    cluster01::> network routing-groups route create -server cluster01-02 
    -routing-group i192.168.1.0/24 -destination 0.0.0.0/0 -gateway 192.168.1.1 -metric 40
  9. Display the newly created routes by using the network routing-groups route show command.
    Although the intercluster routes do not have an assigned role, they are assigned to the routing group i192.168.1.0/24, which is assigned the role of intercluster. These routes are only used for intercluster communication.
    Example
    cluster01::> network routing-group route show
              Routing
    Vserver   Group     Destination     Gateway         Metric
    --------- --------- --------------- --------------- ------
    cluster01
              c192.168.0.0/24
                        0.0.0.0/0       192.168.0.1     20
    cluster01-01
              n192.168.0.0/24
                        0.0.0.0/0       192.168.0.1     10
              i192.168.1.0/24
                        0.0.0.0/0       192.168.1.1     40
    cluster01-02
              n192.168.0.0/24
                        0.0.0.0/0       192.168.0.1     10
              i192.168.1.0/24
                        0.0.0.0/0       192.168.1.1     40
  10. Repeat these steps on the cluster to which you want to connect.