How To Guides > Clustering and High Availability > Cluster Configuration through the CLI

Example: Configure cluster through the CLI

Configuration using the CLI is very similar to that of the Web UI.

  1. Configure a Cluster Internal address. Any interface not bound to a bridge or used in another role (e.g. Mirror or WCCP) may be used. This command will need to be run on each node in the cluster, and each with a unique Cluster Internal address.

    (config) # cluster interface eth2

    (config) # interface eth2 ip address 192.168.1.1 /24

  2. Configure the Cluster External IP. This command should be executed on all cluster nodes using the same Cluster External IP

    (config) # cluster master interface eth1

    (config) # cluster master address vip 192.168.0.160 /24

  3. Enable the cluster.

    (config) # cluster enable

    Note

    Configuration changes should only be made on the Cluster Master node. The role of the node currently logged into will be displayed in the CLI prompt as shown below.

    exinda-091cf4 [exinda-cluster: master] (config) #

  4. It is possible to view the status of all the members of a cluster from the CLI by issuing the following command.

    (config)# show cluster global brief

    Global cluster state summary

    ==============================

    Cluster ID: exinda-default-cluster-id

    Cluster name: exinda-cluster

    Management IP: 192.168.0.160/24

    Cluster master IF: eth1

    Cluster node count: 2

    ID  Role     State    Host         External Addr    Internal Addr

    -----------------------------------------------------------------

    1*  master   online   exinda-A     192.168.0.161    192.168.1.1

    2   standby  online   exinda-B     192.168.0.162    192.168.1.2