How to direct Internet traffic via 4G modem while connected to a LAN with gateway?
Peter Silva
peter at bsqt.homeip.net
Thu Sep 23 17:39:33 UTC 2021
investigate ip route add, ip route del.
assuming windows box is on the same LAN as your pi's eth0, you should be
able to just change the default route to use the 4G interface.
I think you can just do this manually for now, on the assumption that the
eth0 will be gone when it comes time to deploy and it will "just work."
On Thu, Sep 23, 2021 at 9:36 AM Bo Berglund <bo.berglund at gmail.com> wrote:
> I am developing a system on a headless Linux Server box, which will in the
> end
> be on a remote location with only a 4G broadband modem as Internet
> connection
> (USB attached).
>
> So I would like to test its functionality when developing on it including
> having
> it direct all Internet traffic towards the 4G modem device rather than the
> much
> faster eth0 device.
> So the system is dual homed with both eth0 and usb0 active (the modem
> attaches
> itself as a network device named usb0).
>
> Can this be done and if so how?
>
> I am using SSH to interact with the system using PuTTY on Windows.
>
>
> --
> Bo Berglund
> Developer in Sweden
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210923/389cda7d/attachment.html>
More information about the ubuntu-users
mailing list