Closed ashway83 closed 4 years ago
So your suggestion is to use the on IPv6 public IP on this Interface and not the device itself on the ping -I option. Because if not the link address is used as the source IP?
Apparently, ping -I
Interestingly the order of the addresses is reversed in my case:
root@jj:~# ifconfig
6in4-wan6 Link encap:IPv6-in-IPv4
inet6 addr: 2001:xxxx::2/64 Scope:Global
inet6 addr: fe80::xxxx/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1280 Metric:1
RX packets:359794 errors:0 dropped:0 overruns:0 frame:0
TX packets:413788 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:478579495 (456.4 MiB) TX bytes:52696312 (50.2 MiB)
And ping -I netdev
works as expected:
root@jj:~# ping -I 6in4-wan6 -c 3 2001:4860:4860::8888
PING 2001:4860:4860::8888 (2001:4860:4860::8888): 56 data bytes
64 bytes from 2001:4860:4860::8888: seq=0 ttl=57 time=41.787 ms
64 bytes from 2001:4860:4860::8888: seq=1 ttl=57 time=40.020 ms
64 bytes from 2001:4860:4860::8888: seq=2 ttl=57 time=41.639 ms
--- 2001:4860:4860::8888 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 40.020/41.148/41.787 ms
@ashway83 - I wouldn't rule out a bug in busybox' ping source address selection logic. Can you cross-check with a full featured ping6
from iputils-ping6
?
@jow- Just tried ping6
from iputils-ping6
- works as expected.
I'm experiencing the same issue with pinging on v6 interfaces, it looks related to the source address. ping6 from iputils-ping6
works without having to explicitly define the source address on the interface, but mwan3 doesn't using ping6 for testing, it seems it's the same ping commands across both IPv4/IPv6, however installing iputils-ping
, causes ping tests to fail entirely with:
ping: unknown host 2001:4860:4860::8888
Although this may be fixed by this now:
Yes this change https://github.com/openwrt/packages/commit/6721587e8b491f1a539cdcc507b0f4811ff2b448 should fix the problem. It no longer uses the link local adress the correct assigned IPv6 adress. This change was only made in the master branch. Should we cherry-pick this also to 19.07?. The branch 18.06 is EOL.
It would be nice if it was cherry picked to 19.07 branch, I tested the version in master on 19.07.2 and it fixes the issue specifically with the 6in4-wan6 interface.
Please try my changes in this pull request https://github.com/TDT-AG/packages/tree/pr/20200428-mwan3. If this works for you then I will merge this into 19.07
I did test mwan3 2.8.3-2 and it works on 19.07.2 aside from that rogue character that snuck in on the line 139, but removing that works fine. So given the change between 2.8.3-2 and 2.8.4 is just the removal of the character, I can say it works on 19.07.2. The 6in4-wan6 interface is seen as "online" because the ping test is more absolute with the source address.
Maintainer: @feckert , @luizluca Environment: OpenWrt 18.06.4 r7808-ef686b7292 / LuCI openwrt-18.06 branch (git-19.170.32094-4d6d8bc)
Description:
mwan3track fails to track IPv6-in-IPv4 tunnel interfaces as
results in link local address being used as a source address.
ICMP request are sent with a link local address set as a source:
Expected behavior (public IPv6 address is used as a source address):
The same issue mentioned here remained without attention for some reason: https://github.com/openwrt/packages/issues/5761#issuecomment-449735810