Product Documentation

Sample Cluster Configurations

Feb 09, 2015
The following example can be used to configure a four-node cluster with ECMP, cluster LA, or Linksets.
  1. Create the cluster.
    1. Log on to first node.
    2. Add the cluster instance.
      add cluster instance 1
    3. Add the first node to the cluster.
      add cluster node 0 10.102.33.184 -backplane 0/1/1
    4. Enable the cluster instance.
      enable cluster instance 1
    5. Add the cluster IP address.
      add ns ip 10.102.33.185 255.255.255.255 -type CLIP
    6. Save the configurations.
      save ns config
    7. Warm reboot the appliance.
      reboot -warm
  2. Add the other three nodes to the cluster.
    1. Log on to cluster IP address.
    2. Add the second node to the cluster.
      add cluster node 1 10.102.33.187 -backplane 1/1/1
    3. Add the third node to the cluster.
      add cluster node 2 10.102.33.188 -backplane 2/1/1
    4. Add the fourth node to the cluster.
      add cluster node 3 10.102.33.189 -backplane 3/1/1
  3. Join the added nodes to the cluster. This step is not applicable for the first node.
    1. Log on to each newly added node.
    2. Join the node to the cluster.
      join cluster -clip 10.102.33.185 -password nsroot
    3. Save the configuration.
      save ns config
    4. Warm reboot the appliance.
      reboot -warm
  4. Configure the NetScaler cluster through the cluster IP address.
    // Enable load balancing feature 
    enable ns feature lb 
     
    // Add a load balancing virtual server 
    add lb vserver first_lbvserver http 
    .... 
    ....
  5. Configure any one of the following (ECMP, cluster LA, or Linkset) traffic distribution mechanisms for the cluster.
    • ECMP

      1. Log on to the cluster IP address.
      2. Enable the OSPF routing protocol.
        enable ns feature ospf
      3. Add a VLAN.
        add vlan 97
      4. Bind the interfaces of the cluster nodes to the VLAN.
        bind vlan 97 -ifnum 0/1/4 1/1/4 2/1/4 3/1/4
      5. Add a spotted SNIP on each node and enable dynamic routing on it.
        add ns ip 1.1.1.10 255.255.255.0 -ownerNode 0 -dynamicRouting ENABLED 
        add ns ip 1.1.1.11 255.255.255.0 -ownerNode 1 -dynamicRouting ENABLED 
        add ns ip 1.1.1.12 255.255.255.0 -ownerNode 2 -dynamicRouting ENABLED 
        add ns ip 1.1.1.13 255.255.255.0 -ownerNode 3 -dynamicRouting ENABLED
      6. Bind one of the SNIP addresses to the VLAN.
        bind vlan 97 -ipAddress 1.1.1.10 255.255.255.0
      7. Configure the routing protocol on ZebOS by using vtysh shell.
    • Static cluster LA

      1. Log on to the cluster IP address.
      2. Add a cluster LA channel.
        add channel CLA/1 -speed 1000
      3. Bind the interfaces to the cluster LA channel.
        bind channel CLA/1 0/1/5 1/1/5 2/1/5 3/1/5
      4. Perform equivalent configuration on the switch.
    • Dynamic cluster LA

      1. Log on to the cluster IP address.
      2. Add the interfaces to the cluster LA channel.
        set interface 0/1/5 -lacpmode active -lacpkey 5 -lagtype cluster 
        set interface 1/1/5 -lacpmode active -lacpkey 5 -lagtype cluster 
        set interface 2/1/5 -lacpmode active -lacpkey 5 -lagtype cluster 
        set interface 3/1/5 -lacpmode active -lacpkey 5 -lagtype cluster
      3. Perform equivalent configuration on the switch.
    • Linksets. Assume that the node with nodeId 3 is not connected to the switch. You must configure a linkset so that the unconnected node can use the other node interfaces to communicate with the switch.

      1. Log on to the cluster IP address.
      2. Add a linkset.
        add linkset LS/1
      3. Bind the connected interfaces to the linkset.
        bind linkset LS/1 -ifnum 0/1/6 1/1/6 2/1/6
  6. Update the state of the cluster nodes to ACTIVE.
    set cluster node 0 -state ACTIVE 
    set cluster node 1 -state ACTIVE 
    set cluster node 2 -state ACTIVE 
    set cluster node 3 -state ACTIVE