How to bind an interface to the Virtual IP resource in RHCS
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to bind an interface to the Virtual IP resource in RHCS
Hi,
I am working on a project which involves Fail over clustering between 2 nodes. I am using RHCS. I am able to configure the cluster and services to work with it in fail over mode. However, I was not able to bind the Virtual IP resource to a particular interface. I think RHCS is assigning that IP to the interfaces which are holding the IP's configured in the /etc/hosts file.
Is there any way to explicitly set the interface for Virtual IP resource?
I haven't configured it with Luci. I did it by editing the cluster.conf file. And yes, the IP address is a resource for the service. The database server binds to this IP.
I will explain the scenario in more depth. The two cluster nodes are connected throught 2 networks: 10.0.1.0/24 and 10.0.2.0/24. I have configured the /etc/hosts file to have IP addresses of 10.0.1.0 network. Now if I choose an IP resource for my service, to which interface will it bind? To the interface connecting to 10.0.1.0 network or to the other one? I find no possible way in which we can configure that IP so that it can bind to an interface. I think RHCS binds it according to the network it belongs, i.e., if I give 10.0.1.10 for that IP resource, it binds to the interface connecting to 10.0.1.0 network, if I give 10.0.2.10, then the other interface. Am I correct?
... if I give 10.0.1.10 for that IP resource, it binds to the interface connecting to 10.0.1.0 network, if I give 10.0.2.10, then the other interface. Am I correct?
That's exactly what it does.
If all nics are properly configured.
The IP resource agent chooses from the IP address given and finds the "NIC" this ip fits in. Taking netmask and the nic's ip into account.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.