From owner-freebsd-net@freebsd.org Thu Jul 5 10:22:46 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 810E4103E50F for ; Thu, 5 Jul 2018 10:22:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15ED774004 for ; Thu, 5 Jul 2018 10:22:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [80.187.100.84] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1fb1PH-0000ng-MY; Thu, 05 Jul 2018 12:22:35 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id w65AMZ2Z002236 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 5 Jul 2018 12:22:35 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id w65AMZnx002235; Thu, 5 Jul 2018 12:22:35 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 5 Jul 2018 12:22:35 +0200 From: Matthias Apitz To: Harry Schmalzbauer Cc: freebsd-net@freebsd.org Subject: Re: wlan0 && IPv6 Message-ID: <20180705102235.GA2187@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Harry Schmalzbauer , freebsd-net@freebsd.org References: <20180704133029.GA19087@sh4-5.1blu.de> <6d1fc346-2122-5f19-04d7-6009a23104f7@omnilan.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6d1fc346-2122-5f19-04d7-6009a23104f7@omnilan.de> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 80.187.100.84 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: Thu, 05 Jul 2018 10:22:46 -0000 El día miércoles, julio 04, 2018 a las 04:02:22p. m. +0200, Harry Schmalzbauer escribió: > 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 :-) Thanks for the reply. I have now in rc.conf the following lines: /etc/rc.conf wlans_ath0="wlan0" ifconfig_wlan0="WPA DHCP" # IPv6 starts here # add ipv6 entry for wlan0 ipv6_network_interfaces="wlan0" # set up wlan0 to accept rtadv(8) advertisements ifconfig_wlan0_ipv6="inet6 accept_rtadv" ip6addrctl_enable="YES" ip6addrctl_policy="ipv6_prefer" ipv6_activate_all_interfaces="YES" # ifconfig_wlan0_ipv6="YES" # IPv6 end here And when the interface associates it gives the output attached below for ifconfig and netstat; but nothing is working, esp. not # ping6 www.muc.de I have no idea, what's missing... It's not an big issue for me, as I can use my Linux phone as a hotspot, but would be nice to get this working for the next year's filmfest. matthias $ ifconfig wlan0 wlan0: flags=8843 metric 0 mtu 1500 ether 90:48:9a:92:9e:43 inet6 fe80::9248:9aff:fe92:9e43%wlan0 prefixlen 64 scopeid 0x2 nd6 options=21 media: IEEE 802.11 Wireless Ethernet MCS mode 11ng status: associated ssid filmfestguest channel 12 (2467 MHz 11g ht/20) bssid 00:0f:c9:16:ad:f3 regdomain 108 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 20 bmiss 7 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 4 shortgi wme burst roaming MANUAL groups: wlan $ netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire 127.0.0.1 link#1 UH lo0 Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 ::1 link#1 UH lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 fe80::/10 ::1 UGRS lo0 fe80::%lo0/64 link#1 U lo0 fe80::1%lo0 link#1 UHS lo0 fe80::%wlan0/64 link#2 U wlan0 fe80::9248:9aff:fe92:9e43%wlan0 link#2 UHS lo0 ff02::/16 ::1 UGRS lo0 # Generated by resolvconf nameserver 192.168.2.1 -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!