By default, the Raspberry Pi doesn’t come with IPv6 enabled. This isn’t a problem for most people, as IPv6 adoption is still low and many home routers don’t support it. However, my ISP (Andrews & Arnold) is living in the future and ships routers which support the ‘new’ protocol, and I wanted to use it on my Pi.
Fortunately, enabling IPv6 on the Pi is as simple as adding the following line to the file /etc/modules
:
ipv6
Reboot your Pi and you should see lines starting with inet6 addr
in the output of ifconfig
for your lo
and eth0
interfaces.
To disable IPv6, simply remove the lines from the modules file and reboot.
Related links
- IPv6 article on Wikipedia
- Test your IPv6 connectivity (requires JavaScript)