Configuring the cluster virtual IP address using the CLI

Prev Next

Use the commands in this section to configure a virtual IP (VIP) address that provides access to the Web UI of the primary node. The VIP address must be in the same subnet as the two nodes in the LAN. (See Virtual IP address for more information about this configuration option.)

Important

You cannot use a VIP address in a WAN deployment. A VIP address is required in a LAN deployment if appliances are added to the primary node using a client-initiated connection (see Appliance management ).

Note

This is a global configuration. The configuration actions are performed from only one node, but are applied to the cluster.

Configure the VIP address:
  1. Configure the VIP address:

    node-hostname (config) # ha address vip <ip address>

    where ip address is the VIP address.

    Important

    The VIP address must be in the same subnet as the two nodes.

  2. (Optional) Enable the resource agent that manages the VIP address:

    node-hostname (config) # ha resource fe_address enable

    Note

    The fe_address resource agent must be enabled before you can use the VIP address, but it can be enabled later. The VIP address remains in the configuration whether the resource agent is enabled or disabled.

  3. Verify your change:

    node-hostname (config) # show ha configuration
  4. Save your changes:

    node-hostname (config) # write memory

Example

The following example configures a VIP address and enables the resource agent from the primary node.

node2 (config) # ha engine stop
node1 (config) # ha engine stop
node1 (config) # ha address vip 10.11.121.19
node1 (config) # ha resource fe_address enable
node1 (config) # show ha configuration
CM HA Cluster Settings:
...
    Virtual IP address:        10.11.121.19
...
Cluster Resources:
...
    fe_address enabled:        yes
...
node1 (config) # write memory
node1 (config) # ha engine restart
node2 (config) # ha engine restart