Unable to assign static IPV6 - Raspberry Pi 3

I’ve just installed Ubuntu mate on my Raspberry Pi 3 and I’m attempting to set a static IPV6 address, but I’m not have any luck.

I’ve tried adding it to /etc/network/interfaces as follows:

iface eth0 inet6 static
address 2403:9800:x:x:x:x
netmask 64
gateway 2403:9800:x:x:x:x

However on restart it’s not assigning the ipv6 address. I’ve also tried the same in /etc/network/interfaces.d/eth0 and neither are working. Any suggestions on how to assign a static ipv6 address directly within mate?

I appreciate any help.

Do you have the ipv6 module in /etc/modules?
if not, echo ipv6 >> /etc/modules then modprobe ipv6
also, sysctl net.ipv6.conf.all.forwarding should be 1
HTH

Both are enabled but it’s still not assigning the static unfortunately

taubin@TaubinPi:~$ sysctl net.ipv6.conf.all.forwarding
net.ipv6.conf.all.forwarding = 1
taubin@TaubinPi:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

ipv6

In a terminal run ifconfig to be sure that your network interface is actually named eth0

If memory serves correctly 14.04 was the lasts version of ubuntu where eth0 was used.

For example in my 16.04 and 17.04 systems enp0s10 is used instead of eth0.

So what ever your network interface is named, from the results of the ifconfig command, use that in place of eth0.

I had changed the interface name from enp0s10 to eth0. I had attempted the same prior to renaming it, and ran into the same issues. I think at this point I’ll reformat the card and make sure it’s not just something screwy I’ve done.