Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2023 21:06:42 +0100 (CET)
From:      Felix Reichenberger <felix.reichenberger@tuta.io>
To:        =?UTF-8?Q?Kristian_St=C3=A6rk?= <xi@borderworlds.dk>
Cc:        Freebsd Net <freebsd-net@freebsd.org>
Subject:   Re: FreeBSD laptop not getting IPv6 configured with SLAAC
Message-ID:  <NlZmTPV--3-9@tuta.io>
In-Reply-To: <9348b4cc-4da1-4e78-9f79-c981fc444f1f@borderworlds.dk>
References:  <9348b4cc-4da1-4e78-9f79-c981fc444f1f@borderworlds.dk>

next in thread | previous in thread | raw e-mail | index | archive | help


> Hello,
>
> I am trying to get my laptop to receive an IPv6 address using SLAAC on my=
 local network. I suspect that the router provided by my ISP is doing somet=
hing slightly wrong or I may just have configured it wrong.
>
> I am running FreeBSD 14.0-RELEASE-p3.
>
> The network interface looks like this when queried with ifconfig.
>
> wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
> =C2=A0=C2=A0 =C2=A0options=3D0
> =C2=A0=C2=A0 =C2=A0ether 18:1d:ea:b1:f9:8b
> =C2=A0=C2=A0 =C2=A0inet 192.168.0.129 netmask 0xffffff00 broadcast 192.16=
8.0.255
> =C2=A0=C2=A0 =C2=A0inet6 fe80::1a1d:eaff:feb1:f98b%wlan0 prefixlen 64 sco=
peid 0x2
> =C2=A0=C2=A0 =C2=A0groups: wlan
> =C2=A0=C2=A0 =C2=A0ssid ARRIS-8030 channel 6 (2437 MHz 11g) bssid e4:f7:5=
b:25:ff:da
> =C2=A0=C2=A0 =C2=A0regdomain FCC country US authmode WPA2/802.11i privacy=
 ON
> =C2=A0=C2=A0 =C2=A0deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 10 s=
canvalid 60
> =C2=A0=C2=A0 =C2=A0protmode CTS wme roaming MANUAL
> =C2=A0=C2=A0 =C2=A0parent interface: iwm0
> =C2=A0=C2=A0 =C2=A0media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode =
11g
> =C2=A0=C2=A0 =C2=A0status: associated
> =C2=A0=C2=A0 =C2=A0nd6 options=3D23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCA=
L>
>
> I have attached my rc.conf and pf.conf files to this mail.
>
> I have also attached a tcpdump showing router solicitations going out and=
 router advertisements being received.
>
> My pf.conf should be open enough for this to work but for completeness I =
have also tried with pf disabled with the same result.
>
> When running Ubuntu on the same laptop or even in a Virtualbox VM with br=
idged networking, Ubuntu manages to configure IPv6 without problems. Likewi=
se with a Windows VM.
>
> I appreciate if anyone here can spot what goes wrong and suggest if I nee=
d to configure something differently or whether a code fix will be needed t=
o support this network. I can try patches if necessary.
>
> Thanks.
>
> Best regards
> Kristian
>

Hello=C2=A0Kristian,

I would recommend disabling your pf firewall during testing, and enabling i=
t
after you get SLAAC working. Having multiple unknowns in the equation will
only make your life harder.

In your rc.conf, you could try adding the following line:

ifconfig_wlan0_ipv6=3D"inet6 accept_rtadv"

After adding it, I would also recommend to restart your device.
I use this for all my jails and it works fine with no additional configurat=
ion.

Regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NlZmTPV--3-9>