doc:appunti:net:ipv6_on_ppp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:net:ipv6_on_ppp [2024/07/05 13:00] – niccolo | doc:appunti:net:ipv6_on_ppp [2024/07/05 15:37] (current) – [Troubleshooting IPv6 problems] niccolo | ||
---|---|---|---|
Line 579: | Line 579: | ||
===== Troubleshooting IPv6 problems ===== | ===== Troubleshooting IPv6 problems ===== | ||
- | Show our own IPv6 addresses: | + | In general, to troubleshoot any networking issue, you use the **ping** command to check if the remote address is responding: |
< | < | ||
- | ip -6 address show dev enp0s7 | + | # ping -6 2a01: |
+ | </ | ||
+ | |||
+ | In some cases it is useful also to **ping your own addresses** (you can have more than one). Discover all of them with: | ||
+ | |||
+ | < | ||
+ | # ip -6 address show dev enp0s7 | ||
</ | </ | ||
Line 595: | Line 601: | ||
</ | </ | ||
- | In the example above the interface have two scope global addresses, one assigned via DHCPv6 and the other obtained via SLAAC. The first one has the **dadfailed** flag, which means the **duplicate address detection** | + | In the example above the interface have two **global** scope addresses, one assigned via DHCPv6 and the other obtained via SLAAC. The first one has the **dadfailed** flag, which means that the **duplicate address detection** |
- | FIXME | + | If you have only one global IP address which is **dadfailed**, |
- | Notice the **dadfailed**!!! Cannot even ping itself. | + | < |
+ | # ip -6 route show | ||
+ | 2a02: | ||
+ | 2a02: | ||
+ | fe80::/64 dev enp0s7 proto kernel metric 256 pref medium | ||
+ | default via fe80:: | ||
+ | </ | ||
- | Enabling the DHCPv6 | + | **NOTICE**: The default router can be reached via its **link** scope address (as seen above) or via its **global** |
+ | |||
+ | If you sniff the ping request | ||
< | < | ||
+ | # tcpdump -i eth0 -n ' | ||
+ | ... | ||
IP6 fe80:: | IP6 fe80:: | ||
id 56698, seq 1, length 64 | id 56698, seq 1, length 64 | ||
Line 610: | Line 626: | ||
</ | </ | ||
- | The default gateway on the client | + | The client |
< | < | ||
- | ip -6 route get 2a01: | + | # ip -6 route get 2a01: |
2a01: | 2a01: | ||
via 2a02: | via 2a02: | ||
Line 621: | Line 638: | ||
</ | </ | ||
- | You can compare the result when the SLAAC is enabled: | + | You can compare the result when you have at least one working global IP address: |
< | < | ||
- | ip -6 route get 2a01: | + | # ip -6 route get 2a01: |
2a01: | 2a01: | ||
via fe80:: | via fe80:: | ||
Line 632: | Line 649: | ||
</ | </ | ||
- | In the first case the **src** address is the **link scope** one, not suitable for routing. In the second case it is the one received via SLAAC, which has a **global scope** and indeed it is working. Notice that the address of the router (shown as the **via** address) is not releveant, the //link scope// one does work. | + | In the first case the **src** address is the **link scope** one, not suitable for routing. In the second case it is the one received via SLAAC, which has a **global scope** and indeed it is working. Notice that the address of the router (shown as the **via** address) is not releveant, |
doc/appunti/net/ipv6_on_ppp.1720177231.txt.gz · Last modified: 2024/07/05 13:00 by niccolo