srvctl modify vip

Modifies IP address type but you can also use it to modify just the IP address.


This command is only available with Oracle Clusterware.

Syntax and Parameters

Use the srvctl modify vip command with the following syntax:

srvctl modify vip -node node_name -address {VIP_name|ip}/netmask[/if1[|if2|...]]
     [-netnum network_number] [-verbose]

Table A-96 srvctl modify vip Parameters

Parameter Description
-node node_name

The name of the node on which you are changing the VIP.

-address {VIP_name|ip}/netmask

Use this parameter to change the configuration of an existing VIP. If the VIP has an IPv4 address and the address you specify is IPv6, and the IP address type is set to both and the network type is set to static, then SRVCTL adds the IPv6 address to the existing IPv4 address of that resource.

You can specify one VIP_name or IP address, along with an IPv4 netmask or IPv6 prefix length.

-netnum network_number

The optional network number from which VIPs are obtained.

If you do not specify this parameter, then the VIPs are obtained from the same default network from which the nodeapps VIP is obtained.


Verbose output


You cannot have multiple VIPs on the same net number (subnet or interface pair) on the same node.


The following example adds an IPv4 address to a VIP, if one does not already exist. If the VIP has an IPv4 address, then it is replaced with the new network specification.

# srvctl modify vip -node node7 -address -netnum 2