В директорию /etc/ppp/peers помещаем файлы gprs, gprs-connect-chat, gprs-disconnect-chat, в /etc/ppp — файл pap-secrets.

Файл /etc/resolv.conf должен выглядеть примерно так:

для BeeLine

nameserver 217.118.066.243
nameserver 217.118.066.244

для MTC

nameserver 213.087.000.001
nameserver 213.087.001.001

Соединение устанавливаем командой

pppd call gprs

Разрываем соединение нажатием Ctrl+C

Содержимое файлов:

gprs

# Serial cable pppd options for GPRS phone
nodetach
debug
show-password
connect /etc/ppp/peers/gprs-connect-chat
disconnect /etc/ppp/peers/gprs-disconnect-chat
/dev/ttyUSB0 # USB0
#/dev/ttyS0 # COM1
57600
crtscts
local
noipdefault
ipcp-accept-local
defaultroute
usepeerdns
# ppp compression
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
#
noauth
user "beeline"

gprs-connect-chat

#!/bin/sh
exec chat \
TIMEOUT 5 \
ECHO ON \
ABORT '\nBUSY\r' \
ABORT '\nERROR\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nNO CARRIER\r' \
ABORT '\nNO DIALTONE\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
TIMEOUT 12 \
SAY "Press CTRL-C to close the connection at any stage!" \
SAY "\ndefining PDP context...\n" \
OK ATE1 \
OK 'AT+CGDCONT=1,"IP","internet.beeline.ru","",0,0' \
OK ATD*99***1# \
TIMEOUT 22 \
SAY "\nwaiting for connect...\n" \
CONNECT "" \
SAY "\nConnected." \
SAY "\nIf the following ppp negotiations fail,\n" \
SAY "try restarting the phone.\n"

gprs-disconnect-chat

#!/bin/sh
# chat-gprs-disconnect
exec /usr/sbin/chat -V -s -S \
ABORT "BUSY" \
ABORT "ERROR" \
ABORT "NO DIALTONE" \
SAY "\nSending break to the modem\n" \
"" "\K" \
"" "+++ATH" \
SAY "\nPDP context detached\n"
#

pap-secrets

 beeline * beeline *

Ссылки