onderoots
05-07-2007, 11:40
Ciao,
ho un cellulare A1000 e vorrei connettermi sotto linux al naviga.tre.it:
#rfcomm connect 0 00:15:A8:A2:0A:00 1
e stabilisco la connessione, poi:
# pppd call gprs
lo script sembra funzionare:
Serial connection established.
using channel 28
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2c9dbf1c> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2c9dbf1c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x4eb30e9> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x4eb30e9> <pcomp> <accomp>]
sent [PAP AuthReq id=0x1 user="tre" password=<hidden>]
rcvd [PAP AuthAck id=0x1]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 1.40.127.139> <ms-dns1 62.13.171.1> <ms-dns3 62.13.171.2>]
sent [IPCP ConfReq id=0x2 <addr 1.40.127.139> <ms-dns1 62.13.171.1> <ms-dns3 62.13.171.2>]
rcvd [IPCP ConfAck id=0x2 <addr 1.40.127.139> <ms-dns1 62.13.171.1> <ms-dns3 62.13.171.2>]
rcvd [IPCP ConfReq id=0x2 <addr 192.168.100.103>]
sent [IPCP ConfAck id=0x2 <addr 192.168.100.103>]
local IP address 1.40.127.139
remote IP address 192.168.100.103
primary DNS address 62.13.171.1
secondary DNS address 62.13.171.2
Script /etc/ppp/ip-up started (pid 8695)
Script /etc/ppp/ip-up finished (pid 8695), status = 0x7
faccio il route:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.103 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 192.168.100.103 0.0.0.0 UG 0 0 0 ppp0
ma purtroppo non riesco a pingare nulla, nemmeno il remoto:
ping 192.168.100.103
PING 192.168.100.103 (192.168.100.103) 56(84) bytes of data.
--- 192.168.100.103 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7000ms
Qualche idea?
grazie
PS gli script sono:
#more gprs
connect "/usr/sbin/chat -v -f /etc/ppp/peers/gprs-chat"
/dev/rfcomm0
460800
debug
nodetach
noauth
defaultroute
-crtscts
local
usepeerdns
name tre
noipdefault
novj
novjccomp
#more gprs-chat
'' AT
TIMEOUT 240
OK ATE0
OK ATV1
OK 'AT+CGDCONT=3,"IP","naviga.tre.it"'
OK AT+CGATT=0
OK ATS0=0
OK AT+CGQREQ=3,0,0,0,0,0
OK AT+CGQMIN=3,0,0,0,0,0
OK ATD*99***1#
TIMEOUT 30
CONNECT ""
#EOF
ho un cellulare A1000 e vorrei connettermi sotto linux al naviga.tre.it:
#rfcomm connect 0 00:15:A8:A2:0A:00 1
e stabilisco la connessione, poi:
# pppd call gprs
lo script sembra funzionare:
Serial connection established.
using channel 28
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2c9dbf1c> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2c9dbf1c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x4eb30e9> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0x4eb30e9> <pcomp> <accomp>]
sent [PAP AuthReq id=0x1 user="tre" password=<hidden>]
rcvd [PAP AuthAck id=0x1]
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 1.40.127.139> <ms-dns1 62.13.171.1> <ms-dns3 62.13.171.2>]
sent [IPCP ConfReq id=0x2 <addr 1.40.127.139> <ms-dns1 62.13.171.1> <ms-dns3 62.13.171.2>]
rcvd [IPCP ConfAck id=0x2 <addr 1.40.127.139> <ms-dns1 62.13.171.1> <ms-dns3 62.13.171.2>]
rcvd [IPCP ConfReq id=0x2 <addr 192.168.100.103>]
sent [IPCP ConfAck id=0x2 <addr 192.168.100.103>]
local IP address 1.40.127.139
remote IP address 192.168.100.103
primary DNS address 62.13.171.1
secondary DNS address 62.13.171.2
Script /etc/ppp/ip-up started (pid 8695)
Script /etc/ppp/ip-up finished (pid 8695), status = 0x7
faccio il route:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.103 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 192.168.100.103 0.0.0.0 UG 0 0 0 ppp0
ma purtroppo non riesco a pingare nulla, nemmeno il remoto:
ping 192.168.100.103
PING 192.168.100.103 (192.168.100.103) 56(84) bytes of data.
--- 192.168.100.103 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 7000ms
Qualche idea?
grazie
PS gli script sono:
#more gprs
connect "/usr/sbin/chat -v -f /etc/ppp/peers/gprs-chat"
/dev/rfcomm0
460800
debug
nodetach
noauth
defaultroute
-crtscts
local
usepeerdns
name tre
noipdefault
novj
novjccomp
#more gprs-chat
'' AT
TIMEOUT 240
OK ATE0
OK ATV1
OK 'AT+CGDCONT=3,"IP","naviga.tre.it"'
OK AT+CGATT=0
OK ATS0=0
OK AT+CGQREQ=3,0,0,0,0,0
OK AT+CGQMIN=3,0,0,0,0,0
OK ATD*99***1#
TIMEOUT 30
CONNECT ""
#EOF