Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2003 13:03:01 -0400
From:      "Michael W. Oliver" <michael@gargantuan.com>
To:        "Bryce Edwards" <bryce@bryce.net>, <freebsd-net@freebsd.org>
Subject:   Re: freevrrp
Message-ID:  <200307311303.18950.michael@gargantuan.com>
In-Reply-To: <01ae01c35785$127d1500$6501010a@gis2.com>
References:  <01ae01c35785$127d1500$6501010a@gis2.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

+--- On Thursday, July 31, 2003 12:59,
| Bryce Edwards proclaimed:
|
| I'm trying to run freevrrpd on a server with two interfaces for
| redundancy. I want them both to act as one IP in a master/slave setup.=20
| Here's the errors I'm getting:
|
| Jul 31 11:07:34 ns freevrrpd[207]: launching daemon in background mode
| Jul 31 11:07:34 ns freevrrpd[208]: initializing threads and all VRID
| Jul 31 11:07:34 ns freevrrpd[208]: reading configuration file
| /usr/local/etc/freevrrpd.conf
| Jul 31 11:07:34 ns freevrrpd[208]: cannot set ip addr a.b.c.131 for
| interface fxp0 (ioctl SIOCAIFADDR): File exists
| Jul 31 11:07:34 ns freevrrpd[208]: send ip =3D a.b.c.186, eth =3D xxxxxxx=
xxxx
| Jul 31 11:07:34 ns freevrrpd[208]: server state vrid 10: master
| Jul 31 11:07:34 ns freevrrpd[208]: server state vrid 10: backup
| Jul 31 11:07:37 ns freevrrpd[208]: cannot set ip addr a.b.c.131 for
| interface fxp1 (ioctl SIOCAIFADDR): File exists
| Jul 31 11:07:37 ns freevrrpd[208]: server state vrid 10: master
| Jul 31 11:07:37 ns freevrrpd[208]: send ip =3D a.b.c.186, eth =3D xxxxxxx=
xxxx
| Jul 31 11:08:08 ns last message repeated 30 times
| Jul 31 11:10:09 ns last message repeated 120 times
| Jul 31 11:19:03 ns last message repeated 529 times
| Jul 31 11:19:03 ns freevrrpd[208]: server state vrid 10: backup
| Jul 31 11:19:03 ns freevrrpd[208]: server state vrid 10: backup
| Jul 31 11:19:03 ns freevrrpd[208]: select on readfds fd_set failed:
| Interrupted system call
| Jul 31 11:19:04 ns freevrrpd[208]: cannot set ip addr a.b.c.131 for
| interface fxp1 (ioctl SIOCAIFADDR): File exists
| Jul 31 11:19:04 ns freevrrpd[208]: server state vrid 10: master
| Jul 31 11:21:13 ns freevrrpd[208]: restoring real MAC address:
| xxxxxxxxxxx for interface fxp0
| Jul 31 11:21:13 ns freevrrpd[208]: restoring real MAC address:
| xxxxxxxxxxx for interface fxp1
|
| Here's my config:
|
| [VRID]
| serverid =3D 10
| interface =3D fxp0
| priority =3D 255
| addr =3D a.b.c.131/26
| password =3D test
|
| [VRID]
| serverid =3D 10
| interface =3D fxp1
| priority =3D 254
| addr =3D a.b.c.131/26
| password =3D test
|
| And in rc.conf:
|
| ifconfig_fxp0=3D"inet a.b.c.186 netmask 255.255.255.192"
| ifconfig_fxp1=3D"inet a.b.c.187 netmask 255.255.255.192"
|
| TIA,
|
|     Bryce

Ni Bryce,

Try setting the mask on the VIP to /32 instead of /26.  IIRC, an alias=20
address must have a /32 mask, as the routing table already has an entry for=
=20
a.b.c.128/26 (in your case), which is why it is rejecting the VIP address=20
assignment.

=2D --=20
+-------------------------------------+------------------------------+
|       Michael W. Oliver, CCNP       | "The tree of liberty must be |
|         IPv6 & FreeBSD mark         | refreshed from time to time  |
|       michael@gargantuan.com        | with the blood of patriots   |
|   http://michael.gargantuan.com/    | and tyrants."                |
|  ASpath-tree, Looking Glass, etc.   | - President Thomas Jefferson |
|                                     +------------------------------+
|      gpg key - http://michael.gargantuan.com/gnupg/pubkey.asc      |
+--------------------------------------------------------------------+


=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/KUvWsWv7q8X6o8kRAk49AJ9LRes55+k+HHyzciVY9GSYdXlwpgCfZN8O
=46DovoIyfgFXTKtcP6vDlmLQ=3D
=3DJ2vb
=2D----END PGP SIGNATURE-----



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