18 October 2019 at 6:41 AM #56405
Can anyone help me here.
I want to use Raspberry Pi 4G/LTE Shield Kit to get internet through wwan0 and share the internet through eth0 of raspberry 4.
I would connecting eth0 to an external switch which also will have many host, so I want those to get internet access through “Sixfab Raspberry Pi 4G/LTE Shield Kit”.
I tried to explore but did not work.
Do anyone have a solution for the above please.
Gokulan28 October 2019 at 9:44 AM #58381
There is also a new tutorial about it.28 October 2019 at 2:25 PM #58429
The below link id for wifi, can I get the procedure for ethernet.
https://sixfab.com/using-3g-or-4g-raspberry-pi-shield-as-a-wifi-access-point/1 November 2019 at 3:39 PM #59469
Will be updated soon. Stand by.6 November 2019 at 7:47 PM #60829XelusiParticipant
I’m pretty much a noob here.
You can access your pi with your browser, and config it to share eth011 November 2019 at 5:53 AM #61807
Thank you Xelusi , let try and see if the above process works11 November 2019 at 1:48 PM #61923
I have good news. New tutorial released.
https://sixfab.com/using-sixfab-raspberry-p-shield-hat-as-a-wi-fi-hotspot-access-point/19 November 2019 at 1:18 PM #64913
From the link that you shared, I could only configure hotspon, but unable to share internet to the host connected through eth0.
Please let me know if there is any documentation on how share internet to ethernet port from wwan..
Gokulan19 November 2019 at 3:40 PM #64940
I haven’t tested him yet. Seems a little hard to do. I’ll be back soon.24 November 2019 at 12:51 AM #66135
I was able to set up my RPi to share the wwan0 port to eth0.
I will have to look back and figure out how I did it.
More later as I have time…29 November 2019 at 2:38 PM #68411
Good to hear that you had managed to set up my RPi to share the wwan0 port to eth0. Kindly share the document to me aswell please.
Gokulan29 November 2019 at 6:01 PM #68637
You will need to edit several configuration files to get everything working. I will try to detail everything below.
I have my SixFab 3G/4G/LTE HAT setup on a RPi 4 Model B.
I followed the SixFab tutorial to get set up using the QMI connection method.
If any of the config files exist, make backup copies of them before you modify/replace them with my suggestions.
Also note, this may not be the best way to do things, I just know for right now, it is working for me. YMMV. I have NOT setup the WiFi side of things (yet) as I don’t need that running ATM.
After you make these changes, reboot! Connect a PC/LapTop via an Ethernet cable to your RPi and see if you have an IP address assigned to the computer and can get internet access.
Please report back here after you make the changes with your results. If it doesn’t work, let me know so we can troubleshoot the issue.
Scott M. Vinzant
——- Edit or create the files listed below in BOLD type. ——-
/etc/dhcpcd.conf12345678910111213141516# Global configuration parametershostnameclientidpersistentoption rapid_commitoption domain_search, domain_nameoption classless_static_routesoption require dhcp_server_identifierslaac private# Ethernet configuration parametersinterface eth0static ip_address=192.168.1.200/24static routers=192.168.1.1static domain_name_servers=192.168.1.1 184.108.40.206
/etc/sysctl.conf123# Enable packet forwarding for IPv4net.ipv4.ip_forward=1
/etc/network/interfaces123456789101112# Include files from /etc/network/interfaces.d:source-directory /etc/network/interfaces.d# The loopback interfaceauto loiface lo inet loopback# The LAN (Ethernet) interfaceallow-hotplug eth0#iface usb0 inet dhcp
/etc/network/if-pre-up.d/iptables123#!/bin/sh/sbin/iptables-restore < /etc/network/iptables
/etc/network/iptables123456789101112131415161718192021*nat:PREROUTING ACCEPT [0:0]:INPUT ACCEPT [0:0]:OUTPUT ACCEPT [0:0]:POSTROUTING ACCEPT [0:0]#wwan0 is the Cellular modem.-A POSTROUTING -o wwan0 -j MASQUERADECOMMIT*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]#DNS - Accept from LAN.-A INPUT -i eth0 -p tcp --dport 53 -j ACCEPT-A INPUT -i eth0 -p udp --dport 53 -j ACCEPTCOMMIT5 December 2019 at 6:56 AM #71062
Hello Scott M. Vinzant,
Thank you for your inputs and I able now able to get IP range (192.168.1.200-205)to my laptop when connected to raspberry pi Ethernet port , however internet connection is not established.
I an unsure what logs may be required to troubleshoot. Kindly help here..
Gokulan6 December 2019 at 2:42 AM #71324
I see on thing in my code above that may be causing an issue.
In the /etc/network/if-pre-up.d/iptables file, I see that code came across funny.
the “& l t ;” should be the “less than” symbol. It’s the symbol above the comma on an American keyboard
Line 2 of that file should read:
/sbin/iptables-restore < /etc/network/iptables
Also, please verify that you are actually connected by trying a ping:
ping -I wwan0 google.com
(or some domain close to you that you know is good.)
Please report back with your testing.
Scott7 December 2019 at 3:50 PM #71717
I even tried to make changes as mentioned in the above trail, but no luck, I able to see the IP address leasing but no internet access on the laptop connected to raspberrt pi4.
I suspect some this is missing related to name resolution, due to which Internet is not getting established. I can give access to my raspberry if required.
Last thak you for your patience to read the post and reverting…
- You must be logged in to reply to this topic.