From owner-freebsd-net@freebsd.org Wed Jul 4 14:02:26 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DF261039F1B for ; Wed, 4 Jul 2018 14:02:26 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 122C97CC38 for ; Wed, 4 Jul 2018 14:02:25 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id w64E2Ne6004476 for ; Wed, 4 Jul 2018 16:02:23 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 2EEEBB2B for ; Wed, 4 Jul 2018 16:02:23 +0200 (CEST) Subject: Re: wlan0 && IPv6 To: freebsd-net@freebsd.org References: <20180704133029.GA19087@sh4-5.1blu.de> From: Harry Schmalzbauer Organization: OmniLAN Message-ID: <6d1fc346-2122-5f19-04d7-6009a23104f7@omnilan.de> Date: Wed, 4 Jul 2018 16:02:22 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180704133029.GA19087@sh4-5.1blu.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Greylist: ACL 130 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Wed, 04 Jul 2018 16:02:23 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 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, 04 Jul 2018 14:02:26 -0000 Am 04.07.2018 um 15:30 schrieb Matthias Apitz: > Hello, > > This morning I was in the Wifi area of the Munich Filmfest. They give the SSID > and the WPA-2 password to anybody. While my FreeBSD (CURRENT) could associate fine, > I did not get any IP addr. My Linux cellphone was working fine out of > the box and showed an IPv6 addr in the network interface. > > How this must be configured in FreeBSD? It was porbably v6 only (W)LAN. dhclient(8) in base does only care about IPv4. For IPv6 stateless, you need to watch sysctl(8) net.inet6.ip6.no_radr and ifconfig(8) -no_radr By default, if set ipv6_activate_all_interfaces="YES" in rc.conf(5), I think you should get a stateless IPv6 address (since net.inet6.ip6.no_radr=0, hence no no_radr flag for your IPv6-enablef interface (wlan0)), as long as there's a router in the (W)LAN advertising. For stateful IPv6, you must install somethink like KAME-dhcp6 (ports/net/dhcp6). But the latter isn't widely deployed, most setups I've seen have routers advertising and clients with stateless setup. Can't tell you out of mind what your rc.conf(5) should look like to enable stateless config for distinct interfaces, but I'm sure you'll quickly find if you look for the above mentiond key words. Viel Spass auf'm Filmfest :-) -harry