Ubuntu + 3G Modem

In cazul meu modemul este USB: K3565 .

SIM-ul de la Unite, am facut cum zice aici http://dmitrykhn.homedns.org/wp/2011/01/ubuntu-3g-modem-terminal/ (asta cred ca s-a inspirat de aici http://www.stanovlenie.org.ua/setting-internet-in-console-linux-in-aid-wvdial/) instalarea pacheteleor a fost mai simpla.

Fisierul meu

/etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Password = 1
New PPPD = yes
Username = 1
Modem = /dev/ttyUSB0
Baud = 9600
Init3 = AT+CGDCONT=1,”IP”, “internet.unite.md”
Stupid Mode = 1
Auto Reconnect = on

 

Ca sa se porneasca automat la pornirea calc. facem asa:

In /etc/network/interfaces

Punem:

auto ppp0
iface ppp0 inet wvdial

De aici ideia : https://superuser.com/questions/225327/how-can-i-get-wvdial-to-run-from-etc-network-interfaces

 

Inca ceva ce am mai gasit pe net: https://pastebin.com/BZ5wHUE4

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Phone =
ISDN = 0
Username =
Init1 = ATZ
Password =
Modem = /dev/ttyACM0
Baud = 460800
[Dialer orange]
Modem = /dev/ttyACM0
Baud = 460800
Init1 =
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,”IP”,”wap.orange.md”
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
[Dialer moldcell]
Modem = /dev/ttyACM0
Baud = 460800
Init1 =
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,”IP”,”internet”
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
[Dialer unite]
Modem = /dev/ttyACM0
Baud = 460800
Init1 =
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,”IP”,”internet.unite.md”
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0

Auto DNS = 1

 

RAW Paste Data

Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

[Dialer moldcell]
Modem = /dev/ttyACM0
Baud = 460800
Init1 =
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,”IP”,”internet”
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

[Dialer unite]
Modem = /dev/ttyACM0
Baud = 460800
Init1 =
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,”IP”,”internet.unite.md”
Area Code =
Phone = *99#
Username = ppp
Password = ppp
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1

Pina la urma am configurat asa:
[Dialer Defaults]
Init1 =
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,”IP”, “internet.unite.md”
Password = ppp
Phone = *99#
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 460800
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Username = ppp
Ask Password = 0
Dial Command = ATDT
Auto Reconnect = on
Compuserve = 0
Idle Seconds = 0
Auto DNS = 1
DialMessage1 =
DialMessage2 =