Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2018 10:49:47 +0200
From:      Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
To:        freebsd-net@freebsd.org, guru@unixarea.de
Subject:   Re: wlan0 && IPv6
Message-ID:  <228274ff-49c0-fbba-9071-403b2bef302e@plan-b.pwste.edu.pl>
In-Reply-To: <20180705102235.GA2187@c720-r314251>
References:  <20180704133029.GA19087@sh4-5.1blu.de> <6d1fc346-2122-5f19-04d7-6009a23104f7@omnilan.de> <20180705102235.GA2187@c720-r314251>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--oOng4Ax7nElBrSVPFgFEaFspwfC97YtDq
Content-Type: multipart/mixed; boundary="oLNUD1uZNPqQtemr7Eui2Ixcc4EPwbIq2";
 protected-headers="v1"
From: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
To: freebsd-net@freebsd.org, guru@unixarea.de
Message-ID: <228274ff-49c0-fbba-9071-403b2bef302e@plan-b.pwste.edu.pl>
Subject: Re: wlan0 && IPv6
References: <20180704133029.GA19087@sh4-5.1blu.de>
 <6d1fc346-2122-5f19-04d7-6009a23104f7@omnilan.de>
 <20180705102235.GA2187@c720-r314251>
In-Reply-To: <20180705102235.GA2187@c720-r314251>

--oLNUD1uZNPqQtemr7Eui2Ixcc4EPwbIq2
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: pl



W dniu 2018.07.05 o=C2=A012:22, Matthias Apitz pisze:
> El d=C3=ADa mi=C3=A9rcoles, julio 04, 2018 a las 04:02:22p. m. +0200, H=
arry Schmalzbauer escribi=C3=B3:
>
>> 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 a=
ssociate 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=3D"YES" in rc.conf(5),=
 I=20
>> think you should get a stateless IPv6 address (since=20
>> net.inet6.ip6.no_radr=3D0, hence no no_radr flag for your IPv6-enablef=
=20
>> interface (wlan0)), as long as there's a router in the (W)LAN advertis=
ing.
>>
>> For stateful IPv6, you must install somethink like KAME-dhcp6=20
>> (ports/net/dhcp6).
>>
>> But the latter isn't widely deployed, most setups I've seen have route=
rs=20
>> advertising and clients with stateless setup.
>>
>> Can't tell you out of mind what your rc.conf(5) should look like to=20
>> enable stateless config for distinct interfaces, but I'm sure you'll=20
>> 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=3D"wlan0"
> ifconfig_wlan0=3D"WPA DHCP"
> # IPv6 starts here
> # add ipv6 entry for wlan0
> ipv6_network_interfaces=3D"wlan0"
> # set up wlan0 to accept rtadv(8) advertisements
> ifconfig_wlan0_ipv6=3D"inet6 accept_rtadv"
> ip6addrctl_enable=3D"YES"
> ip6addrctl_policy=3D"ipv6_prefer"
> ipv6_activate_all_interfaces=3D"YES"
> # ifconfig_wlan0_ipv6=3D"YES"
> # IPv6 end here
>
> And when the interface associates it gives the output attached below fo=
r
> ifconfig and netstat; but nothing is working, esp. not

There is net/dual-dhclient in ports. Please give it a try.

#pkg install dual-dhclient

Then add this lines to /etc/rc.conf:

rtsold_enable=3D"YES"
dhclient_program=3D"/usr/local/sbin/dual-dhclient"
wlans_ath0=3D"wlan0"
ifconfig_wlan0=3D"country DE WPA SYNCDHCP"
ifconfig_wlan0_ipv6=3D"inet6 accept_rtadv"
# and optionally
#ipv6_privacy=3D"YES"

This should do the work.

--=20
Marek Zarychta



--oLNUD1uZNPqQtemr7Eui2Ixcc4EPwbIq2--

--oOng4Ax7nElBrSVPFgFEaFspwfC97YtDq
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAls/LS8ACgkQdZ/s//1S
jSyI2Qf9Ht3f2w6vUrjw+TZUXU7BBn3aOh3FEFtPP4iOmVhbFkzoHJh4P8ZpnKs6
rj5R//sCFxZgBWoX8S5LVixhsEaCuRja1/hKR32QnyIslKGYDbhOnd208oWvW0qO
i0cm5gLmXIoVePpkQXiVOp2WPCr9Lzo1IOeMisZUjKdga36BMhLO7Blhq3dsOZWR
8/KN+WY5ipfNFW4luFtHfeVeaqgZV5TCHTe1ukQjLI9DVBP3XiiDCxWlFolBsenI
P9TO57rWyjMs8Tl6LVsqgzL3q5q1sv5wEwKlGkUKDYY0Dd7lYCsT+3YTk9kYwzFA
DqHwRFXlz7dihKuven4T66qWpObl3Q==
=oAZY
-----END PGP SIGNATURE-----

--oOng4Ax7nElBrSVPFgFEaFspwfC97YtDq--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?228274ff-49c0-fbba-9071-403b2bef302e>