Skip to content

Instantly share code, notes, and snippets.

@sftsk
Last active February 6, 2023 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sftsk/50159f65b7af3b86bc7b95f1cb995b47 to your computer and use it in GitHub Desktop.
Save sftsk/50159f65b7af3b86bc7b95f1cb995b47 to your computer and use it in GitHub Desktop.
Enable ipv6 on Raspberry Pi

Taken from https://forums.raspberrypi.com/viewtopic.php?t=216026

On /etc/network/interfaces add these lines

iface lo inet6 manual
iface eth0 inet6 manual
iface wlan0 inet6 manual

on /etc/sysctl.conf add/change net.ipv6.conf.all.disable_ipv6=1

on /etc/gai.conf add or change precedence ::ffff:0:0/96 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment