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

Sparhawk
  • 683
  • 4
  • 18
  • 34

1 Answers1

3

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.

TheDiveO
  • 1,591
  • 1
  • 11
  • 16