Adds a VIP to a node.
Note:
This command is only available with Oracle Clusterware.
Use the srvctl add vip
command with the following syntax:
srvctl add vip -node node_name -address {VIP_name|ip}/netmask[/if1[|if2|...]] -netnum network_number [-skip] [-verbose]
Table A-20 srvctl add vip Parameters
Parameter | Description |
---|---|
-node node_name |
The name of the node on which you are adding the VIP. |
-address {VIP_name|ip}/netmask [/if1[|if2|...]] |
This specification creates a traditional VIP node application on the specified node. You can specify one |
-netnum network_number |
The network number from which VIPs are obtained. The default network number is 1. |
-skip |
Specify this parameter to skip checking the reachability of the VIP address. |
-verbose |
Verbose output |
Note:
You cannot have multiple VIPs on the same net number (subnet or interface pair) on the same node.
An example of this command is:
# srvctl add network -netnum 2 -subnet 192.168.16.0/255.255.255.0 # srvctl add vip -node node7 -address 192.168.16.17/255.255.255.0 -netnum 2
The first command creates a network number, 2
, and the second command adds a VIP to this network. You can specify the network number after the -netnum
parameter in other SRVCTL commands.