Skip to content

Instantly share code, notes, and snippets.

@bjoern-r
Last active November 15, 2024 08:20
Show Gist options
  • 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
@yjjie
Copy link

yjjie commented Dec 6, 2016

it shold be DHCP

@marsavela
Copy link

This worked for me. To mention that I assigned it as DHCP client and for me was eth2.

@sickrandir
Copy link

it worked exactly like this for me. Thanx

@paolomeraviglia
Copy link

Does not work with dev build (reboot when eth1 goes up)

@kholisrag
Copy link

how to select eth device of the dongle?

@MichaelQuint
Copy link

Hello, I have a Huawei E3372H-510 modem on the T-Mobile network using a tablet/hotspot plan. When I plug the USB modem into my windows 10 PC directly and run speedtest.net I get 22-25 mbps and sometimes I can get 30mbps. Now if I connect the modem to the router, run the same speedtest.net (meaning same server as before) I only get 10 mbps-15mbps. Does the usb port on the AR150 router maybe not have full power for higher speeds? Maybe there is some software running on the router that is slowing down the traffic? This doesnt make sense. Btw both the router and the windows 10 pc have there TTL set to 65 so its not a network throttle issue. Some how the router is about 5-10 mbps slower then direct connection.

@huangjiada
Copy link

work fine with Huawei E8372h-155 also

@Bogdan-Vasile
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.

@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

@ffainelli
Copy link

Also confirm this is working!

@NetoSimoes
Copy link

+1

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