You are not logged in.

#1 2016-05-04 17:56:58

Moviuro
Member
Registered: 2012-06-03
Posts: 73

IPv6, systemd-network, wpa_supplicant and road warrior

Hi,

So it's easy: I use systemd-networkd to configure my interfaces, wpa_supplicant to connect to the wireless access points. And I'm a road warrior.

Thus, this tiny story:

  • I'm home and turn on my laptop

  • It connects to my home WiFi, asks for DHCP and listens to IPv6 router advertisement, thus getting both an IPv4 address and an IPv6 address

  • I suspend my laptop because I'm a road warrior

  • When I wake it up someplace else, it connects to the WiFi, asks for DHCP and gets an IPv4 address. However, it keeps its previous IPv6 address for an unspecified amount of time. (There is no IPv6 router on this network)

  • Also, after many suspend/resume, I'm back home and this time, I don't get my IPv6 address anymore :-(

So how do I fix my machine so that:

  • I get IPv6 where there is

  • I don't keep my IPv6 address longer than specified by the router that actually gave it to me

?

Thanks in advance.

/etc/systemd/network/10-wireless.network

[Match]
MACAddress=xx:xx:xx:xx:xx:xx

[Network]
DHCP=yes
IPv6PrivacyExtensions=true
IPv6AcceptRouterAdvertisements=true

[DHCP]
UseDomains=true
UseMTU=true

Last edited by Moviuro (2016-05-04 18:36:15)


bspwm, BTRFS over LUKS
Archlinux a lot, FreeBSD more and more...
Murphy's rule: The day you need a backup, you tell yourself you should have created some.

Offline

Board footer

Powered by FluxBB