Carp

Artyom Viklenko artem at aws-net.org.ua
Thu Jul 20 13:13:41 UTC 2006


<цитата от="Dan Massey">
> 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"

use only one cloned_interfaces="carp0 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
>
> _______________________________________________
> freebsd-isp at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "freebsd-isp-unsubscribe at freebsd.org"
>


-- 
           Sincerely yours,
                            Artyom Viklenko.
-------------------------------------------------------
artem at aws-net.org.ua | http://www.aws-net.org.ua/~artem
FreeBSD: The Power to Serve   -  http://www.freebsd.org




More information about the freebsd-isp mailing list