Hello IPv6 + routing experts -
I encountered this issue recently, on both 21.02 and master.
Specifically, when trying to ping a local server on my network by hostname, my ping command will work 50% of the time, depending on which ipv6 address was resolved at the time.
Here's an example:
ā°ā ping server.lan
PING server.lan(server.lan (fdd7:68a2:2da1::2a2)) 56 data bytes
64 bytes from server.lan (fdd7:68a2:2da1::2a2): icmp_seq=1 ttl=64 time=1.89 ms
64 bytes from server.lan (fdd7:68a2:2da1::2a2): icmp_seq=2 ttl=64 time=5.24 ms
64 bytes from server.lan (fdd7:68a2:2da1::2a2): icmp_seq=3 ttl=64 time=3.64 ms
^C
--- server.lan ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 1.891/3.588/5.236/1.366 ms
āā ~ ī° ī² ā ī³ 08:28:06 AM
ā°ā ping server.lan
PING server.lan(server.lan (2600:8802:5306:4105::2a2)) 56 data bytes
^C
--- server.lan ping statistics ---
68 packets transmitted, 0 received, 100% packet loss, time 67904ms
The commands were literally run in quick succession. The chosen IPv6 address seems to toggle.
As you can see, it works for the fdd7...
local prefix, but not the 2600...
prefix.
I guess I have two questions:
- How do I only return a local prefix from my dns so I don't have two IPv6 IPs that resolve to my server?
- If the above isn't possible, how do I fix routing so that the
2600
IP is properly reachable?
Interestingly, pinging openwr.lan
always uses the fdd7
local prefix:
āā ~ ī° ī² 1 ā ī³ 08:39:10 AM
ā°ā ping openwrt.lan
PING openwrt.lan(OpenWrt.lan (fdd7:68a2:2da1::1)) 56 data bytes
64 bytes from OpenWrt.lan (fdd7:68a2:2da1::1): icmp_seq=1 ttl=64 time=1.52 ms
^C
--- openwrt.lan ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.518/1.518/1.518/0.000 ms
āā ~ ī° ī² ā ī³ 08:39:16 AM
ā°ā ping openwrt.lan
PING openwrt.lan(OpenWrt.lan (fdd7:68a2:2da1::1)) 56 data bytes
64 bytes from OpenWrt.lan (fdd7:68a2:2da1::1): icmp_seq=1 ttl=64 time=1.72 ms
^C
--- openwrt.lan ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.720/1.720/1.720/0.000 ms
Thank you for your help!