From owner-freebsd-net@FreeBSD.ORG Thu Jan 24 17:26:47 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E541373F for ; Thu, 24 Jan 2013 17:26:47 +0000 (UTC) (envelope-from ask@develooper.com) Received: from mbox1.develooper.com (mbox1.develooper.com [207.171.7.178]) by mx1.freebsd.org (Postfix) with ESMTP id B0AF68D1 for ; Thu, 24 Jan 2013 17:26:47 +0000 (UTC) Received: from mbox1.develooper.com (mbox1.develooper.com [127.0.0.1]) by mbox1.develooper.com (Postfix) with ESMTP id 46986175A67 for ; Thu, 24 Jan 2013 09:26:47 -0800 (PST) Received: (qmail 15738 invoked from network); 24 Jan 2013 17:26:47 -0000 Received: from cpe-76-172-28-38.socal.res.rr.com (HELO embla.bn.dev) (ask@mail.dev@76.172.28.38) by smtp.develooper.com with ESMTPA; 24 Jan 2013 17:26:47 -0000 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Carp configuration errors Message-Id: <0154442B-C0E9-4731-A85E-1A44F3ED1F47@develooper.com> Date: Thu, 24 Jan 2013 09:26:46 -0800 To: freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 17:26:48 -0000 Hello, After upgrading to 9.1 it seems like carp doesn't pay attention to = advskew anymore. I have two boxes each setup with carp0 and carp1; the = intention is that in regular operation proxy1 is master for carp0 and = proxy2 for carp1. However, whichever box comes up second is BACKUP for = both. To make IPv6 CARP work I am using the patch from = http://www.freebsd.org/cgi/query-pr.cgi?pr=3D127050 I don't know if it is related, but when booting I see a lot of messages = like ifa_del_loopback_route: deletion failed ifa_add_loopback_route: insertion failed ifa_del_loopback_route: deletion failed ifa_add_loopback_route: insertion failed ifa_del_loopback_route: deletion failed ifa_add_loopback_route: insertion failed ifa_del_loopback_route: deletion failed ifa_add_loopback_route: insertion failed in dmesg. I am including my rc.conf files for each host below. Any hints or = suggestions will be appreciated. Ask # proxy1 sshd_enable=3D"YES" ntpd_enable=3D"YES" ntpd_flags=3D"-p /var/run/ntpd.pid -f /etc/ntp/ntpd.drift -g" hostname=3D"proxy1.dev" ifconfig_vr0=3D"inet 10.0.100.31/24" ifconfig_vr2=3D"inet 207.171.7.31/24" ifconfig_vr2_ipv6=3D"inet6 2607:f238:3::1:1/64" ifconfig_carp0=3D"vhid 40 advskew 50 pass y4t8gwtgjkq4g 207.171.7.40" ipv4_addrs_carp0=3D"207.171.7.41-49/24" ifconfig_carp0_ipv6=3D"inet6 2607:f238:3::1:41/64" ifconfig_carp0_alias0=3D"inet6 2607:f238:3::1:40/64" ifconfig_carp0_alias1=3D"inet6 2607:f238:3::1:42/64" ifconfig_carp0_alias2=3D"inet6 2607:f238:3::1:43/64" ifconfig_carp0_alias3=3D"inet6 2607:f238:3::1:44/64" ifconfig_carp0_alias4=3D"inet6 2607:f238:3::1:45/64" ifconfig_carp0_alias5=3D"inet6 2607:f238:3::1:46/64" ifconfig_carp0_alias6=3D"inet6 2607:f238:3::1:47/64" ifconfig_carp0_alias7=3D"inet6 2607:f238:3::1:48/64" ifconfig_carp0_alias8=3D"inet6 2607:f238:3::1:49/64" ifconfig_carp1=3D"vhid 50 advskew 250 pass hsjrthvruwybwt 207.171.7.50" ipv4_addrs_carp1=3D"207.171.7.51-59/24" ifconfig_carp1_ipv6=3D"inet6 2607:f238:3::1:51/64" ifconfig_carp1_alias0=3D"inet6 2607:f238:3::1:50/64" ifconfig_carp1_alias1=3D"inet6 2607:f238:3::1:52/64" ifconfig_carp1_alias2=3D"inet6 2607:f238:3::1:53/64" ifconfig_carp1_alias3=3D"inet6 2607:f238:3::1:54/64" ifconfig_carp1_alias4=3D"inet6 2607:f238:3::1:55/64" ifconfig_carp1_alias5=3D"inet6 2607:f238:3::1:56/64" ifconfig_carp1_alias6=3D"inet6 2607:f238:3::1:57/64" ifconfig_carp1_alias7=3D"inet6 2607:f238:3::1:58/64" ifconfig_carp1_alias8=3D"inet6 2607:f238:3::1:59/64" ifconfig_vr1=3D"down" defaultrouter=3D"207.171.7.1" ipv6_defaultrouter=3D"2607:F238:3::1" ifconfig_lo0_alias0=3D"inet 127.0.0.2" ifconfig_lo0_alias1=3D"inet 127.0.0.3" cloned_interfaces=3D"carp0 carp1" static_routes=3D"${static_routes} vpn" route_vpn=3D"-net 10.0.0.0/16 10.0.100.1" pf_enable=3D"NO" pflog_enable=3D"NO" haproxy_enable=3D"YES" haproxy_config=3D"/etc/haproxy.conf" ####### # proxy2 sshd_enable=3D"YES" ntpd_enable=3D"YES" ntpd_flags=3D"-p /var/run/ntpd.pid -f /etc/ntp/ntpd.drift -g" hostname=3D"proxy2.dev" ifconfig_vr0=3D"inet 10.0.100.32/24" ifconfig_vr2=3D"inet 207.171.7.32/24" ifconfig_vr2_ipv6=3D"inet6 2607:f238:3::1:2/64" ifconfig_carp0=3D"vhid 40 advskew 150 pass y4t8gwtgjkq4g 207.171.7.40" ipv4_addrs_carp0=3D"207.171.7.41-49/24" ifconfig_carp0_ipv6=3D"inet6 2607:f238:3::1:41/64" ifconfig_carp0_alias0=3D"inet6 2607:f238:3::1:40/64" ifconfig_carp0_alias1=3D"inet6 2607:f238:3::1:42/64" ifconfig_carp0_alias2=3D"inet6 2607:f238:3::1:43/64" ifconfig_carp0_alias3=3D"inet6 2607:f238:3::1:44/64" ifconfig_carp0_alias4=3D"inet6 2607:f238:3::1:45/64" ifconfig_carp0_alias5=3D"inet6 2607:f238:3::1:46/64" ifconfig_carp0_alias6=3D"inet6 2607:f238:3::1:47/64" ifconfig_carp0_alias7=3D"inet6 2607:f238:3::1:48/64" ifconfig_carp0_alias8=3D"inet6 2607:f238:3::1:49/64" ifconfig_carp1=3D"vhid 50 advskew 100 pass hsjrthvruwybwt 207.171.7.50" ipv4_addrs_carp1=3D"207.171.7.51-59/24" ifconfig_carp1_ipv6=3D"inet6 2607:f238:3::1:51/64" ifconfig_carp1_alias0=3D"inet6 2607:f238:3::1:50/64" ifconfig_carp1_alias1=3D"inet6 2607:f238:3::1:52/64" ifconfig_carp1_alias2=3D"inet6 2607:f238:3::1:53/64" ifconfig_carp1_alias3=3D"inet6 2607:f238:3::1:54/64" ifconfig_carp1_alias4=3D"inet6 2607:f238:3::1:55/64" ifconfig_carp1_alias5=3D"inet6 2607:f238:3::1:56/64" ifconfig_carp1_alias6=3D"inet6 2607:f238:3::1:57/64" ifconfig_carp1_alias7=3D"inet6 2607:f238:3::1:58/64" ifconfig_carp1_alias8=3D"inet6 2607:f238:3::1:59/64" ifconfig_vr1=3D"down" defaultrouter=3D"207.171.7.1" ipv6_defaultrouter=3D"2607:F238:3::1" ifconfig_lo0_alias0=3D"inet 127.0.0.2" ifconfig_lo0_alias1=3D"inet 127.0.0.3" cloned_interfaces=3D"carp0 carp1" static_routes=3D"${static_routes} vpn" route_vpn=3D"-net 10.0.0.0/16 10.0.100.1" pf_enable=3D"NO" pflog_enable=3D"NO" haproxy_enable=3D"YES" haproxy_config=3D"/etc/haproxy.conf" svscan_enable=3D"NO" svscan_servicedir=3D"/etc/svscan"