Common IPv6 troubleshooting steps include:
-
Check Interface Configuration:
- Use
ip -6 addr showto verify that the IPv6 address is correctly assigned to the interface.
- Use
-
Verify Link-Local Address:
- Ensure that the link-local address (starting with
fe80::) is present and correctly configured, as it is essential for local communication.
- Ensure that the link-local address (starting with
-
Check Connectivity:
- Use
ping6to test connectivity to a known IPv6 address, such as a link-local address of another device on the same network or a global address.
- Use
-
Examine Routing:
- Use
ip -6 route showto check the routing table and ensure that there are valid routes for the IPv6 addresses you are trying to reach.
- Use
-
Check Neighbor Discovery:
- Use
ip -6 neigh showto view the neighbor cache and ensure that the device can resolve the link-layer addresses of neighboring devices.
- Use
-
Inspect Firewall Rules:
- Verify that firewall rules are not blocking IPv6 traffic. Use
iptables -Lornft list rulesetto check for any rules affecting IPv6.
- Verify that firewall rules are not blocking IPv6 traffic. Use
-
Review DNS Configuration:
- Ensure that DNS is correctly configured for IPv6. Use
dig AAAA <hostname>to check if the hostname resolves to an IPv6 address.
- Ensure that DNS is correctly configured for IPv6. Use
-
Check DHCPv6 or SLAAC:
- If using DHCPv6, ensure that the DHCP server is functioning correctly. For SLAAC, verify that Router Advertisements (RAs) are being received.
-
Examine Logs:
- Check system logs (e.g.,
/var/log/syslogorjournalctl) for any error messages related to networking or IPv6.
- Check system logs (e.g.,
-
Use Traceroute:
- Use
traceroute6to trace the path to an IPv6 address and identify where packets may be getting dropped.
- Use
By following these steps, you can systematically identify and resolve common IPv6 connectivity issues.
