RES: Cant setup carp as BACKUP

Ricardo Augusto de Souza ricardo.souza at cmtsp.com.br
Mon May 11 15:58:37 UTC 2009


Anyone know how do i 'force' a carp to be backup?
I set a advskew higher than the master but it comes up as master.
;(

-----Mensagem original-----
De: owner-freebsd-questions at freebsd.org [mailto:owner-freebsd-questions at freebsd.org] Em nome de Ricardo Augusto de Souza
Enviada em: segunda-feira, 11 de maio de 2009 10:46
Para: freebsd-questions at freebsd.org
Assunto: Cant setup carp as BACKUP

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


_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list