carp if setup - newbie

Max Laier max at love2party.net
Thu Dec 9 16:41:36 PST 2004


On Thursday 09 December 2004 14:03, Dean Benazic wrote:
> when I do:
> srv2# ifconfig carp5 advskew 254
>
> I does not go in BACKUP mode, why??

Have to look at that, on my list now - thanks.

> --------------------
> ifconfig
>
> on OpenBSD i use 4 carp interfaces:
> #ifconfig carp4 inet 111.111.111.25 255.255.255.0 111.111.111.25 vhid 1
> pass xxx

You list the IP twice, is this intentional?

> and the carp interface is in the subnet of the phisical IF.
>
>
> when I try to do it on FreeBSD without the netmask keyword i get this:
>
> #carp5: flags=41<UP,RUNNING> mtu 1500
>         inet 111.111.111.25 netmask 0xff000000
>         carp: MASTER vhid 125 advbase 1 advskew 0
>
> netmask 0xff000000.
>
> when try to use the netmask keyword:
> #ifconfig carp5 vhid 125 111.111.111.25 netmask 255.255.255.0
> ifconfig: ioctl (SIOCAIFADDR): File exists

Did you have the the interface configured already at that point? Can you just 
try to do a simple:
  #iconfig carp5 netmask 255.255.255.0
afterwards? Why don't you use an explicit netmask in FreeBSD as well - 
supposing that the above error is from a "second attempt" - please tell me if 
that's not the case.

Works correctly for me (with the latest patch and ifconfigNG, though - can't 
go back easily.

> --------------------
> rc.conf
>
> which is the right way to define carp interfaces in rc.conf??
> i use:
> cloned_interfaces="carp0 carp1 carp2"
> ifconfig_carp2="inet 111.11.1.1 vhid 1 advskew 100 pass xxx"

Looks correct to me.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-pf/attachments/20041210/d948eea3/attachment.bin


More information about the freebsd-pf mailing list