-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Ethernet doesn't work with IPV6 #6283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@lbernstone Thanks for your reply, it's a bit weird because using Wi-Fi in the exactly same sdkconfig it's able to get at least a local IPV6, and event I'm also testing using IDF v4.4, the event appears but the IPV6 doesn't work using ethernet, only using Wi-Fi. Enabling SLAAC and DHCPv6 there, it gets a public IPV6, but I'm also not able to access ESP32 webserver from it So far: IDF v4.4: |
so in both cases IPv6 does not work? With any option in menuconfig? That is rather strange... it used to work before :) Maybe regression in ETH in IDF? |
yes, in both cases it doesn't work, so I think it's an IDF bug, not in arduino layer. I'll open an issue there (and close this one?) |
maybe leave it open to be closed when fixed there? It is still possible that something in the API has changed and requires changes here, but I doubt it. |
Confirming I had this issue for some time and I applied a fix in commit e205fedbe8522a5fbf84f5853c214c930bc4be42 for my fork of ewpa/esp-lwip. @copercini perhaps try to recreate the issue in my fork of ewpa/esp32-arduino under branch 2.0.2+dev and test the effectiveness of the below fix? Always process Neighbor Solicitation messages. This fixes IPv6 Neighbor Discovery not finding the ESP32 on Ethernet interfaces. |
@ewpa it worked like magic! Arduino 2.0.2 as IDF component with @ewpa fix from here: IDF v4.4: |
To use IPv6 we need proper SLAAC support which is not possible without this option. Compile tested on esp32, esp32s2, esp32s3, esp32c3 Functionality tested in esp32 BasicHttpClient with some minor patches, IPv6 start to work. No significant sketch size increase (probably within rounding bounds): Before: Wrote 875328 bytes (558896 compressed) at 0x00010000 in 9.0 seconds (effective 779.4 kbit/s)... After: Wrote 875328 bytes (558942 compressed) at 0x00010000 in 9.0 seconds (effective 779.8 kbit/s)... This patch part of the efforts mentioned in espressif/arduino-esp32#6242 Proper IPv6 support also was requested in: espressif/arduino-esp32#6626 espressif/arduino-esp32#6590 espressif/arduino-esp32#6283 espressif/arduino-esp32#6703 espressif/arduino-esp32#5624 espressif/arduino-esp32#1261 And many others. Signed-off-by: Denys Fedoryshchenko <[email protected]>
To use IPv6 we need proper SLAAC support which is not possible without this option. Compile tested on esp32, esp32s2, esp32s3, esp32c3 Functionality tested in esp32 BasicHttpClient with some minor patches, IPv6 start to work. No significant sketch size increase (probably within rounding bounds): Before: Wrote 875328 bytes (558896 compressed) at 0x00010000 in 9.0 seconds (effective 779.4 kbit/s)... After: Wrote 875328 bytes (558942 compressed) at 0x00010000 in 9.0 seconds (effective 779.8 kbit/s)... This patch part of the efforts mentioned in espressif/arduino-esp32#6242 Proper IPv6 support also was requested in: espressif/arduino-esp32#6626 espressif/arduino-esp32#6590 espressif/arduino-esp32#6283 espressif/arduino-esp32#6703 espressif/arduino-esp32#5624 espressif/arduino-esp32#1261 And many others. Signed-off-by: Denys Fedoryshchenko <[email protected]>
To use IPv6 we need proper SLAAC support which is not possible without this option. Compile tested on esp32, esp32s2, esp32s3, esp32c3 Functionality tested in esp32 BasicHttpClient with some minor patches, IPv6 start to work. No significant sketch size increase (probably within rounding bounds): Before: Wrote 875328 bytes (558896 compressed) at 0x00010000 in 9.0 seconds (effective 779.4 kbit/s)... After: Wrote 875328 bytes (558942 compressed) at 0x00010000 in 9.0 seconds (effective 779.8 kbit/s)... This patch part of the efforts mentioned in espressif/arduino-esp32#6242 Proper IPv6 support also was requested in: espressif/arduino-esp32#6626 espressif/arduino-esp32#6590 espressif/arduino-esp32#6283 espressif/arduino-esp32#6703 espressif/arduino-esp32#5624 espressif/arduino-esp32#1261 And many others. Signed-off-by: Denys Fedoryshchenko <[email protected]>
To use IPv6 we need proper SLAAC support which is not possible without this option. Compile tested on esp32, esp32s2, esp32s3, esp32c3 Functionality tested in esp32 BasicHttpClient with some minor patches, IPv6 start to work. No significant sketch size increase (probably within rounding bounds): Before: Wrote 875328 bytes (558896 compressed) at 0x00010000 in 9.0 seconds (effective 779.4 kbit/s)... After: Wrote 875328 bytes (558942 compressed) at 0x00010000 in 9.0 seconds (effective 779.8 kbit/s)... This patch part of the efforts mentioned in espressif/arduino-esp32#6242 Proper IPv6 support also was requested in: espressif/arduino-esp32#6626 espressif/arduino-esp32#6590 espressif/arduino-esp32#6283 espressif/arduino-esp32#6703 espressif/arduino-esp32#5624 espressif/arduino-esp32#1261 And many others. Signed-off-by: Denys Fedoryshchenko <[email protected]>
@copercini Please check merged PR which can solve your issue. espressif/esp32-arduino-lib-builder#67 It will be available in next release 2.0.4. |
still valid @copercini? |
This is supposed to be fixed, can you please retest under v2.0.4 @copercini? Thanks. |
Closing as solved, if needed please reopen the issue. |
Board
ESP32 dev module + LAN8720A
Device Description
ESP32 dev module + LAN8720A
Hardware Configuration
I think the hardware is fine, LAN8720A is working flawless with IPV4
Version
v2.0.2
IDE Name
Arduino IDE
Operating System
Ubuntu 20.04
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
It seems that IPV6 is not working with ethernet interface, I'm trying to add
ETH.enableIpV6();
insideARDUINO_EVENT_ETH_CONNECTED
event, but it seems to produce no results, andARDUINO_EVENT_ETH_GOT_IP6
is never called (check attached code). It's working fine with IPV4I also checked with Wi-FI STA interface and IPV6 works as expected
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: