njh / W5500MacRaw

Arduino sketch demonstrating using Wiznet W5500 to send raw Ethernet Frames
BSD 3-Clause "New" or "Revised" License
27 stars 8 forks source link

Using ESP32 as PPPOE server possible? #4

Open Smig0l opened 2 months ago

Smig0l commented 2 months ago

Hi! I have come across your project after reading Wiznet W5500 pppoe docs... I have an ESP32 and a W5500 lite module. Is it possible to create a PPPOE server?

I know that this project is 8 years old but wondering if u can help me.

njh commented 2 months ago

Technically perfectly possible.

But there might better Ethernet options for ESP32 than W5500: eg something like this https://www.olimex.com/Products/IoT/ESP32/ESP32-GATEWAY/

Looking at RFC2516, it looks like you need to process these EtherTypes:

But then you either need to implement PPPoE yourself or glue in an existing library. And then I guess route the IP packets over normal Ethernet?

I did have some success with implementing PPP for IPv6: https://github.com/njh/tinyppp6

Smig0l commented 2 months ago

But then you either need to implement PPPoE yourself or glue in an existing library.

the only library i could find that mentions pppoe is this.

but it says "PPPOE_SERVER is not yet supported under lwIP!" even if i see some server function (like pppoe_send_pado)...