Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/net
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19612
Modified Files:
ucarp.info
Log Message:
Doc Fixes to make this more generic
Index: ucarp.info
===================================================================
RCS file: /cvsroot/fink/dists/10.3/unstable/main/finkinfo/net/ucarp.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ucarp.info 14 May 2004 19:41:16 -0000 1.1
+++ ucarp.info 14 May 2004 19:51:29 -0000 1.2
@@ -20,11 +20,12 @@
DescPort: <<
------------------------ USAGE ------------------------
-The server will usually be installed as : /usr/local/sbin/ucarp
+The server will usually be installed as : /sw/sbin/ucarp
Everything is driven through command-line options.
-In order to see the list of available options, try : /usr/local/sbin/ucarp -h
+In order to see the list of available options, try : /sw/sbin/ucarp -h
Better than a long technical discussion, here's a real-life setup example.
+This is tailored for Linux and merely shows the concept.
Your company has an internal mail relay whose IP address is 10.1.1.252. Every
user has configured his mail client with that host or IP address and the
@@ -36,38 +37,16 @@
Let's see how to assign the same additionnal IP address (10.1.1.252) to both
servers, so that when one goes down, the other one goes up.
-First, we will create a script that brings the virtual IP address up. Let's
-save that file as /etc/vip-up.sh :
-
-#! /bin/sh
-/sbin/ip addr add 10.1.1.252/24 dev eth0
-
-Now another script to bring it down, /etc/vip-down.sh :
-
-#! /bin/sh
-/sbin/ip addr del 10.1.1.252/24 dev eth0
-
-Of course, anything can go in these scripts. For instance, you may want to add
-routes, to add something to log files or to send mail. And last, but not
-least, you can use a script that will connect to your switches and flush their
-ARP cache.
-The interface name is passed as an argument to the called scripts, so feel
-free to replace "eth0" with "$1" in the previous examples.
-
-Don't forget to make those files executable :
-
-chmod +x /etc/vip-up.sh /etc/vip-down.sh
-
Right. What we need now is an identifier for the virtual IP. Let's take "42".
And we also need a password. Let's take "love".
Now, on the first host (whoose real IP is 10.1.1.1), run :
-/usr/local/sbin/ucarp -v 42 -p love -a 10.1.1.252 -s 10.1.1.1 &
+/sw/sbin/ucarp -v 42 -p love -a 10.1.1.252 -s 10.1.1.1 &
On the second host, whose real IP is 10.1.1.2, run :
-/usr/local/sbin/ucarp -v 42 -p love -a 10.1.1.252 -s 10.1.1.2 &
+/sw/sbin/ucarp -v 42 -p love -a 10.1.1.252 -s 10.1.1.2 &
You should see that one of those hosts quickly becomes the master, and the
other one the backup. Related scripts are spawned on change.
@@ -86,10 +65,8 @@
server will wait for an unresponsive master before considering it as dead, and
becoming the new master. In the original protocol, the ratio is 3. This is
also the default when this command-line switch is missing.
-
-
-
<<
+
License: BSD
Source: http://www.pureftpd.org/ucarp/%n-%v.tar.bz2
Source-MD5: 9a1adb8c6e89b24d10fa18226b7e4f67
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits