just realized I didnt reply to the list so someone could pick up the
diff for commit consideration
-------- Originalnachricht --------
Betreff: Re: hostname.carp - CARP Bootup Woes Correct layout / format
for >=5.9 - man page for hostname.carp
Datum: 20.05.2016 17:30
Von: Philipp Buehler <e1c1bac6253dc54a1e89ddc046585...@posteo.net>
An: Andy Lemin <a...@brandwatch.com>
Am 20.05.2016 17:02 schrieb Andy Lemin:
Just if it helps anyone else having similar problems with CARP (was
hoping
someone would make a comment about the man page for hostname.carp if it
is
going to be so fussy about the order of parameters).
Thanks for boggling this down. I dont see a need for hostname.carp(5).
Extending the hostname.if(5) would be sufficient. Which by the way gives
some
subtle clue:
==
Any lines not matching these packed formats are passed
directly to ifconfig(8). The packed formats are converted using a
somewhat inflexible parser and the administrator should not expect
magic
-- if in doubt study ifconfig(8) and the per-driver manual pages to
see
what arguments are permitted.
==
The driver (carp(4)) manpage isn't much of a clue on positionals, but
ifconfig(8) is:
==
ifconfig carp-interface [advbase n] [advskew n] [balancing mode]
[carpnodes vhid:advskew,vhid:advskew,...] [carpdev iface]
[[-]carppeer peer_address] [pass passphrase] [state state]
[vhid host-id]
==
The intermix with inet[6] is a different story..
LSS: An example like there is for a bridge setup in hostname.if(5) would
be nice.
Shot across:
--- hostname.if.5 Sat Jun 6 15:13:07 2015
+++ hostname.if.5.carpexp Wed May 11 22:51:32 2016
@@ -282,6 +282,20 @@
static fxp0 8:0:20:1e:2f:2b
up # and finally enable it
.Ed
+.Sh CARP INTERFACE CONFIGURATION
+To enable a
+.Xr carp 4
+interface, the options have to be put in order as described in
+.Xr ifconfig 8 .
+Having a valid carppeer needs to have the inet/inet6 configuration
+first.
+.Pp
+For example:
+.Bd -literal -offset indent
+carpdev ix0 advbase 2 advskew 10 pass carppass vhid 1
+inet 10.2.1.254 255.255.255.0 10.2.1.255
+carppeer 10.2.1.253
+.Ed
.Sh FILES
.Bl -tag -width "/etc/hostname.XXXXXX"
.It Pa /etc/hostname.XXX
--
pb