lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] PPP shared Internet


From: Sylvain Rochet
Subject: Re: [lwip-users] PPP shared Internet
Date: Mon, 17 Jan 2022 19:46:46 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

Hi Richard,

On Mon, Jan 17, 2022 at 11:53:32AM +0000, Richard Bailey wrote:
> Hi,
> 
> I am working on an IoT solution. I've bumped into an issue around 
> using LWIP. If I describe the scenario and what I'm trying to achieve, 
> perhaps you can tell me if what I'm trying to do is in theory is 
> possible or if I need to approach it another way.
> 
> It has a main NXP PCB, with a Microsoft Azure Sphere, secure Wi-Fi 
> module attached. The Azure Sphere is a bit of a black box, but it 
> handles communication to Microsoft's Azure Servers over Wi-Fi. It can 
> also work over Ethernet, but it will not have a physical Ethernet Port 
> on the device. There will be scenarios where Wi-Fi is not an option, 
> so we need a backup solution.
> 
> The main NXP PCB has a BG95 modem.
> It has an internal circuit-based Ethernet connection between the NXP 
> and the Azure Sphere module. The plan is for the Azure Sphere module 
> to communicate out over the BG95 modem via the internal Ethernet.
> 
> The main NXP PCB is running FreeRtos, with LWIP 2.1.3.
> I was hoping to simply set up two NetIf adaptors:
>  * PPPOS for the modem, with the Internet connection
>  * Ethernet.
>  Then enable IP_FORWARD.

IP forwarding between PPP and Ethernet works and a custom IPv4 routing 
table can be added by using LWIP_HOOK_IP4_ROUTE.


> Would that approach work allowing the Azure Sphere to communicate with 
> the outside world, over the internal Ethernet and forwarding to the 
> PPP modem (in both directions)?

It depends if IP forwarding is enough for you. Beware that IP forwarding 
is IP routing, not NAT.


> ________________________________
> The information contained in this communication, and any attachments, 
> may be confidential and/or privileged. It is intended only for the use 
> of the named recipient.
> 
> If you are not the intended recipient please contact us.
> Tel: +44 (0)1256 768070
> Fax: +44 (0)1256 760718
> Email: postmaster@sti-limited.com.
> 
> In such an event you should not access any attachments, nor should you 
> disclose the contents of this communication or any attachments to any 
> other person, nor copy, print, store or use the same in any manner 
> whatsoever.
> 
> Thank you for your co-operation.

What should I do with that ?


Sylvain

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]