bhuvankumar
Posts: 6
Joined: Mon Jan 20, 2020 12:54 pm

Access internet only from USB 4g dongle.

Mon Jan 20, 2020 1:28 pm

HI,
I am working with Raspberry PI 4, I have connected LAN with internet and USB 4g dongle.
I don't want to use LAN internet. I am able to switch between Ethernet and Mobile Broadband (using NetworkManager library), but once i reboot again its jumping to LAN internet. Please help me to resolve issue.

User avatar
topguy
Posts: 6152
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Access internet only from USB 4g dongle.

Tue Jan 21, 2020 12:02 am

Not the only solution but this should work:
- Set a static IP addredd on the ethernet and dont set a default gateway.

X-Gen
Posts: 87
Joined: Fri Dec 06, 2019 12:08 pm

Re: Access internet only from USB 4g dongle.

Tue Jan 21, 2020 3:29 am

Just remove the ethernet cable...

dustnbone
Posts: 166
Joined: Tue Nov 05, 2019 2:49 am

Re: Access internet only from USB 4g dongle.

Tue Jan 21, 2020 7:32 am

Interface metrics should work without breaking anything else.

https://www.debian.org/doc/manuals/debi ... ic_package

bhuvankumar
Posts: 6
Joined: Mon Jan 20, 2020 12:54 pm

Re: Access internet only from USB 4g dongle.

Tue Jan 21, 2020 1:55 pm

Thank you for your reply.
I am using VERSION="10 (buster)"
I am using Ethernet to get the shared folder access from windows system through IP switch, I am able to access the share folder.
I want to fetch (At an interval of every 10min) few files from shared folder and dump to remote FTP server using USB 4G dongle internet.

I have set the "Connect automatically with priority" option in General tab of NetworkManager, Its not working.
I have changed the Metrics value as instructed in below link, which is not working from ,me.
https://raspberrypi.stackexchange.com/q ... ting-table

bhuvankumar
Posts: 6
Joined: Mon Jan 20, 2020 12:54 pm

Re: Access internet only from USB 4g dongle.

Tue Jan 21, 2020 1:58 pm

topguy wrote:
Tue Jan 21, 2020 12:02 am
Not the only solution but this should work:
- Set a static IP addredd on the ethernet and dont set a default gateway.
How can i set the static IP, which i am used to get the access of shared folder of windows system via IP switch?

Return to “General discussion”