HUAWEI E3272 and Linux
moderator: Moderators
-
- Junior Wireless Specialist
- Posts: 192
- Registration: 2008-12-23, 09:43
- Lokalizacja: Warsaw
HUAWEI E3272 and Linux
I wrote a manual, maybe it will be useful to someone :-)
https://www.youtube.com/watch?v=mbvCr0BRNXY
How to configure the Internet connection on the Huawei E3272 modem under any Linux
Requirements: in linux, the programs "lsusb", "usb_modeswitch", "wvdial" are available. Of course, the following commands from the root level (i.e. first "sudo -s")
1) the LSUSB command gives the USB modem ID ( 12d1:14fe) for HUAWEI E3272
2) create the appropriate script in the directory /etc/usb_modeswitch.d/
/etc/usb_modeswitch.d/12d1:14fe
file content :
3) connect the modem and check if in /var/log/messages or /var/log/syslog usb_modeswitch tried to switch it, if so, we create a script for WVDIAL - you need to pay attention to entering the SIM PINCODE (AT+CPIN) and name APN
/etc/wvdial.conf file
4) put the DNS addresses that we will use in the /etc/resolv.conf directory (they can be google, e.g. 8.8.8.8 or those of the operator). Unfortunately, WVDIAL sometimes had problems with DNS IPs received in the PPP protocol and it was necessary to hardcode these addresses into resolv.conf
/ Etc / resolv.conf
5) run the dialer as administrator with the command "wvdial dialername" here "wvdial orange"
and we get
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CPIN=1111
AT+CPIN=1111
OK
--> Sending: AT+CGDCONT=1,"IP","internet","",0,0
AT+CGDCONT=1,"IP","internet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Sat Oct 25 15:45:42 2014
--> Pid of pppd: 23933
--> Using interface ppp0
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> local IP address 10.253.97.164
--> pppd: [7f]
--> remote IP address 10.64.64.64
--> pppd: [7f]
--> primary DNS address 217.116.100.100
--> pppd: [7f]
--> secondary DNS address 217.116.104.104
--> pppd: [7f]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, no nameserver found `/etc/resolv.conf`
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
--> pppd: [7f]
https://www.youtube.com/watch?v=mbvCr0BRNXY
How to configure the Internet connection on the Huawei E3272 modem under any Linux
Requirements: in linux, the programs "lsusb", "usb_modeswitch", "wvdial" are available. Of course, the following commands from the root level (i.e. first "sudo -s")
1) the LSUSB command gives the USB modem ID ( 12d1:14fe) for HUAWEI E3272
Code: Select all
lsusb
2) create the appropriate script in the directory /etc/usb_modeswitch.d/
/etc/usb_modeswitch.d/12d1:14fe
file content :
Code: Select all
########################################################
# Huawei e3272
DefaultVendor=0x12d1
DefaultProduct=0x14fe
TargetVendor=0x12d1
TargetProduct=0x1506
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
3) connect the modem and check if in /var/log/messages or /var/log/syslog usb_modeswitch tried to switch it, if so, we create a script for WVDIAL - you need to pay attention to entering the SIM PINCODE (AT+CPIN) and name APN
/etc/wvdial.conf file
Code: Select all
[Dialer orange]
Modem = /dev/ttyUSB0
Phone = *99#
Username =;
Password =;
Init1 = ATZ
Init2 = AT+CPIN=1111
Init3 = AT+CGDCONT=1,"IP","internet","",0,0
Auto DNS = on
4) put the DNS addresses that we will use in the /etc/resolv.conf directory (they can be google, e.g. 8.8.8.8 or those of the operator). Unfortunately, WVDIAL sometimes had problems with DNS IPs received in the PPP protocol and it was necessary to hardcode these addresses into resolv.conf
/ Etc / resolv.conf
Code: Select all
nameserver 217.116.100.100
nameserver 217.116.104.104
5) run the dialer as administrator with the command "wvdial dialername" here "wvdial orange"
Code: Select all
hp655:/home/adam # wvdial orange
and we get
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CPIN=1111
AT+CPIN=1111
OK
--> Sending: AT+CGDCONT=1,"IP","internet","",0,0
AT+CGDCONT=1,"IP","internet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Sat Oct 25 15:45:42 2014
--> Pid of pppd: 23933
--> Using interface ppp0
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> local IP address 10.253.97.164
--> pppd: [7f]
--> remote IP address 10.64.64.64
--> pppd: [7f]
--> primary DNS address 217.116.100.100
--> pppd: [7f]
--> secondary DNS address 217.116.104.104
--> pppd: [7f]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> warning, no nameserver found `/etc/resolv.conf`
--> Nameserver (DNS) failure, the connection may not work.
--> Connected... Press Ctrl-C to disconnect
--> pppd: [7f]
-
- *Wireless Master*
- Posts: 22210
- Registration: 2006-08-14, 17:59
- Lokalizacja: Poland
Re: HUAWEI E3272 and Linux
mcore, very nice.
Thanks on behalf of myself and others. 


-
- Beginner forum user
- Posts: 2
- Registration: 2014-12-14, 23:36
- Lokalizacja: Turkish
Re: HUAWEI E3272 and Linux
Hello
Follows the instruction
I've looked and checked various descriptions and it's the same every time
it reaches the place where it downloads DNS, downloads and stops ....
there is no internet
this is more or less what it looks like:
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CPIN=1111
AT+CPIN=1111
OK
--> Sending: AT+CGDCONT=1,"IP","internet","",0,0
AT+CGDCONT=1,"IP","internet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Sat Oct 25 15:45:42 2014
--> Pid of pppd: 23933
--> Using interface ppp0
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> local IP address 10.253.97.164
--> pppd: [7f]
--> remote IP address 10.64.64.64
--> pppd: [7f]
--> primary DNS address 217.116.100.100
--> pppd: [7f]
--> secondary DNS address 217.116.104.104
(and here it stops)
I have no idea what else to do with it
Same problem on GNOME
firmware in modem 21.436.11
help
Follows the instruction
I've looked and checked various descriptions and it's the same every time
it reaches the place where it downloads DNS, downloads and stops ....
there is no internet

this is more or less what it looks like:
--> WvDial: Internet dialer version 1.60
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CPIN=1111
AT+CPIN=1111
OK
--> Sending: AT+CGDCONT=1,"IP","internet","",0,0
AT+CGDCONT=1,"IP","internet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Sat Oct 25 15:45:42 2014
--> Pid of pppd: 23933
--> Using interface ppp0
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> pppd: [7f]
--> local IP address 10.253.97.164
--> pppd: [7f]
--> remote IP address 10.64.64.64
--> pppd: [7f]
--> primary DNS address 217.116.100.100
--> pppd: [7f]
--> secondary DNS address 217.116.104.104
(and here it stops)
I have no idea what else to do with it

Same problem on GNOME
firmware in modem 21.436.11
help
-
- Junior Wireless Specialist
- Posts: 192
- Registration: 2008-12-23, 09:43
- Lokalizacja: Warsaw
Re: HUAWEI E3272 and Linux
mulder writes:--> secondary DNS address 217.116.104.104
(and here it stops)
help
Leave this one window open (this is where it "stops") and in the second terminal window as well as in the web browser this internet should work - you can check with the "sudo ifconfig -a" command whether an interface named "ppp0" with an IP address has been created
If so, your internet should be working now
if it still doesn't work then wvdial was unable to run the /etc/ppp/ip-up script and bring up the ppp0 interface. It is then worth checking tail /var/log/syslog - what errors it threw into the log
Maybe you don't have this ip-up script in your linux and you need to create it: here's an example script /etc/ppp/ip-up
In addition, here is a description of how to deal with it wvdial and /etc/ppp/ip-up
-
- Beginner forum user
- Posts: 2
- Registration: 2014-12-14, 23:36
- Lokalizacja: Turkish
Re: HUAWEI E3272 and Linux
I checked on the other terminal
the amount of data sent and received does not change
no connection
in the file /var/log/syslog the modem switches accordingly
the amount of data sent and received does not change
no connection

in the file /var/log/syslog the modem switches accordingly
-
- Senior wireless specialist
- Posts: 403
- Registration: 2014-08-02, 10:17
- Lokalizacja: Poland
Re: HUAWEI E3272 and Linux
It looks like this to me
The modem is E3372 so I don't know if this guide is correct at all.
The wvdial.conf file looks like this
[aero2 dialer]
Modem = /dev/ttyUSB0
phone = *99#
username =;
password =;
Init1 = AT+CGDCONT=1,"IP","free","",0,0
wvdial aero2
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","free","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
CONNECT 43200000
--> Carrier detected. Waiting for prompt.
--> Connected, but carrier signal lost! Retrying...
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Timed out while dialing. trying again.
^Z
[1]+ Stopped wvdial aero2
The modem is E3372 so I don't know if this guide is correct at all.
The wvdial.conf file looks like this
[aero2 dialer]
Modem = /dev/ttyUSB0
phone = *99#
username =;
password =;
Init1 = AT+CGDCONT=1,"IP","free","",0,0
-
- wireless gurus
- Posts: 7194
- Registration: 2014-10-17, 14:37
- Lokalizacja: Internet
Re: HUAWEI E3272 and Linux
Seriously, there are no guides on the net for this modem under linux?
Maybe on the eko.one.pl forum they will suggest something.
Alternatively, convert to hilink, which has built-in drivers.
Maybe on the eko.one.pl forum they will suggest something.
Alternatively, convert to hilink, which has built-in drivers.
Files for Huawei https://www.mediafire.com/folder/ll9ieqqooyhy5/Documents
-
- Beginner forum user
- Posts: 3
- Registration: 2016-03-04, 13:08
Re: HUAWEI E3272 and Linux
And instead of wvdial is NetworkManager?
-
- Beginner forum user
- Posts: 6
- Registration: 2021-01-13, 14:40
Re: HUAWEI E3272 and Linux
I wonder why bother so much at a time when almost every Huawei modem can be converted to HiLink. Then we have a network card with WebUI and settings saved in the modem's memory. Such a modem then works even connected to the TV with its own IP.
The conversion takes 20-30 minutes, E3272, E3372, versions S1, s2, h1, h2 work and then there are no problems even on MacOS (hamac) or any Linux distribution from Ubuntu (deb) to Archowate to Gentoo.
Playing with dial-up modems is a waste of time, HiLink has active internet after 3 seconds from inserting it into any USB port.
Another thing, only in HiLink can we select the bands manually (2600,2100,1800,900,800, 3372, 4, 3372, 100) and only then can we still use such old modems. The example E130 Hilink still gives advice when someone has a cast of good transmitters in the area. For me, 1800G has already been removed, but where they are still standing, the E1800 will squeeze out these XNUMX-XNUMXMBps in DL. This will not be done in Dial-UP, because there the preferred LTE is XNUMXMHz and XNUMXMHz has always been lame.
The conversion takes 20-30 minutes, E3272, E3372, versions S1, s2, h1, h2 work and then there are no problems even on MacOS (hamac) or any Linux distribution from Ubuntu (deb) to Archowate to Gentoo.
Playing with dial-up modems is a waste of time, HiLink has active internet after 3 seconds from inserting it into any USB port.
Another thing, only in HiLink can we select the bands manually (2600,2100,1800,900,800, 3372, 4, 3372, 100) and only then can we still use such old modems. The example E130 Hilink still gives advice when someone has a cast of good transmitters in the area. For me, 1800G has already been removed, but where they are still standing, the E1800 will squeeze out these XNUMX-XNUMXMBps in DL. This will not be done in Dial-UP, because there the preferred LTE is XNUMXMHz and XNUMXMHz has always been lame.
- voytek
- *** Administrator ***
- Posts: 25547
- Registration: 2007-12-02, 11:51
- Lokalizacja: PL
Re: HUAWEI E3272 and Linux
Playing around with USB modems doesn't matter today, they're just out of date.
You dug up a thread from 5 years ago.
You dug up a thread from 5 years ago.
I don't help on PM!
Re: HUAWEI E3272 and Linux
I know is it gone? There are also plenty of laptops with modern mini-PCIE ports to which people pack modems in the form of cards. It's almost the same as this USB modem only on a different bus and external. There are a lot of higher category LTE modems operating from the webUI level and I think they will be in use for many more years before 5G is covered in entire countries.
It is a pity that they do not do anything on mini-PCIE under 5G.
It is a pity that they do not do anything on mini-PCIE under 5G.
-
- Beginner forum user
- Posts: 1
- Registration: 2022-01-08, 10:17
Re: HUAWEI E3272 and Linux
Hey guys, I've just been struggling with the e3372h and raspberry pi zero (no GUI) setup for a while now.
I can't handle switching to mass storage.
I use usb_modeswitch, wvdial, openvpn and right after the start and quick login, when I ping the openvpn server, the connection is maintained without a problem.
Could someone tell me how to diagnose the problem more specifically and how to play around this disconnection problem?
I know there is a lot of info on the net about this - but I've read everything - I've tried in different ways, but it's a bit of a blind act ... I have no idea for a method that can lead to a solution.
I can't handle switching to mass storage.
I use usb_modeswitch, wvdial, openvpn and right after the start and quick login, when I ping the openvpn server, the connection is maintained without a problem.
Could someone tell me how to diagnose the problem more specifically and how to play around this disconnection problem?
I know there is a lot of info on the net about this - but I've read everything - I've tried in different ways, but it's a bit of a blind act ... I have no idea for a method that can lead to a solution.
Return to "Linux and Mobile Internet"
Who is online
Users browsing this forum: There are currently no registered users and 2 guests in the forum