Skip to main content

about-ipv6

· One min read
Spark light
lsmod | grep ipv6
sysctl -a | grep ipv6
modprobe ipv6
modinfo ipv6
ip -6 a show
cat /etc/network/interfaces
ifreload -a
ping6 www.qq.com
ping -6 www.qq.com
dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
curl -I -6 https://www.qq.com
wget -6 https://www.qq.com

ifdown $IFACE
ifup $IFACE
systemctl restart networking
find /lib/modules/$(uname -r) -type f -name ipv6.ko

pve support ipv6 only need this cfg

cat /etc/sysctl.d/98.ipv6.conf
net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.all.autoconf = 1
net.ipv6.conf.all.use_tempaddr=2
net.ipv6.conf.vmbr0.accept_ra = 2
EOF
systemctl restart networking

below cfg is not need, but still can leave for referenece

~~echo ipv6 >>  /etc/modules-load.d/ipv6.conf~~  #ipv6 is build in kernel, ifconfig output has inet6,ipv6 already loaded
~~echo "source /etc/network/interfaces.d/*" >> /etc/network/interfaces~~
~~cat <<EOF > /etc/network/interfaces.d/ipv6~~
~~iface vmbr0 inet6 auto~~
~~ dhcp 1~~
~~iface vmbr0 inet6 dhcp~~
~~ request_prefix 1~~
~~iface vmbr0 inet6 manual~~
~~ up dhclient -6 vmbr0~~
~~EOF~~
~~/etc/init.d/networking restart #this not work, /etc/init.d/networking file miss~~

#iface vmbr0 inet6 auto> auto vs dhcp :https://superuser.com/questions/630275/cannot-get-an-ipv6-address-on-debian ##auto is for SLAAC (stateless autoconfiguration #https://forum.proxmox.com/threads/proxmox-host-ipv6-dhcp-not-working.85565/ #https://www.hpc.mil/program-areas/networking-overview/2013-10-03-17-24-38/ipv6-knowledge-base-ip-transport/enabling-ipv6-in-debian-and-ubuntu-linux