Date: Fri, 10 Dec 2004 01:42:18 +0100 From: Max Laier <max@love2party.net> To: freebsd-pf@freebsd.org Cc: Dean Benazic <dean@glasistre.hr> Subject: Re: carp if setup - newbie Message-ID: <200412100142.19892.max@love2party.net> In-Reply-To: <41B84D21.3090502@glasistre.hr> References: <41B84D21.3090502@glasistre.hr>
next in thread | previous in thread | raw e-mail | index | archive | help
--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<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 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412100142.19892.max>