From owner-freebsd-net@FreeBSD.ORG Thu Oct 31 21:58:11 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E9BBE647 for ; Thu, 31 Oct 2013 21:58:11 +0000 (UTC) (envelope-from ole.myhre@dataoppdrag.no) Received: from mail2.dataoppdrag.no (mail2.dataoppdrag.no [IPv6:2a02:f58:7:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id A355E2683 for ; Thu, 31 Oct 2013 21:58:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail2.dataoppdrag.no (Postfix) with ESMTP id DCA234058C for ; Thu, 31 Oct 2013 22:58:09 +0100 (CET) Received: from mail2.dataoppdrag.no ([127.0.0.1]) by localhost (mail2.dataoppdrag.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SsO7wRr9ubbP for ; Thu, 31 Oct 2013 22:58:09 +0100 (CET) Received: from EX-MBX02.cust-d1.dataoppdrag.no (ex-mbx02.cust-d1.dataoppdrag.no [IPv6:2a02:f58:0:313:b898:7b82:13e0:c3bd]) by mail2.dataoppdrag.no (Postfix) with ESMTPS id B9DC340442 for ; Thu, 31 Oct 2013 22:58:09 +0100 (CET) Received: from EX-MBX01.cust-d1.dataoppdrag.no ([fe80::6db0:e393:6a07:457]) by EX-MBX02.cust-d1.dataoppdrag.no ([fe80::b898:7b82:13e0:c3bd%11]) with mapi id 14.02.0342.003; Thu, 31 Oct 2013 22:58:09 +0100 From: Ole Myhre To: "freebsd-net@freebsd.org" Subject: carp on 10.0 and ipv6 network route Thread-Topic: carp on 10.0 and ipv6 network route Thread-Index: Ac7WhEWGxJMHfReCSm+wVWEHkUtYuw== Date: Thu, 31 Oct 2013 21:58:08 +0000 Message-ID: Accept-Language: en-US, nb-NO Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.20.20.26] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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, 31 Oct 2013 21:58:12 -0000 Hi, I'm testing carp on 10.0-BETA2, and there seems to be different behaviour with the network route between IPv4 and IPv6 when using carp on interfaces. IPv4 routes are not present in the routing table when the interface is in BACKUP state (as expected), but IPv6 routes are present in the routing table in both BACKUP and MASTER state. This causes some issues with routing daemons as the network route is announced to other routers from both machines running carp. [root@rtr1 ~]# ifconfig em2 vhid 1 192.168.0.1/24 [root@rtr2 ~]# ifconfig em2 vhid 1 192.168.0.1/24 [root@rtr1 ~]# ifconfig em2 | grep carp carp: MASTER vhid 1 advbase 1 advskew 0 [root@rtr1 ~]# netstat -rn | grep 192.168.0.0 192.168.0.0/24 link#3 U 0 0 em2 [root@rtr1 ~]# [root@rtr2 ~]# ifconfig em2 | grep carp carp: BACKUP vhid 1 advbase 1 advskew 0 [root@rtr2 ~]# netstat -rn | grep 192.168.0.0 [root@rtr2 ~]# [root@rtr1 ~]# ifconfig em2 inet6 2001:db8::1/64 vhid 1 [root@rtr2 ~]# ifconfig em2 inet6 2001:db8::1/64 vhid 1 [root@rtr1 ~]# ifconfig em2 | grep carp carp: MASTER vhid 1 advbase 1 advskew 0 [root@rtr1 ~]# netstat -rn | grep 2001:db8::/64 2001:db8::/64 link#3 U = em2 [root@rtr1 ~]# [root@rtr2 ~]# ifconfig em2 | grep carp carp: BACKUP vhid 1 advbase 1 advskew 0 [root@rtr2 ~]# netstat -rn | grep 2001:db8::/64 2001:db8::/64 link#3 U = em2 [root@rtr2 ~]# Thanks, Ole