My system: Ubuntu 16.04 server, Nginx 1.10, PHP 7. I have IPv6 address only for my VPS. Please write good links or info for setting IPv6.
For IPv4:
address 188.225.32.215
netmask 255.255.255.255
gateway 188.225.32.1
For IPv6:
address 2a03:6f00:4::bce1:224d
netmask 64
gateway 2a03:6f00:4::1
ifconfig:
--------------------------------
eth0 Link encap:Ethernet HWaddr 8a:cf:f5:f9:78:c7
inet addr:188.275.37.215 Bcast:188.275.37.255 Mask:255.255.255.0
inet6 addr: fe80::88cf:f5ff:fef9:78c7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37797386 errors:0 dropped:0 overruns:0 frame:0
TX packets:54146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1856762239 (1.8 GB) TX bytes:47193912 (47.1 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:196 (196.0 B) TX bytes:196 (196.0 B)
--------------------------------
/etc/network/interfaces
--------------------------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
--------------------------------
/etc/network/interfaces.d
- empty.