Video Screencast Help

How I can add Virtual ip in a cluster service group

Created: 23 May 2013 • Updated: 28 May 2013 | 6 comments
This issue has been solved. See solution.

How i can add Virtual ip for the groups in cluster service .



Comments 6 CommentsJump to latest comment

mikebounds's picture
Add an IP resource with attributes for example:
   IP public-ip (
                Device = "eth0"
                Address = ""
                NetMask = ""
in a GUI such as VOM or using command line:
hares -add public-ip IP sg_name
hares -modify public-ip Device eth0
hares -modify public-ip Address ""
hares -modify public-ip NetMask ""
hares -modify public-ip Enabled 1

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Paresh Bafna's picture


In addition, you should also add a NIC resource to monitor physical interface and a dependency between NIC and IP resource.

   NIC public-nic (
                Device = "eth0"
                NetworkHosts = ""
Using command line:
hares -add public-nic NIC sg_name
hares -modify public-nic Device eth0
hares -modify public-nic NetworkHosts ""
hares -modify public-nic Enabled 1
hares -link public-ip public-nic

Thanks and Regards,
Paresh Bafna

AnnuB's picture


  I have a follow on question. I have to create 2 Virtual-IPs on the same NIC (eth0). How do I add the create the resources and service groups? Can I add the same NIC to 2 service groups?

  We then have 2 applications - an Apache server and a custom TCP server (for bulk download) that require 1 Virtual-IP each. We are going to write the agent for our server. How do I create the service groups and link them to the Virtual-IP resources?

Thanks in advance,


arangari's picture


Did you try creating NIC resources in a different SG, with possibly a proxy resource in your main SG? 

You could also have NIC-SG with a phantom resource and create Online Local Firm/Hard dependency on this with you actual SGs

Thanks and Warm Regards,

Amit Rangari

If this post helped you resolving the issue, please mark it as solution. _____________________________________________________________________________

AnnuB's picture

Thanks very much for the prompt response. I have doubt : what's the difference between a proxy resource and using dependencies? As an example, if I want 2 applications to share the same Virtual-IP, which option is better :-

1)put the Virtual-Ip in its own group and then use dependencies from the 2 application service groups

2)Or add a proxy resource in the 2 application service groups to the Virtual-Ip resource?

In general what's the best practice for sharing infrastructure resources like NIC/Virtual-IP/Mount/Voume?. I am still reading up, but can a basic resource like Virtual-IP or MOUNT be part of 2 service groups if both groups require the same?