I don't have your exact modem at hand, but have been able to get quite a few Huawei modems working. wvdial
is meant for older modems using a serial interface (ppp).
Most modern usb modems include a "router" inside, and the linux drivers configure it to pop up as an interface after initialisation. The router will then simulate an ethernet port and route all internet traffic through it.
If this is the case, the interface will be named eth1
or usb0
, and can be enabled in the interfaces file:
sudo vim /etc/network/interfaces
And add the following lines:
allow-hotplug usb0
auto usb0
iface usb0 inet dhcp
allow-hotplug eth1
auto eth1
iface eth1 inet dhcp
Essentially these lines will monitor for these interface names, and if they are there from boot, or plugged in afterwards (hotplugged) they will be initialised to run as an internet interface, using dhcp to set up the ip, gateway and other parameters.
To test: edit the lines into the interfaces file as above, and reboot the raspberry with the modem plugged in. After boot, run ifconfig
. If you see a block like this:
eth1 Link encap:Ethernet HWaddr 00:1e:10:1f:00:00
inet addr:192.168.9.100 Bcast:192.168.9.255 Mask:255.255.255.0
inet6 addr: fe80::21e:10ff:fe1f:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:348 errors:0 dropped:0 overruns:0 frame:0
TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:144890 (141.4 KiB) TX bytes:5435 (5.3 KiB)
then the modem has been configured as a fake ethernet port (eth1) and you will get internet traffic. The modem's built-in router runs a firewall that blocks internet access from the outside, but any calls from the inside will be routed correct.
I am currently using another Huawei modem:
lsusb
Bus 001 Device 006: ID 12d1:1590 Huawei Technologies Co., Ltd.
and it is using my eth1 port name as shown above. final test:
ping google.com
PING google.com (216.58.223.46) 56(84) bytes of data.
64 bytes from jnb01s08-in-f14.1e100.net (216.58.223.46): icmp_seq=1 ttl=54 time=41.0 ms
64 bytes from jnb01s08-in-f14.1e100.net (216.58.223.46): icmp_seq=2 ttl=54 time=29.4 ms
wwan0
shows up withifconfig
. It's not picking up an IP address, so I think I need to be able to send it some commands to change the APN or something. However, to get that far, there was nothing special I had to do. That's what happened on first plugin...wwan0
does not pop up when I plug it in. This link may be helpful for those who wish to answer this: wiki.openwrt.org/doc/recipes/ltedongle