Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bjoern-r
Last active February 2, 2024 13:34
Show Gist options
  • Star 56 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save bjoern-r/1345e8a17f4acf41006330e688af1441 to your computer and use it in GitHub Desktop.
Save bjoern-r/1345e8a17f4acf41006330e688af1441 to your computer and use it in GitHub Desktop.
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
opkg install kmod-usb-net-cdc-ether
opkg install usb-modeswitch

setup

  • install software
  • reboot router
  • connect device
  • create a new network named lte
  • select the eth device of the dongle ( e.g eth1)
  • assign the network to firewall zone wan
@AcidVienna
Copy link

Works like a charme, exactly as it is described here :)

@LeidenSpain
Copy link

Hi,

There is the option to force the 4G conection???

Regards

@bjoern-r
Copy link
Author

Depends on the firmware of the lte dongle. There are modded firmwares available where you can select the allowed bands.
Open the interface via http://192.168.8.1/ or http://192.168.4.1/

@LeidenSpain
Copy link

Hi

Thanks.
I'm using the original firmware with Hilink:

Nombre del equipo: E3372
IMEI: xxxx
IMSI: xxxx
Vers. del hardware del: CL2E3372HM
Vers. del software del: 22.328.62.00.1217
Versión de UI web: 17.100.18.05.1217
Dirección MAC de LAN: BA:AB:xx:xx
Dirección IP WAN: 172.xx.xx.xx

But with this IP I can check the configuration (and i think force the 4G mode)

Regards

@le-diabolo
Copy link

Also runs as described with the Huawei E5573 LTE Router. Thanks a lot.

@madismaks
Copy link

Still works like a charm, thank you.

Since I was struggling with the last items in the list, perhaps this will help someone in the future:

connect device

to verify that the device is connected, you should see something like this when logged in to the router:

root@OpenWrt:~# lsusb
Bus 001 Device 003: ID 12d1:14dc HUAWEI_MOBILE HUAWEI_MOBILE

create a new network named lte
select the eth device of the dongle ( e.g eth1)
assign the network to firewall zone wan

To achieve this with OpenWrt 21.02.1 / LuCI openwrt-21.02 combination you have to: LuCi -> Network -> Interfaces -> Add new interface... From there:

  • Name: lte
  • Protocol: DHCP client
  • Device: Ethernet Adapter: "eth1" (I guess the number can vary)

and Create interface.

After that the interface "lte" is created and you can move to "Firewall Settings" tab (NB! no need to go to Network -> Firewall menu, it's a different thing) and for "Create / Assign firewall-zone", select "wan" and hit Save.

Lastly, don't forget to hit the "Save & Apply" button at the end

@RagnarLodbrok79
Copy link

yes, this works with Huawei E3531, thanks

@Prophet-Phoenix
Copy link

As of 2023-09-20 this is the way.
Network should be DHCP.
Used in HiLink mode.

Huawei E3372
CL1E3372SM Ver.A
22.286.03.01.1202

@trohnjavolta
Copy link

I also had to change the name used when requesting dhcp. It was using "root" and was giving me errors. After I changed to "a", it worked just fine.

Can you elaborate on what you exactly changed?
I tried everything in the tutorial and according to log and device everything should be fine but I have no internet.

@ThinkPadNL
Copy link

ThinkPadNL commented Feb 2, 2024

Still works as of today with E3372 (hardware CL2E3372HM and software 22.328.62.00.1217) with OpenWrt 23.05.2

opkg update
opkg install kmod-usb-net-huawei-cdc-ncm
opkg install usb-modeswitch

Restart router, create new interface '4G' connected to eth2 (in my case) and assign to zone WAN at tab 'Firewall settings' of interface.

Stick is running in Hilink mode (hands out a 192.168.8.x address to client, stick webinterface at 192.168.81).
No pin configured on SIM.

If you need lsusb (which is not installed by default): opkg install usbutils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment