Cant setup carp as BACKUP

Ricardo Augusto de Souza ricardo.souza at cmtsp.com.br
Mon May 11 13:57:18 UTC 2009


Hi,

i have 2 servers running FreeBSD 7.1 on IBM 3550.
I configured 2 carp: internal and external carps.

Internal carp is working fine, but external one are MASTER on both servers.

Trinity# cat rc.conf|grep carp
cloned_interfaces="carp0 carp1"
ifconfig_carp1="up 10.100.0.119/24 vhid 2 pass fw_cmt123"
ifconfig_carp2="up 200.143.111.113/28 vhid 1 pass fw_cmt123"
#


carp1: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
        inet 10.100.0.119 netmask 0xffffff00
        carp: MASTER vhid 2 advbase 1 advskew 0
ng1: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
        inet 172.16.0.1 --> 172.16.0.2 netmask 0xffffffff
carp2: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
        inet 200.143.111.113 netmask 0xfffffff0
        carp: MASTER vhid 1 advbase 1 advskew 0


Ajax# cat rc.conf |grep carp
cloned_interfaces="carp0 carp1"
#ifconfig_carp0="up 200.143.111.113/28 vhid 1 advskew 100 pass fw_cmt123"
ifconfig_carp2="vhid 1 advskew 100 pass fw_cmt123 200.143.111.113/28"
ifconfig_carp1="up 10.100.0.119/24 vhid 2 advskew 100 pass fw_cmt123"
Ajax#

carp1: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
        inet 10.100.0.119 netmask 0xffffff00
        carp: BACKUP vhid 2 advbase 1 advskew 100
carp2: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
        inet 200.143.111.113 netmask 0xfffffff0
        carp: MASTER vhid 1 advbase 1 advskew 100
Ajax#

How do i set carp2 on Ajax to be BACKUP?

AT this configuration,  most packets to 200.143.111.113 are going to Trinity and some going to Ajax.

Thanks




More information about the freebsd-questions mailing list