Linux/IPv6
< Linux
Basics
ip -6 addr show ifconfig
netstat -A inet6 -rn
ip -6 route show route -6
ping6 -c 3 ::1
traceroute6 google.com
tracepath6 ::1
tcpdump -t -n -i eth0 -s 512 -vv ip6 or proto ipv6
host -t AAAA google.com
dig google.com AAAA
wget -6 http://ipv6.oeey.com curl -6 http://ipv6.oeey.com
IPv6 DNS Lookup:
dig AAAA ipv6.google.com # 2607:f8b0:4005:800::100e
IPv6 Reverse DNS Lookup:
dig -x 2607:f8b0:4005:800::100e
# similar to arp with ipv4 ip -6 neigh ip neigh
Ref:
- Displaying existing IPv6 routes - http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/x1144.html
dhclient
Request IPv6 address:
dhclient -6 -d eth0
Release IPv6 address:
dhclient -6 -r -d eth0
Refs: [1]
iptables
service ip6tables stop service ip6tables start
Disable IPV6
sysctl -w net.ipv6.conf.all.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1 sysctl -w net.ipv6.conf.lo.disable_ipv6=1
etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
refs: [2]
Enable IPV6
sysctl -w net.ipv6.conf.all.disable_ipv6=0 sysctl -w net.ipv6.conf.default.disable_ipv6=0 sysctl -w net.ipv6.conf.lo.disable_ipv6=0
etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 0
refs: [3]