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
load_dat_font(3alleg4)						  Allegro manual					    load_dat_font(3alleg4)

NAME
load_dat_font - Loads a FONT from an Allegro datafile. SYNOPSIS
#include <allegro.h> FONT *load_dat_font(const char *filename, RGB *pal, void *param) DESCRIPTION
Loads a FONT from an Allegro datafile. You can set param parameter to point to an array that holds two strings that identify the font and the palette in the datafile by name. The first string in this list is the name of the font. You can pass NULL here to just load the first font found in the datafile. The second string can be used to specify the name of the palette associated with the font. This is only returned if the pal parameter is not NULL. If you pass NULL for the name of the palette, the last palette found before the font was found is returned. You can also pass NULL for param, which is treated as if you had passed NULL for both strings separately. In this case, the function will simply load the first font it finds from the datafile and the palette that precedes it. For example, suppose you have a datafile named `fonts.dat' with the following contents: FONT FONT_1_DATA FONT FONT_2_DATA FONT FONT_3_DATA PAL FONT_1_PALETTE PAL FONT_2_PALETTE Then the following code will load FONT_1_DATA as a FONT and return FONT_1_PALETTE as the palette: FONT *f; PALETTE pal; char *names[] = { "FONT_1_DATA", "FONT_1_PALETTE" } f = load_dat_font("fonts.dat", pal, names); If instead you want to load the second font, FONT_2, from the datafile, you would use: FONT *f; PALETTE pal; char *names[] = { "FONT_2_DATA", "FONT_2_PALETTE" } f = load_dat_font("fonts.dat", pal, names); If you want to load the third font, but not bother with a palette, use: FONT *f; char *names[] = { "FONT_3_DATA", NULL } f = load_dat_font("fonts.dat", NULL, names); RETURN VALUE
Returns a pointer to the font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to avoid memory leaks. SEE ALSO
register_font_file_type(3alleg4), load_font(3alleg4) Allegro version 4.4.2 load_dat_font(3alleg4)
All times are GMT -4. The time now is 07:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy