[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Configurazione gprs di ppp



Salve a tutti.

Non immaginavo che fosse così problematica la configurazione
di ppp per una connessione gprs; almeno, per me si è
rivelata tale, dal momento che finora non sono riuscito
a realizzarla efficacemente né sono riusciti ad aiutarmi:
1) la mailing list debian-laptop;
2) il forum 'Linuxquestions';
3) il gruppo di discussione comp.protocols.ppp (veri esperti
   in materia);
4) l'autore dell'howto che ho seguito e che riporto sotto;
5) il forum debianitalia.

Forse c'è un errore banale che non riesco a vedere essendo
completamente ignaro di ppp.
Ci vorrebbe qualcuno con una esperienza diretta in merito,
qualcuno a cui la cosa è riuscita e che mi riporti il procedimento
da lui/lei seguito.

Riporto tutti i passi da me seguiti.
sistema operativo: Debian Sarge 3.1;
telefono cellulare: Motorola c350.

Ho sguito alla lettera l'howto a:

http://www.debianitalia.org/modules/wfsection/article.php?page=1&arti...

Per prima cosa, dopo aver collegato il cellulare al computer col
cavetto mini usb, mi sono assicurato che il modulo acm fosse presente
nel sistema, con:

# dmesg |fgrep acm

, che ha prodotto l'output:

usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters

. Poi ho fatto:

# mknod /dev/usb/ttyACM0 c 166 0

. Poi ho creato il file /etc/pppd/peers/provider e l'ho riempito con:



# Speed
115200
# Use hardware flow control (i.e. RTS/CTS) to control the flow
# of data on the serial port.
crtscts
# Use the modem control lines.
modem
# Specifies that pppd should create a UUCP-style lock file for
# the serial device to ensure exclusive access to the device.
lock
# Disable Van Jacobson style TCP/IP header compression in both
# the transmit and the receive direction.
novj
# Disables the default behaviour when no local IP address is
# specified, which is to determine (if possible) the local IP
# address from the hostname.
noipdefault
# This option causes pppd to create such a default route when
# IPCP comes up, and delete it when the link is terminated.
defaultroute
disconnect '/usr/sbin/chat -e -f /etc/chatscripts/disconnect -v'
connect '/usr/sbin/chat -e -f /etc/chatscripts/provider -v'
/dev/usb/ttyACM0
user anything
password anything
#With this option, pppd will accept all control characters from the
# peer, including those marked in the receive asyncmap
receive-all
logfile "/var/log/pppd.log"
nobsdcomp
nodeflate

. Poi ho creato il file /etc/chatscripts/provider e l'ho riempito con:


'' AT
 TIMEOUT 240
 OK 'AT+CGDCONT=1,"IP","web.omnitel.it"'
 OK ATDT*99#
 TIMEOUT 22
 CONNECT ""


. Poi ho messo "noauth" al posto di "auth" nel file /etc/ppp/options.
Quindi ho provato a connettermi con '# pon', ma senza riuscire a navigare.
Ho inserito la riga 'debug' in fondo al file /etc/ppp/peers/provider,
ed ecco il file /var/log/pppd.log:



AT
OK
AT+CGDCONT=1,"IP","web.omnitel.it"
OK
ATDT*99#
CONNECT
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/usb/ttyACM0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x9dc63d95> <pcomp>
<accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x9dc63d95> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x11a80e6>
<pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x11a80e6>
<pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x9dc63d95]
sent [PAP AuthReq id=0x1 user="anything" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0x11a80f0]
rcvd [PAP AuthAck id=0x1]
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 83.225.139.145>]
sent [IPCP ConfReq id=0x2 <addr 83.225.139.145>]
rcvd [IPCP ConfAck id=0x2 <addr 83.225.139.145>]
rcvd [IPCP ConfReq id=0x2 <addr 192.168.100.101>]
sent [IPCP ConfAck id=0x2 <addr 192.168.100.101>]
Cannot determine ethernet address for proxy ARP
local IP address 83.225.139.145
remote IP address 192.168.100.101
Script /etc/ppp/ip-up started (pid 1873)
Script /etc/ppp/ip-up finished (pid 1873), status = 0x0
Terminating on signal 15
Connect time 0.3 minutes.
Sent 0 bytes, received 0 bytes.
Script /etc/ppp/ip-down started (pid 1904)
sent [LCP TermReq id=0x2 "User request"]
rcvd [LCP TermAck id=0x2 "User request"]
Connection terminated.
disconnect script failed
Waiting for 1 child processes...
script /etc/ppp/ip-down, pid 1904
Script /etc/ppp/ip-down finished (pid 1904), status = 0x0


Pare che il problema sia la riga 'Terminating on signal 15':
pare che Vodafone mi disconnetta. Preciso che sulla SIM
è regolarmente attiva la promozione e c'è traffico disponibile
(infatti con Windows riesco a navigare).

Spero vivamente in un vostro aiuto.
Rodolfo




Reply to: