LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 11-03-2009, 09:05 AM   #1
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
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?

Thanks,
Harsha
 
Old 11-03-2009, 11:42 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Have you configured this with Luci? And is the IP a resource for your service..? Need more info.
 
Old 11-06-2009, 12:00 AM   #3
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Original Poster
Rep: Reputation: 18
Hi,

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?
 
Old 11-06-2009, 10:09 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
I don't have an RHCS test environment to test this on at the moment, but your hypothesis seems logical. Why not just test..?
 
Old 11-07-2009, 08:55 AM   #5
elcody02
Member
 
Registered: Jun 2007
Posts: 52

Rep: Reputation: 17
Quote:
Originally Posted by sreeharsha.t View Post
Hi,

... 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outgoing local trafic over virtual interface has not virtual ip address :-( tkmbe Linux - Networking 3 08-25-2009 08:03 PM
BIND 9X NS resource records rhlnewbie Linux - Software 7 08-12-2008 01:05 AM
Bind gui interface bdavide Linux - Newbie 5 06-15-2008 08:12 AM
Adding virtual interface for IP based virtual host pridefc Linux - General 6 03-16-2008 03:52 PM
rsyncd bind to a interface Greenpie Linux - Networking 1 10-22-2004 07:34 AM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration