From owner-freebsd-net@FreeBSD.ORG Wed Aug 27 00:34:51 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABA60F68 for ; Wed, 27 Aug 2014 00:34:51 +0000 (UTC) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79B8436EE for ; Wed, 27 Aug 2014 00:34:51 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id at20so12664875iec.11 for ; Tue, 26 Aug 2014 17:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=f90euNXBhGZkMK7SN4CQeajh0375LTo1YJpEbYcpQ3E=; b=BomQTTjhId7Y1l46TgLTBsNgAMrkDMjOLrbafWb6hSX/liz6nrspdRrzs+IQHCgfBE C6nmT3kwfNt2TH94la5JxHO9INmJjw0CRK+KtG3Y395si6TuoPSx3EM5DP3hNFRsuNat oijEaLdJHMExyi36hLVld8+RgjTbUNF64I7Wxv/zUhbddQtKprLULNyBWniwanlyndVh NjD7TUUVzejitjD//5eVu2VIjy5Fwp5KfgVeq9vnIcli6bAgLiVxL5TJhj1aULuF5SFe ihgDDHwdnKmn/YjxRSDg2RX6ZG9X7HVRKlQGnnvtTU4Wf53lYfLU+VGG9A9hPYfkbnoK t5jQ== MIME-Version: 1.0 X-Received: by 10.50.50.175 with SMTP id d15mr25840524igo.35.1409099690696; Tue, 26 Aug 2014 17:34:50 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.107.163.148 with HTTP; Tue, 26 Aug 2014 17:34:50 -0700 (PDT) In-Reply-To: <88a42e1006e3fac7508a9419e342f1b2@mail.jonathanprice.org> References: <88a42e1006e3fac7508a9419e342f1b2@mail.jonathanprice.org> Date: Tue, 26 Aug 2014 17:34:50 -0700 X-Google-Sender-Auth: M6TkYIDctWHZv0sNjUGvi2kdRAI Message-ID: Subject: Re: Should I be using ipv6_activate_all_interfaces or ip6addrctl_policy="ipv6_prefer" From: Kevin Oberman To: freebsd@jonathanprice.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2014 00:34:51 -0000 On Tue, Aug 26, 2014 at 3:40 AM, wrote: > Hello, > > I am configuring a server with IPv4 and IPv6 addresses and have noticed > that FreeBSD seems to be preferring IPv4, such as when establishing SSH > connections. > > After reading through /etc/defaults/rc.conf, and later > /etc/rc.d/ip6addrctl I have come to the conclusion that I have two ways to > tell FreeBSD to prefer IPv6: > > 1) Add ipv6_activate_all_interfaces to /etc/rc.conf > 2) Add ip6addrctl_policy="ipv6_prefer" to /etc/rc.conf > > Could anybody with a little more knowledge on the matter explain to me > which of the two options is more preferential? > > If it helps, I only have a single NIC in the server, and it does not > function as a gateway. > > Thanks, > Jonathan. > > Can you confirm that IPv6 is actually working between the systems in question? ping6 to it is a trivial test.Many issues can arise when trying ot get IPv6 running. Firewalls are a common issue. What output do you get from "ip6addrctl show"? netstat -rnf inet6? -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com