diff options
author | glebius <glebius@FreeBSD.org> | 2005-04-07 14:20:34 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-04-07 14:20:34 +0000 |
commit | 18ca5d4e9f9dabeabc3b2d21be7fdc997d2d6e2c (patch) | |
tree | 11de25ab9cd6abd558a93d2def8055b635a21de9 /share/man/man4/carp.4 | |
parent | 75b2f0b4ccf680c5483f79b5387e928c9fe69bfe (diff) | |
download | FreeBSD-src-18ca5d4e9f9dabeabc3b2d21be7fdc997d2d6e2c.zip FreeBSD-src-18ca5d4e9f9dabeabc3b2d21be7fdc997d2d6e2c.tar.gz |
- Be more informative about advbase and advskew. [1]
- Fix ifconfig commands. Replace 'mekmitasdigoat' with
'foobar'. While the former is more cool, the latter
makes example lines shorter.
Wording by: scottl
MFC after: 3 days
Diffstat (limited to 'share/man/man4/carp.4')
-rw-r--r-- | share/man/man4/carp.4 | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/share/man/man4/carp.4 b/share/man/man4/carp.4 index 29e43d4..bcd60ce 100644 --- a/share/man/man4/carp.4 +++ b/share/man/man4/carp.4 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 23, 2005 +.Dd April 7, 2005 .Dt CARP 4 .Os .Sh NAME @@ -70,6 +70,23 @@ is the master for a virtual host, and which is used to authenticate .Nm advertisements. +The +.Cm advbase +parameter stands for +.Qq advertisement base . +It is measured in seconds and specifies the base of the adverisement interval. +The +.Cm advskew +parameter stands for +.Qq advertisement skew . +It is measured in 1/256 of seconds. +It is added to the base advertisement interval to make one host advertise +a bit slower that the other does. +Both +.Cm advbase +and +.Cm advskew +are put inside CARP advertisments. These configurations can be done using .Xr ifconfig 8 , or through the @@ -127,22 +144,18 @@ configured on one physical interface and 192.168.2.y/24 on another. This is the setup for host A: .Bd -literal -offset indent ifconfig carp0 create -ifconfig carp0 vhid 1 pass mekmitasdigoat 192.168.1.1 \e - 255.255.255.0 +ifconfig carp0 vhid 1 pass foobar 192.168.1.1/24 ifconfig carp1 create -ifconfig carp1 vhid 2 pass mekmitasdigoat 192.168.2.1 \e - 255.255.255.0 +ifconfig carp1 vhid 2 pass foobar 192.168.2.1/24 .Ed .Pp The setup for host B is identical, but it has a higher .Cm advskew : .Bd -literal -offset indent ifconfig carp0 create -ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat \e - 192.168.1.1 255.255.255.0 +ifconfig carp0 vhid 1 advskew 100 pass foobar 192.168.1.1/24 ifconfig carp1 create -ifconfig carp1 vhid 2 advskew 100 pass mekmitasdigoat \e - 192.168.2.1 255.255.255.0 +ifconfig carp1 vhid 2 advskew 100 pass foobar 192.168.2.1/24 .Ed .Pp Because of the preempt option, when one of the physical interfaces of @@ -169,11 +182,9 @@ of 100 on the second virtual host means that its advertisements will be sent out slightly less frequently. .Bd -literal -offset indent ifconfig carp0 create -ifconfig carp0 vhid 1 pass mekmitasdigoat 192.168.1.10 \e - 255.255.255.0 +ifconfig carp0 vhid 1 pass foobar 192.168.1.10/24 ifconfig carp1 create -ifconfig carp1 vhid 2 advskew 100 pass mekmitasdigoat \e - 192.168.1.10 255.255.255.0 +ifconfig carp1 vhid 2 advskew 100 pass foobar 192.168.1.10/24 .Ed .Pp The configuration for host B is identical, except the @@ -181,11 +192,9 @@ The configuration for host B is identical, except the is on virtual host 1 rather than virtual host 2. .Bd -literal -offset indent ifconfig carp0 create -ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat \e - 192.168.1.10 255.255.255.0 +ifconfig carp0 vhid 1 advskew 100 pass foobar 192.168.1.10/24 ifconfig carp1 create -ifconfig carp1 vhid 2 pass mekmitasdigoat 192.168.1.10 \e - 255.255.255.0 +ifconfig carp1 vhid 2 pass foobar 192.168.1.10/24 .Ed .Pp Finally, the ARP balancing feature must be enabled on both hosts: |