IPv6

Test
https://ipv6test.google.com/

Subnets

::/0 # default IPv6 route

Disable IPv6

# disable IPv6
echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo "net.ipv6.conf.all.disable_ipv6 = 1" > /etc/sysctl.d/01-disable-ipv6.conf
 
# grub: /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
update-grub
 
# sysctl
sudo echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.d/01-disable-ipv6.conf
sudo echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.d/01-disable-ipv6.conf
sudo echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.d/01-disable-ipv6.conf
sysctl -p /etc/sysctl.d/01-disable-ipv6.conf
 
sudo sed -i 's|udp6|#udp6|g' /etc/netconfig
sudo sed -i 's|tcp6|#tcp6|g' /etc/netconfig

Get public IPv6

wget -q http://checkipv6.dyndns.com/ -O-

Debug

ping 2001:4860:4860::8888 # Google DNS resolver
ping 2606:4700:4700::1111 # Cloudflare DNS resolver

Links
https://askubuntu.com/questions/309461/how-to-disable-ipv6-permanently/337736#337736
https://www.iway.ch/ueber-iway/blog/internet-protokoll-ipv6/
https://www.youtube.com/watch?v=ysEpF76sQ1M
https://ipv6-test.com/