vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Good day, (please excuse the long post) I need to get a GPRS connection to a public APN on a cell phone network going. ( Later on to a private APN ) 1.) I am running Slackware 10.2 on an embedded system and use a PC104 based GPRS modem with a Wavecom module. 2.) The modem is set up as follow AT+CGDCONT=1,"IP","internet" AT+CGATT shows that the modem is attached and AT+CGREG show that the modem is registered 3.) I have set up my /etc/ppp/options file as follow: nodetach noauth debug kdebug 7 crtscts name "internet" connect "chat -vs ECHO OFF\r '' AT\r OK ATE0v1\r OK ATDT*99***1# CONNECT" novj nomagic asyncmap 0 defaultroute usepeerdns 4.) When I run the file I get the following result: root@DeathStar:/etc/ppp# pppd ttyS1 115200 file /etc/ppp/options send (AT^M^M) expect (OK) AT^M^M OK -- got it send (ATE0v1^M^M) expect (OK) ^M ATE0v1^M^M OK -- got it send (ATDT*99***1#^M) expect (CONNECT) ^M ^M CONNECT -- got it Serial connection established. using channel 2 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS1 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>] rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>] No auth is possible sent [LCP ConfRej id=0x1 <auth pap>] rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] sent [LCP ConfReq id=0x2 <asyncmap 0x0>] rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000> <auth chap MD5>] No auth is possible sent [LCP ConfRej id=0x2 <auth chap MD5>] rcvd [LCP ConfNak id=0x2 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <auth pap>] No auth is possible sent [LCP ConfRej id=0x3 <auth pap>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] LCP: timeout sending Config-Requests Connection terminated. Modem hangup It appears that the modem is connecting, but I have authorization issues here? Does anybody have any pointers? Thanks in advance any help will be appreciated. |
| |||
| On Aug 15, 8:41 am, j...@liquidauto.co.za wrote: > Good day, (please excuse the long post) > > I need to get a GPRS connection to a public APN on a cell phone > network going. ( Later on to a private APN ) > > 1.) I am running Slackware 10.2 on an embedded system and use a PC104 > based GPRS modem with a Wavecom module. > > 2.) The modem is set up as follow > > AT+CGDCONT=1,"IP","internet" > AT+CGATT shows that the modem is attached and AT+CGREG show that > the modem is registered > > 3.) I have set up my /etc/ppp/options file as follow: > > nodetach > noauth NB: by using the 'noauth' option, you only disable /your/ checking of / your providers/ credentials. This does not control whether or not your provider will want your credentials. > debug > kdebug 7 > crtscts > name "internet" > connect "chat -vs ECHO OFF\r '' AT\r OK ATE0v1\r OK ATDT*99***1# > CONNECT" > novj > nomagic > asyncmap 0 > defaultroute > usepeerdns > > 4.) When I run the file I get the following result: > > root@DeathStar:/etc/ppp# pppd ttyS1 115200 file /etc/ppp/options [snip] > sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>] > rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>] The other end wants you to authenticate (log on) using PAP > No auth is possible > sent [LCP ConfRej id=0x1 <auth pap>] Your PPP refuses to authenticate with the other end using PAP > rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] > sent [LCP ConfReq id=0x2 <asyncmap 0x0>] > rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000> <auth chap MD5>] The other end falls back and asks you to authenticate (log on) using CHAP > No auth is possible > sent [LCP ConfRej id=0x2 <auth chap MD5>] Your PPP refuses to authenticate with the other end using CHAP > rcvd [LCP ConfNak id=0x2 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <auth pap>] > No auth is possible > sent [LCP ConfRej id=0x3 <auth pap>] And again, they want you to log on using PAP, but you refuse At this point, they give up. Since your PPP doesn't want to authenticate, and your provider won't let you on until you do, they (your provider) simply declines to continue the conversation. > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > sent [LCP ConfReq id=0x3 <asyncmap 0xa0000>] > LCP: timeout sending Config-Requests > Connection terminated. > Modem hangup > > It appears that the modem is connecting, but I have authorization > issues here? > Does anybody have any pointers? Fill in the pap.secrets and/or chap.secrets file with your ISP- supplied userid and password information |
| |||
| > Fill in the pap.secrets and/or chap.secrets file with your ISP- > supplied userid and password information i used vodafone and tim in italy with a gprs/umts connection and both isp authorizazion cheking phone number. my /etc/ppp/pap-secrets is "*" * "*" -- --- bye, fAu maaa ..... ringhamboni si nasce o si diventa ? |
| |||
| After struggling with my options file I got it semi-working. (at last) It appears that I am connecting but I can not ping any machine. The output when running my script is: Serial connection established. using channel 1 Using interface ppp0 Connect: ppp0 <--> /dev/ttyS5 sent [LCP ConfReq id=0x1 <pcomp>] rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>] sent [LCP ConfRej id=0x1 <asyncmap 0xa0000>] rcvd [LCP ConfRej id=0x1 <pcomp>] sent [LCP ConfReq id=0x2] rcvd [LCP ConfReq id=0x2 <auth pap>] sent [LCP ConfAck id=0x2 <auth pap>] rcvd [LCP ConfAck id=0x2] sent [PAP AuthReq id=0x1 user="xxxx" password=<hidden>] rcvd [PAP AuthAck id=0x1 ""] PAP authentication succeeded sent [IPCP ConfReq id=0x1 <addr 196.36.72.244> <ms-dns1 0.0.0.0> <ms- dns3 0.0.0.0>] rcvd [IPCP ConfReq id=0x3 <addr 85.102.119.136>] sent [IPCP ConfAck id=0x3 <addr 85.102.119.136>] rcvd [IPCP ConfAck id=0x1 <addr 196.36.72.244> <ms-dns1 0.0.0.0> <ms- dns3 0.0.0.0>] local IP address 196.36.72.244 remote IP address 85.102.119.136 Script /etc/ppp/ip-up started (pid 214) Script /etc/ppp/ip-up finished (pid 214), status = 0x0 My ifconfig says: ppp0 link encap: Point to Point Protocol inet addr : 196.36.72.244 P-t-P 85.102.119.136 Mask 255.255.255.255 UP POINTTOPOINT RUNNING NOARP MULTILINK MTU:1500 Metric : 1 Rx packets: 2 errors: 0 dropped 0 overuns: 0 frame: 0 Tx packets: 2 errors: 0 dropped 0 overuns: 0 frame: 0 colllisions: 0 txquelen: 3 Rxbytes 32 (32.0b) Txbytes 32.0b) when running route -n i get: Destination Gateway Genmask Flags Metric Use ID Ref 85.102.119.136 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 pp0 This lead me to believe that my pppd is up and running. (but I am concerned that I do not have a default entry in the route table, that is a requirement according to the PPP-Howto.?) Any pointers as to what I can check? Any help will be appreciated. TIA Jan Coetzer |
| |||
| On Aug 22, 6:14 am, j...@liquidauto.co.za wrote: > After struggling with my options file I got it semi-working. (at last) > > It appears that I am connecting but I can not ping any machine. > > The output when running my script is: > > Serial connection established. > using channel 1 > Using interface ppp0 > Connect: ppp0 <--> /dev/ttyS5 > sent [LCP ConfReq id=0x1 <pcomp>] > rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>] > sent [LCP ConfRej id=0x1 <asyncmap 0xa0000>] > rcvd [LCP ConfRej id=0x1 <pcomp>] > sent [LCP ConfReq id=0x2] > rcvd [LCP ConfReq id=0x2 <auth pap>] > sent [LCP ConfAck id=0x2 <auth pap>] > rcvd [LCP ConfAck id=0x2] > sent [PAP AuthReq id=0x1 user="xxxx" password=<hidden>] > rcvd [PAP AuthAck id=0x1 ""] > PAP authentication succeeded > sent [IPCP ConfReq id=0x1 <addr 196.36.72.244> <ms-dns1 0.0.0.0> <ms- > dns3 0.0.0.0>] > rcvd [IPCP ConfReq id=0x3 <addr 85.102.119.136>] > sent [IPCP ConfAck id=0x3 <addr 85.102.119.136>] > rcvd [IPCP ConfAck id=0x1 <addr 196.36.72.244> <ms-dns1 0.0.0.0> <ms- > dns3 0.0.0.0>] > local IP address 196.36.72.244 > remote IP address 85.102.119.136 > Script /etc/ppp/ip-up started (pid 214) > Script /etc/ppp/ip-up finished (pid 214), status = 0x0 > > My ifconfig says: > > ppp0 link encap: Point to Point Protocol > inet addr : 196.36.72.244 P-t-P 85.102.119.136 Mask > 255.255.255.255 > UP POINTTOPOINT RUNNING NOARP MULTILINK MTU:1500 Metric : > 1 > Rx packets: 2 errors: 0 dropped 0 overuns: 0 frame: 0 > Tx packets: 2 errors: 0 dropped 0 overuns: 0 frame: 0 > colllisions: 0 txquelen: 3 > Rxbytes 32 (32.0b) Txbytes 32.0b) > > when running route -n i get: > > Destination Gateway Genmask Flags Metric Use ID Ref > 85.102.119.136 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo > 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 pp0 > > This lead me to believe that my pppd is up and running. (but I am > concerned that I do not have a default entry in the route table, that > is a requirement according to the PPP-Howto.?) > > Any pointers as to what I can check? Any help will be appreciated. > > TIA > > Jan Coetzer In your /etc/ppp/pppoe.conf file, make sure that DEFAULTROUTE=yes is set. |