Howto setup 3G USB internet

Tested on Raspberry Pi + Huawei E3131

Install program:

apt-get install wvdial sg3-utils

After first plug is dettected as optical disc CD, chage it to modem device:

/usr/bin/sg_raw /dev/sr0 11 06 20 00 00 00 00 00 01 00

Automatic creation config file:

wvdialconf /etc/wvdial.conf

Configure file:

nano /etc/wvdial.conf


Change internet settings in windows


@echo off
if "%1"=="static" goto static
if "%1"=="dhcp" goto dhcp
echo Usage: %0 (static^|dhcp)
goto end2
echo Setting static IP of
netsh int ipv4 set address "Local Area Connection" static 1
echo Setting primary DNS server to
netsh int ipv4 set dnsservers "Local Area Connection" static primary
goto end
Subscribe to internet