Date: Thu, 20 Jul 2006 13:35:56 +0100 From: Dan Massey <dan@gconnect.net> To: <freebsd-isp@freebsd.org> Subject: Carp Message-ID: <C0E5373C.1C3D1%dan@gconnect.net>
next in thread | raw e-mail | index | archive | help
Hi all
I am attempting (and failing) to create a fault-tolerant mail relay server
for our dialup users. The plan is to have 2 A records as such:
mailoutserver A 192.168.1.10
mailoutserver A 192.168.1.11
Which will roughly round robin for me, then to have 2 mailservers as
follows:
server1
Ip 192.168.1.100
carp0 vhid1 192.168.1.10 (master-server)
carp1 vhid2 192.168.1.11 (backup)
server2
Ip 192.168.1.101
carp0 vhid1 192.168.1.10 (backup)
carp1 vhid2 192.168.1.11 (master-server)
My config in /etc/rc.conf is as follows:
ifconfig_fxp0="inet 192.168.1.100 netmask 255.255.255.0"
cloned_interfaces="carp0"
ifconfig_carp0="vhid 1 pass XXXX 192.168.1.10 255.255.255.0"
cloned_interfaces="carp1"
ifconfig_carp1="vhid 2 advskew 100 pass XXXX 192.168.1.11 255.255.255.0"
However when I reboot only the carp1 inteface comes up when I type ifconfig:
carp1: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
inet 192.168.1.11 netmask 0xffffff00
carp: BACKUP vhid 2 advbase 1 advskew 100
Have I got this totally wrong? Is this possible?
Any help would be appreciated.
Dan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C0E5373C.1C3D1%dan>
