4.3.39.1 ADD VIP

This command adds a VIP for an individual node in a cluster.

Syntax

ADD VIP
   NAME=vip_name
   DOMAINNAME=domain_name
   IP=vip_ip_addr 
   [ NETMASK=netmask ]
   [ INTERFACE_NAME=interaface_name ]
   [ IPADDR_TYPE={ipv4|ipv6} ]
   [ NETNUM=clusterware_network_number ]
WHERE
   { HOSTNAME=host_name |
     CLUSTERNAME=cluster_name COMPUTENUMBER=compute_number |
     CLUSTERNUMBER=cluster_number COMPUTENUMBER=compute_number |
     CLUSTERID=cluster_id COMPUTENUMBER=compute_number }

Arguments

You must specify the following attributes when adding a VIP:

  • NAME: Specifies the short DNS name for the VIP

  • DOMAINNAME: Specifies the domain name for the VIP

  • IP: Specifies the IP address for the VIP

  • NETMASK: Optionally specifies the netmask (network mask) for the VIP

  • INTERFACE_NAME: Optionally specifies the interface name associated with the VIP

  • IPADDR_TYPE: Optionally specifies the IP address type for the VIP. Either ipv4 or ipv6.

  • NETNUM: Optionally specifies the clusterware network number associated with the VIP

The following arguments are available in the WHERE clause:

  • HOSTNAME: Specifies the host name for the compute node in the cluster

  • CLUSTERNUMBER: Specifies the cluster number in the es.xml, starting at 1

  • CLUSTERNAME: Specifies the name of the cluster

  • CLUSTERID: Specifies the es.xml ID of the cluster

  • COMPUTENUMBER: Specifies the compute node number in the cluster, starting at 1

Usage Notes

This command does not add multiple VIPs to a node. It is typically used to re-create a VIP after a DELETE VIP command.

When adding a VIP to a compute node, the node must not already have a VIP defined.