Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Dec 2004 14:03:29 +0100
From:      Dean Benazic <dean@glasistre.hr>
To:        freebsd-pf@freebsd.org
Subject:   carp if setup - newbie
Message-ID:  <41B84D21.3090502@glasistre.hr>

next in thread | raw e-mail | index | archive | help
Hi I have Rebuild the kernels of my servers few times.
The in the latest version I use the patch verison 2004/12/08 on
FreeBSD-5.3-stable.

the problem:

srv1#ifconfig em1
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 111.111.111.20 netmask 0xffffff00 broadcast 111.111.111.255
        status: active

srv2#ifconfig em1
em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 111.111.111.21 netmask 0xffffff00 broadcast 111.111.111.255
        status: active

ping works.

on both servers I do:
#ifconfig carp5 create
#ifconfig carp5 vhid 125 111.111.111.25 netmask 255.255.255.255 vhid 1 
pass xxx

# sysctl -a | grep carp
net.inet.carp.allow: 1
net.inet.carp.preempt: 1
net.inet.carp.log: 1
net.inet.carp.arpbalance: 1

when I do:
srv2# ifconfig carp5 advskew 254

I does not go in BACKUP mode, why??

--------------------
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

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


--------------------
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"


thanks,

---
Dean Benazic
www.glasistre.hr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41B84D21.3090502>