-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
IPv6 Global Link Support #6626
Comments
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 <denys.f@collabora.com>
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 <denys.f@collabora.com>
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 <denys.f@collabora.com>
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 <denys.f@collabora.com>
@altmannmarcelo 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. |
@altmannmarcelo Have you been able to retest this under 2.0.4? |
With 2.0.4, I can get "global IPv6 address for ESP32". But i faced problem on communication with IPv6. Using following simply code, IPv6 comunication is OK between two ESP8266 board. Send:
Receive
But when I use ESP32 as the Receiver. It will never have available bytes from IPv6. (IPv4 is OK). |
Hi @VojtechBartoska . |
ok, extending WiFiSTA.h and WiFiSTA.cpp to call esp_netif_get_ip6_global makes is possible to get an IPv6 global address. and I can ping it:
Will submit a PR to expose the info via the API. @fryefryefrye can you share the code you used for testing? |
seems like @fryefryefrye already submitted it at #7065 |
The following code is working between 2 ESP8266 boards. I will post ESP32 code later.
|
Here is the test code for ESP32 to comunication using UDP via ipv6. But it's not working.
|
I need support for IPv6 too. |
How looks this issue? IPv6 is almost everywhere and here it missing global addresses. I just extended wifi sta with global getter, so I can get global IP already |
Someone knows about updates for this issue ? |
@brskt-dev sorted for development, will be part of upcoming major release 3.0.0 |
Do we have tentative time when this new release will be released ? |
You can see the realese roadmap on the link below. |
Seems this was covered by #9016. I am closing this ticket, if needed you can reopen. |
I have code for esp32 that can assign global ipv6 and also runs a https webserver on it . I used esp-idf v5.3.2 . |
Board
ESP32S2
Device Description
ESP-s2-saola-1
Hardware Configuration
No
Version
v2.0.2
IDE Name
Arduino IDE
Operating System
Ubuntu 20.04
Flash frequency
NA
PSRAM enabled
yes
Upload speed
NA
Description
Based on #1261 IPv6 support on arduino-esp32 is as complete as ESP-IDF and the needed configuration should be exposed via menuconfig.
On current ESP-IDF version, I can configure sample projects to receive IPv6 either via SLAAC or DCHP6 via
idf.py menuconfig
-> Component config ---> LWIP ---> Enable IPV6 stateless address autoconfiguration (SLAAC)From my understanding this is what was missing for this project to have Global IPv6 support.
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: