Sponsored Content
Full Discussion: Need to setup floating IP
Operating Systems HP-UX Need to setup floating IP Post 302650837 by mohtashims on Monday 4th of June 2012 10:27:19 AM
Old 06-04-2012
Question Need to setup floating IP

Hi,

Below is the Theory that I need to implement.

Code:
Load balancing websites can be achieved by putting 2 entries in your DNS, for instance:

www.example.com 192.168.1.1
www.example.com 192.168.1.2

then DNS will do a round Robin between them, but should either host fail then your will see intermittent loss when surfing, as the DNS will still point to either IP in turn.

If you want failover, for instance:

host1.example.com 192.168.1.1 (master)
host2.example.com 192.168.1.2 (slave)

and the floating ip as you call it

float.example.com 192.168.1.3

Then you would need scripts that run as often as you can on slave, to see if master is still there (sometimes referred to as a heartbeat).

if the Master drops, then it needs run a script to bring the floating ip up on the slave to resume service.

A Google search for heartbeat, failover should yield somehow to on the subject.

I have two HPUX boxes with each having one network card.

Can someone please help me provide the steps inorder to setup a floating IP on my system.

Please keep it detailed as I am naive.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Floating Point Division

Does anyone have a simple way of doing floating point ("fp") division? For example, if I divide 3 by 5, I can get 0.6. The built-in calc (`bc`) will perform fp multiplication, but not division, at least not straight-up (i.e., starting bc and just typing in 3/5). I am trying to do this using... (1 Reply)
Discussion started by: gsatch
1 Replies

2. Shell Programming and Scripting

IBM floating format

Dear Experts As I know by "od" command in unix shell we are able to convert file in xbit intiger or floating format to ascii. Is there any way to translate IBM floating data format to ascii?? I have a file which in some specific location there are numbers written in 4byte IBM floating but I didn't... (0 Replies)
Discussion started by: Reza Nazarian
0 Replies

3. Shell Programming and Scripting

Floating Division in Linux

Hi everyone , have a great day given below is the excerpt of code k=`grep -i success /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`; l=`grep -i fail /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`; m=`grep -i entertain /var/seamless/spool/tdr/ERS_$date1$time1* | wc -l`; n=$(($k+$l))... (3 Replies)
Discussion started by: Dastard
3 Replies

4. Shell Programming and Scripting

Rounding off the value of Floating point value

Hello, i have some variables say: x=1.4 y=3.7 I wish to round off these values to : x = 2 (after rounding off) y = 4 (after rounding off) I am stuck. Please help. (7 Replies)
Discussion started by: damansingh
7 Replies

5. AIX

NIM server setup on etherchannel setup environment

I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it? I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame. Any help is appreciated. (1 Reply)
Discussion started by: pdtak
1 Replies

6. Programming

Floating point error in C

Hi, see the simple code below double i; i=8080.9940; printf(" val :%.30f\n",i); output i m getting is val :8080.993999999999700000000000000 when i m expecting val :8080.9940 what happens?how can i avoid it? thanks... (2 Replies)
Discussion started by: Hara
2 Replies

7. Linux

Floating point exception !!!

Hi, I have linux fedora 4 ver., 2.6 kernal. And qmail & mysql & samba servers are already configured on this server. When I try to install any package like squidguard ,dansguardian,webmin,rsnapshots with command rpm -ivh . It is giving error as “Floating point exception" Snap View is... (3 Replies)
Discussion started by: ssk01
3 Replies

8. Shell Programming and Scripting

floating point numbers in if

# if > then > echo "1" > else > echo "2" > fi -bash: How can i compare floating point numbers inside statement? (15 Replies)
Discussion started by: proactiveaditya
15 Replies

9. Programming

Floating Point

Anyone help me i cant found the error of floating point if needed, i added the code complete #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> typedef struct { int hh; int mm; int ss; char nom; int punt; }cancion; typedef struct... (9 Replies)
Discussion started by: Slasho
9 Replies

10. UNIX for Advanced & Expert Users

What is floating IP

Hi, I need to understand the concept of floating IP and how can I get it working on my system. I am using Itanium boxes. I am naive so please help me from the very basics. (2 Replies)
Discussion started by: mohtashims
2 Replies
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 07:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy