IPv6 Configuration on Ubuntu Server

  1. # sudo nano /etc/network/interfaces

2.  Add ip v6 

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp7s0f0
iface enp7s0f0 inet static
address 192.168.10.202
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.254
dns-nameservers 192.168.10.3
dns-nameservers 192.168.10.4
dns-search reru.ac.th
post-up iptables-restore < /etc/iptables.up.rules
# dns-* options are implemented by the resolvconf package, if installed
# IPv6 configuration
iface enp7s0f0 inet6 static
pre-up modprobe ipv6
address 2001:3c8:aa01::202
netmask 96
gateway 2001:3c8:aa01::1

3. #/etc/init.d/networking restart

4. chack ip address ipv6

#ifconfig enp7s0f0

5. test ping6

#ping6 www.google.com

ok  work