This page should serve as an overview of IPv6 related operating system commands and their usage. It’s copy&paste-friendly, but you use it at your own risk.
Linux (Debian / Ubuntu)
Command | Usage | Examples |
ping -6 or ping6 | send ICMPv6 echo request to network host ping localhost ::1 ping link local address via interface eth0 | ping6 128bit.org ping6 ::1 ping6 fe80::a2b5:49ff:fe60:f3c0%eth0 |
ip -6 route or route -6 or netstat -r6 | show IPv6 routing table show IPv6 routing table using netstat show route for destination 2001:: show route cache (destination cache) add routing entries delete routing entries flush default route entries flush route for destination 2001:: | ip -6 route netstat -rn6 ip -6 route get 2001:: ip -6 route list cache ip -6 route add ::/0 via 2001::2 dev eth0 ip -6 route del ::/0 via 2001::2 dev eth0 ip -6 route flush default ip -6 route flush 2001:: |
ip -6 neigh ip -6 ntable | show neighbor cache table show neighbor discovery information [for device eth0] | ip -6 neigh show ip -6 ntable show [dev eth0] |
ip -6 addr | show configured IPv6 addresses Add IPv6 addresses Delete IPv6 addresses Show configured multicast addresses | ip -6 addr show [dev eth0] ip -6 addr add 2001::1/64 dev eth0 ip -6 addr del 2001::1/64 dev eth0 ip -6 maddr |
ip -6 maddr | Show multicast groups joined by host | ip -6 maddr show |
ip -6 neigh | Add/delete IPv6 neighbors (IPv6 address => MAC address) | ip -6 neigh add fe80::3 lladdr 00:11:22:33:44:55 dev eth0 ip -6 neigh del fe80::3 lladdr 00:11:22:33:44:55 dev eth0 |
/proc/sys/net/ipv6 | Enable/disable IPv6 forwarding (routing) | echo 1 > /proc/sys/net/ipv6/conf/all/forwarding echo 0 > /proc/sys/net/ipv6/conf/all/forwarding |
netstat -6 | show active IPv6 internet connections | netstat -pnat6 |
ip -6 addrlabel | Show address selection policy information | ip -6 addrlabel show cat /etc/gai.conf |
Windows
Command | Usage | Examples |
ping -6 | send ICMPv6 echo request to network host | ping -6 128bit.org |
ipconfig netsh | Show network configuration information | ipconfig /all netsh interface ipv6 show eth0 |
netsh | Show configured IPv6 addresses | netsh interface ipv6 show address |
route netsh | Show configured IPv6 routes (Default Route has destination ::/0) | route print -6 netsh interface ipv6 show route |
netsh | Show list of neighbors | netsh interface ipv6 show neighbors |
netsh | Show advertised prefixes | netsh interface ipv6 show siteprefixes netsh interface ipv6 show potentialrouters |
netsh | Set an IPv6 address | netsh interface ipv6 set address interface=”LAN Connection” address=2a01::1/64 store=active/persistent |
netsh | Set an IPv6 route | netsh interface ipv6 set route ::/0 “LAN Connection” 2a02::2 0 2 yes 5000 5000 |
netsh | Show MTU of interfaces | netsh interface ipv6 show subinterfaces |
netsh | Lookup neighbor cache | netsh interface ipv6 show neighbors |
netsh | Set neighbor | netsh interface ipv6 set neighbors interface=”LAN Connection” address=”fec0::2″ neighbor=”12-34-56-78-9a-bc” store=active/persistent |
netsh | Enable forwarding | netsh interface ipv6 set interface interface=”LAN Connection” forwarding=enabled store=active/persistent |
netsh | Disable Privacy Extensions | netsh interface ipv6 set privacy state=disabled store=persistent => Reboot |
netsh | Enable SLAAC EUI-64 address generation | netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent |
netsh | Status of Teredo / ISATAP / 6to4 Tunnel | netsh interface ipv6 show teredo netsh interface ipv6 isatap show mode|state|router netsh interface ipv6 6to4 show interface|relay|routing|state |
macOS
Command | Usage | Examples |
ping6 | send ICMPv6 echo request to network host | ping6 128bit.org |
ifconfig | Show interface information | ifconfig en0 |
ifconfig | Configure interface | man ifconfig |
more coming soon | ||