IPv6 CLI commands
IPv6 Commands
Below are the most important helpful commands for checking and diagnosing the IPv6 environment
Windows 8 / 10
Command | Function |
---|---|
ipconfig /all | displays all interface details |
ping ::1 | Test IPv6 protocol host internally (localhost) |
netsh interface ipv6 show interface | Interface status (all) and IPv6 addresses |
netsh interface ipv6 showaddress | IPv6 addresses including validity displays |
netsh interface ipv6 show privacy netsh interface ipv6 show global |
See IPv6 Configuration and Privacy Extensions |
netsh interface ipv6 show route |
Show IPv6 routing table |
netsh interface ipv6 show neighbors | Mapping IPv6 addresses to MAC addresses |
netsh interface ipv6 show destination | Destination cache incl. PMTU values |
netsh interface ipv6 dump | show all changes |
netsh interface ipv6 reset | reset all changes |
Linux
Command | Function |
---|---|
ifconfig -a ifconfig eth0 | grep inet6 |
displays all interface details ETH0 only IPv6 addresses |
ping6 ::1 | Test IPv6 protocol host internally (localhost) |
ip -6 address show ip -6 maddr show |
Interface status (all) and IPv6 addresses show multicast groups |
netsh interface ipv6 showaddress | IPv6 addresses including validity displays |
ip -6 route show route -A inet6 -n |
Show IPv6 routing table |
ip -6 neighb show | Mapping IPv6 addresses to MAC addresses |
ip -6 route get to {ipv6_addr} | Destination cache incl. PMTU values |
test -f /proc/net/if_inet6 && echo | check if IPv6 is active |
macOS since 10.7
Command | Function |
---|---|
ifconfig -a ifconfig -L |
displays all interface details shows the period of validity of the addresses |
ping6 ::1 traceroute6 {ipv6-host} |
Test IPv6 protocol host internally (localhost) |
netstat-f inet | show all IPv6 connections |
netstat -g | show multicast groups |
netstat -rnf inet6 | Show IPv6 routing table |
ndp -a | Mapping IPv6 addresses to MAC addresses |
dscacheutil -flushcache | clear DNS cache |
nettop -n -m route | View routing statistics in real time |
nettop -n | Show TCP & UDP sockets in real time |