PCIe to 5G/4G/3G HAT for Raspberry Pi 5 (SIM8262E) (WS-27359)

This is a placeholder topic for “PCIe to 5G/4G/3G HAT for Raspberry Pi 5 (SIM8262E)” comments.

PCIe to 5G/4G/3G HAT designed for Raspberry Pi 5, High-speed Networking, Compatible with 3042/3052 packages SIMCom/Quectel 5G modules, Multi-OS Support,…

Read more

Do you think it will work as internet modem router with optus simcard?

1 Like

Hey there, @Kevin295919, and welcome to the forums.

Absolutely that would work.

It’s a very simplified explanation, but a router is really just a computer with IPv4 route tables and a NAT Gateway. Most routers already use Linux so the software side of things shouldn’t be too hard to find. You’ll just need to set the Optus IP as the OUT interface, set up a NAT Gateway, and have the Pi’s WiFi and Ethernet configured as the IN interface. Then you just need to configure your routing tables to send all internet traffic OUT and all private traffic within the LAN, but it’s totally doable.

I would recommend getting a USB to WiFi antenna for the Pi as it’s native antenna is not quite sufficient for using it as a WiFi router (apart from very small distances).

Would you be able to make an article of this use case please. I am stuck as waveshare wiki page did not give me info that I need. I can even use it as a modem on Rpi5. No internet coming out of it, could you please help out? Many thanks.

Hey there, @Kevin295919,

Thanks for the suggestion, it would be a pretty useful guide to have.

That’s not exactly surprising, as the Waveshare Wiki is designed more for just getting the product to work with the Pi 5 itself. From your comment, can I confirm if the Pi 5 can access the internet via the 5G HAT?

Once that has been done, this guide summarises a lot of the steps for setting up IP trafficking rules, DHCP, and a NAT Gateway. Though it is a little bit out of date, the general principle is the same:

The main difference that you will be having is making the IP Routed traffic go out of the 5G HAT instead of the wireless interface.

To ask again though, are you able to get the Pi 5 to access the internet at all through the HAT?

No, I couldn’t make it work, there are no articles /tutorials for the internet to work with Rpi5 from the hat itself. So far i can access internet on Rpi5 from my own wifi or network cable but not from the hat. Power LED and Network LED were light up tho. Thanks again

1 Like

Ok, @Kevin295919, would you be able to tell me what the output of the ifconfig command looks like on your device?