LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-11-2011, 06:53 AM   #1
DJCharlie
Member
 
Registered: Sep 2010
Posts: 37

Rep: Reputation: 4
Question 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?
 
Old 01-11-2011, 11:13 AM   #2
vorbote
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: Reputation: Disabled
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.
 
Old 01-11-2011, 03:39 PM   #3
DJCharlie
Member
 
Registered: Sep 2010
Posts: 37

Original Poster
Rep: Reputation: 4
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.
 
Old 01-11-2011, 07:30 PM   #4
vorbote
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: Reputation: Disabled
Quote:
Originally Posted by DJCharlie View Post
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?
 
Old 01-11-2011, 08:21 PM   #5
vorbote
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: Reputation: Disabled
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.
 
Old 01-11-2011, 10:23 PM   #6
mac.tieu
Member
 
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65

Rep: Reputation: 22
Quote:
Originally Posted by DJCharlie View Post
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 View Post
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.
 
  


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
[SOLVED] Virtual interface Routing abakhiet Linux - Networking 20 07-26-2010 05:15 AM
routing over virtual interface noir911 Linux - Server 1 02-23-2009 10:47 AM
Routing and Virtual Interfaces carlmarshall Linux - Networking 6 11-06-2008 12:59 PM
virtual interface routing noir911 Linux - Server 11 10-22-2008 06:11 PM
Routing Virtual IP address nrodri72 Linux - Networking 2 11-29-2007 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration