Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-11-2011, 06:53 AM
|
#1
|
Member
Registered: Sep 2010
Posts: 37
Rep:
|
Problem routing to a virtual IP?
Okay, let's try this again...
I have 2 identical servers, like this:
transcoder1 on 192.168.254.3
transcoder2 on 192.168.254.4
Both of them have a virtual IP set as 192.168.254.1
My modem/router is set to forward ports 80, and 8566-8576 to 192.168.254.1 but the packets don't come through!
Ideally, transcoder1 should be answering incoming data, and if for whatever reason it goes down, transcoder2 should start the necessary services and pick up.
I've tried linux-ha and heartbeat. Not quite what I need.
ANY ideas on how to solve this?
|
|
|
01-11-2011, 11:13 AM
|
#2
|
Member
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10
Posts: 77
Rep: 
|
Simple. You can't have two hosts with the same IP address in the same network. Change the virtual IP of one of the hosts to a different one, and rethink the port forwarding plan.
|
|
|
01-11-2011, 03:39 PM
|
#3
|
Member
Registered: Sep 2010
Posts: 37
Original Poster
Rep:
|
Then I might as well not even be using a virtual IP.
I really just need a simple failover for these two servers. But it seems that every failover package out there focuses on HTTP and/or MySQL. I need something that covers system-wide access.
|
|
|
01-11-2011, 07:30 PM
|
#4
|
Member
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10
Posts: 77
Rep: 
|
Quote:
Originally Posted by DJCharlie
Then I might as well not even be using a virtual IP.
I really just need a simple failover for these two servers. But it seems that every failover package out there focuses on HTTP and/or MySQL. I need something that covers system-wide access.
|
Well, what your need is a small cluster configuration with the second computer set up as hot-spare. Have you tried RedHat's Cluster Suite?
|
|
|
01-11-2011, 08:21 PM
|
#5
|
Member
Registered: Aug 2009
Location: 2,625 m of paranoia above sea level
Distribution: Arch Linux, Debian GNU/Linux, Fedora, Void Linux, FreeBSD, OpenBSD and Win10
Posts: 77
Rep: 
|
Another options is something like balance, a tcp-proxy available in some distributions. Yet, it requires a third box making the arbitration. Not a problem if your router is already a Linux box, though.
|
|
|
01-11-2011, 10:23 PM
|
#6
|
Member
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65
Rep:
|
Quote:
Originally Posted by DJCharlie
Both of them have a virtual IP set as 192.168.254.1
|
How did you set virtual IP for each nodes? which interface was binded? You can't bind virtual IP in both to local network at a time (IP conflict). In my system, virtual IP was binded with 'lo:0' interface statically
Quote:
Originally Posted by DJCharlie
I've tried linux-ha and heartbeat. Not quite what I need.
|
I think 'linux-ha' (pacemaker) pretty suite for your needs, have a dig.
Good lucks,
MT.
|
|
|
All times are GMT -5. The time now is 01:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|