From owner-freebsd-pf@FreeBSD.ORG Fri Dec 10 00:41:36 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3313516A4CE for ; Fri, 10 Dec 2004 00:41:36 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFDB843D2D for ; Fri, 10 Dec 2004 00:41:35 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CcYqk-0007S0-00; Fri, 10 Dec 2004 01:41:34 +0100 Received: from [217.83.2.154] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1CcYqk-0002to-00; Fri, 10 Dec 2004 01:41:34 +0100 From: Max Laier To: freebsd-pf@freebsd.org Date: Fri, 10 Dec 2004 01:42:18 +0100 User-Agent: KMail/1.7.1 References: <41B84D21.3090502@glasistre.hr> In-Reply-To: <41B84D21.3090502@glasistre.hr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart9943713.RBQ8lF0iti"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200412100142.19892.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: Dean Benazic Subject: Re: carp if setup - newbie X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 00:41:36 -0000 --nextPart9943713.RBQ8lF0iti Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D41 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 ju= st=20 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 -=20 supposing that the above error is from a "second attempt" - please tell me = if=20 that's not the case. Works correctly for me (with the latest patch and ifconfigNG, though - can'= t=20 go back easily. > -------------------- > rc.conf > > which is the right way to define carp interfaces in rc.conf?? > i use: > cloned_interfaces=3D"carp0 carp1 carp2" > ifconfig_carp2=3D"inet 111.11.1.1 vhid 1 advskew 100 pass xxx" Looks correct to me. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart9943713.RBQ8lF0iti Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBuPDrXyyEoT62BG0RApCcAJwIBFlyGJY1uCL5hc78+JV1TJqldgCfSO7L lDg1vWxNsp+VW/Inr6r05Pk= =k+Z+ -----END PGP SIGNATURE----- --nextPart9943713.RBQ8lF0iti--