Skip to content
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 Support possible .... #4324

Closed
cawi2001 opened this issue Nov 10, 2018 · 6 comments
Closed

IPv6 Support possible .... #4324

cawi2001 opened this issue Nov 10, 2018 · 6 comments
Labels
question Type - Asking for Information

Comments

@cawi2001
Copy link

Hello,

for Freifunk, IPv6 is mandatory to reach from outside the Tasmota device.

In the area of esp8266/Arduino there is a new change for IPv6 support:
esp8266/Arduino#5136

Can this code used within Tasmota?

@cawi2001 cawi2001 changed the title IPv6 Support now possible .... IPv6 Support possible .... Nov 10, 2018
@ascillato
Copy link
Contributor

ascillato commented Nov 10, 2018

Up to now, it is not supported by the Arduino core, they are working on that but it is not released. Tasmota uses the Arduino core to work. When Arduino release a new core that supports IPv6, then the modifications needed can be done to Tasmota. Up to now the Stage core is in the debugging process. It is not released for production nor stable.

We don't know when Arduino will add IPv6 to the core and if it is going to be a stable core 2.5.0 at the end of the year.

@ascillato2
Copy link
Collaborator

For reference: #2521

@ascillato2 ascillato2 added the question Type - Asking for Information label Nov 11, 2018
@ascillato2
Copy link
Collaborator

Support Information

See Wiki for more information.
See Chat for more user experience.

@altelch
Copy link
Contributor

altelch commented Jan 16, 2019

Hi,

startet a trial to get IPv6 running using core_stage and PIO_FRAMEWORK_ARDUINO_LWIP2_IPV6_HIGHER_BANDWIDTH. Had to do some minor changes in support_wifi.ino and TasmotaMqtt-1.1.1 mostly regarding the handling of IPv4 Adresses. With v6 enabled we have DualStack and addr isn't an u_int32 anymore but a struct.

00:00:00 Project sonoff Sonoff Version 6.4.1.9(sonoff)-STAGE
IPV6 is enabled
.........IF='ap' IPv6=1 local=1 hostname='' addr= fe80::xxx:7fff:fe88:e805
IF='st' IPv6=0 local=0 hostname='sonoff-2053' addr= 192.168.100.229 / mask:255.255.255.0 / gw:192.168.100.254
IF='st' IPv6=1 local=1 hostname='sonoff-2053' addr= fe80::xxx:7fff:fe88:e805
IF='st' IPv6=1 local=0 hostname='sonoff-2053' addr= 2a01:xxx:5:150:5ecf:7fff:fe88:e805
00:00:05 WIF: Connecting to AP1 krupp.net in mode 11N as sonoff-2053...
00:00:05 HTP: Web server active on sonoff-2053 with IP address 192.168.100.229
19:12:34 WIF: Connected

Webserver-Access is working. Code size for sonoff.bin is
DATA: [====== ] 61.7% (used 50532 bytes from 81920 bytes)
PROGRAM: [====== ] 57.4% (used 587520 bytes from 1023984 bytes)

Will try to clean up my quick hack a bit and generate a PR not ment to be merged but as reference on what would be necessarry to be checked/changed (especially handling of IPv4 as u_int32).

Greetings,
Altelch.

@akram
Copy link

akram commented Jan 15, 2020

@ascillato it seems that IPv6 is now supported in Arduino core: esp8266/Arduino#5136

is it worth re-opening this issue ?

@ascillato
Copy link
Contributor

is it worth re-opening this issue ?

No because it is already implemented in Tasmota. You have to compile by yourself enabling IPV6 support in platformio.ini

If you need further assistant, please, do not hesitate on asking on the Support Chat. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Type - Asking for Information
Projects
None yet
Development

No branches or pull requests

5 participants