Navigation

internet

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

O2/Vodafone:

Change internet settings in windows

internet.bat

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