3

Apparently, I can enable IPv6 in two ways. To test, I first confirm it's not enabled currently.

$ ping6 -c 1 ::1
socket: Address family not supported by protocol

I then enable it immediately

$ sudo modprobe ipv6

And ping6 -c 1 ::1 now works. To enable it at boot, I append ipv6 on a single line to /etc/modules, then reboot. However, it's unclear if IPv6 is working now.

$ ping6 -c 1 ::1
connect: Cannot assign requested address

N.B. it's a different error to the first one. If informative, the original enabling doesn't work now either.

$ sudo modprobe ipv6
$ ping6 -c 1 ::1
connect: Cannot assign requested address

How can I enable IPv6 at boot?

EDIT

Here are the contents of /etc/network/interfaces. It's a static IP.

auto lo

iface lo inet loopback
iface eth0 inet static
address 192.168.1.91
netmask 255.255.255.0
gateway 192.168.1.254

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
  • What OS? An ancient link to an answer on an obsolete OS are meaningless. – Milliways Oct 23 '16 at 9:33
  • @Milliways Oops, sorry, forgot. I added the Raspbian tag. FWIW the official FAQ suggest the same thing (I edited in that link too). – Sparhawk Oct 23 '16 at 9:34
  • Why have you put an (incorrect) ip4 static address into your file? See How do I set up networking/WiFi/Static IP – Milliways Oct 23 '16 at 9:36
  • @Milliways I'm not sure which part you're referring to? The file looks pretty similar to your link. The 192.168.1.91 part? – Sparhawk Oct 23 '16 at 9:41
  • That is NOT the recommended method of setting static (which I recommend against), and is there for those who insist on using Debian networking, and is conditional on disabling dhcpcd. But why IP4 in a question about IP6? – Milliways Oct 23 '16 at 9:46
2

As of Raspbian 8/Jessie, IPv6 is enabled in the Raspbian images right from the start. There is no need to touch any configuration.

With the dhcpcd client installed, IPv6 stateless address autoconfiguration (sic!) will be used with stable semantically opaque IIDs (interface identifiers). You only need a router advertising an IPv6 prefix (or several). In addition, DNS server addresses will also be autoconfigured from the router advertisements (RA). It's perfectly fine to have the RAs set M=0 and O=0, that is, no DHCPv6.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.