Hi, have a look at the example code e.g. used by the windows port. It can add multiple interfaces. Adding a ppp or "standard" interface does not really make a difference for the stack.
The only thing missing here would be sophisticated routing, but as long as you have one default route and one subnet without more routers, everything works out of the box. Regards, Simon Am 4. Dezember 2025 11:18:21 MEZ schrieb Leonardo Fibucchi via lwip-users <[email protected]>: >No, > >I mean using two different enet instance on the same microcontroller (with two >separate physical connection) to receive packet on differents subnet with only >one instance of lwip. >This means that I have to configure two netifs with two different subnets but >controlled from the same thread and same instance of lwip. >I assume from documentation that this is feasible but I don't know how. >I tried but didn't succed using just my assumptions. > >Thank you very much, best regards. > >Leonardo > >Leonardo Fibucchi >FIRMWARE ENGINEERING PROFESSIONAL LEADER > >Powersoft S.p.A. >Via E. Conti, 5 - Scandicci (Fi) 50018 - Italy >OFFICE: +39 055 7350230 >[cid:2_3b23bc2c-3db3-4330-b6f5-3fb62b89422a.png]<https://www.facebook.com/powersoft/>[cid:3_7da2eb67-7c7f-41e6-9598-128bdd52ec04.png]<https://www.instagram.com/powersoft.official/>[cid:4_a5d469e7-3228-4fb1-948d-4c3e879ea0da.png]<https://www.youtube.com/@powersoftaudio>[cid:5_e4390674-51fd-4219-9389-28ae9a12796d.png]<https://www.linkedin.com/company/powersoft>[cid:6_083a55f9-076c-4d52-9f93-69225b28cb32.png]<https://open.spotify.com/show/6lwXROYcCyrVnJi6J9fA42>[cid:7_7fd8585e-63fd-441a-95f3-6c0b23d059e1.png]<https://x.com/Powersoft_Japan>[cid:8_6308aaa9-b97d-405b-a86c-0300a381d13f.png]<https://space.bilibili.com/3546387314641333>[cid:9_9af1e42f-0019-42c4-8046-d6246e65ed9e.png]<https://teams.microsoft.com/l/chat/0/[email protected]> >[cid:pwsrgbn_12214209-f50f-45fa-be18-2a4cf1a5818a.png]<https://www.powersoft.com/en> >________________________________ >Da: [email protected] ><[email protected]> per conto di >Bas Prins <[email protected]> >Inviato: giovedì 4 dicembre 2025 09:42 >A: Mailing list for lwIP users <[email protected]> >Oggetto: Re: [lwip-users] Using two interfaces with lwip > > >You don't often get email from [email protected]. Learn why this is >important<https://aka.ms/LearnAboutSenderIdentification> > >Like one for modem and one for ethernet you mean? > >Op wo 3 dec 2025, 12:41 schreef Leonardo Fibucchi via lwip-users ><[email protected]<mailto:[email protected]>>: >Hi, > >I am trying to use 2 multiple interfaces with same lwip istance but I am not >able to make it works. >Are there any examples I can copy from? Unfortunately I didn't find in >documentation the proper sequence of initialization. > >Thank you very much, best regards. > >Leonardo > >Leonardo Fibucchi >FIRMWARE ENGINEERING PROFESSIONAL LEADER > >Powersoft S.p.A. >Via E. Conti, 5 - >Scandicci<https://www.google.com/maps/search/Via+E.+Conti,+5+%0A-+Scandicci?entry=gmail&source=g> > (Fi) 50018 - Italy >OFFICE: +39 055 7350230 >[cid:ii_19ae886fc9132187e661]<https://www.facebook.com/powersoft/>[cid:ii_19ae886fc926825e7052]<https://www.instagram.com/powersoft.official/>[cid:ii_19ae886fc9250d58fec3]<https://www.youtube.com/@powersoftaudio>[cid:ii_19ae886fc9211784fb14]<https://www.linkedin.com/company/powersoft>[cid:ii_19ae886fc92e3a880535]<https://open.spotify.com/show/6lwXROYcCyrVnJi6J9fA42>[cid:ii_19ae886fc9275f8f6416]<https://x.com/Powersoft_Japan>[cid:ii_19ae886fc923624e98e7]<https://space.bilibili.com/3546387314641333>[cid:ii_19ae886fc9297cf3f718]<https://teams.microsoft.com/l/chat/0/[email protected]> >[cid:ii_19ae886fc92a1b823809]<https://www.powersoft.com/en> >_______________________________________________ >lwip-users mailing list >[email protected]<mailto:[email protected]> >https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
