On Thu, 28 Dec 2006, zhang guocheng wrote:
thanks,the problem has been resolved.
for long time,i have take no notice of the chat scripts(because i had
thought it correctly),
on my board,uclinux doesn't surpport one command,multi-lines by '\'
in fact ,chat negotiations didn't been started.
now i changed the scripts :
#!/bin/sh
exec /bin/chat -v '' AT OK ATDT*99***1# CONNECT ''
the pppd has been started
In many situations you should end with '\d\c' so that your chat script does
not send a carriage return, which it does for '' which you use to end it.
Many isps see taht carriage return as a request to start a regular login
session rather than ppp. However in your case I guess it is a gsm phone or
something you are using.
2006/12/28, Bill Unruh <unruh@xxxxxxxxxxxxxx>:
On Wed, 27 Dec 2006, zhang guocheng wrote:
> hi ,all .
> please excuse my poor English,I have got a problem for a long
> time ,and i have done a lot of research in this questions ,but still
> have no way!
> my kernel is linux2.4. the pppd version is 2.3.8, and cpu is
> s3c44b0
> when i excuted pppd like this
> /mnt/mtd0> pppd file gprs&
> system got some messages about this :
> ...
> <31>Jan 1 00:53:18 pppd[40]: lcp_reqci: returning CONFNAK.
> <31>Jan 1 00:53:18 pppd[40]: sent [LCP ConfNak id=0x9 <magic
> 0xfe72343>]
> <31>Jan 1 00:53:18 pppd[40]: rcvd [LCP ConfNak id=0x9 <magic
> 0xfe72343>]
Notice that the line you receive is identical to the line you sent. You
are
receiving your own replies. A very common reason for this is that you
forgot and sent a carriage return to the far side before you started ppp.
You do not show us the prior negotiations-- ie the output from chat-- top
see what you sent.
If you are using chat, terminate the last chat string with
\d\c Ie, a one second pause and do not send a carriage return.
Of course you might have miswired your serial cable and wired the output
to
the input. but that is unlkely unless you wired your own cable.
It could also be that your modem is echoing back everthing.
> <31>Jan 1 00:53:18 pppd[40]: sent [LCP ConfReq id=0xa <asyncmap 0x0>
> <auth
> pap>
> <31>Jan 1 00:53:18 pppd[40]: rcvd [LCP ConfReq id=0xa <asyncmap 0x0>
> <auth
> pap>
> ...
> <29>Jan 1 00:53:18 pppd[40]: Serial line is looped back.
> ...
> the pppd server runs well. and the scripts runs well on my redhat9.0.
> this problem seems to be resolved by adding a option ,-mn,but the
-mn? Option to what?
-mn is a option in option.tpl, in the ppp-HOWTO
> other problem is coming ,
> 31>Jan 1 00:51:18 pppd[37]: sent [LCP ConfAck id=0x1 <auth pap>
> <accomp>]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [LCP ConfAck id=0x1 <auth pap>
> <accomp>]
> <31>Jan 1 00:51:18 pppd[37]: sent [PAP AuthReq id=0x1 user="john_doe"
> password=
> <31>Jan 1 00:51:18 pppd[37]: rcvd [PAP AuthReq id=0x1 user="john_doe"
> password=
You are STILL repeating yourself. That option did absolutely nothing.
> <31>Jan 1 00:51:18 pppd[37]: sent [PAP AuthAck id=0x1 "Login ok"]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [PAP AuthAck id=0x1 "Login ok"]
> # seems to authenticate success!
You are talking to yourself.
> <30>Jan 1 00:51:18 pppd[37]: Remote message: Login ok
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>
> <compress
> <31>Jan 1 00:51:18 pppd[37]: sent [CCP ConfReq id=0x1]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP ConfReq id=0x1 <addr 0.0.0.0>
> <compress
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP ConfRej id=0x1 <addr 0.0.0.0>]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [CCP ConfReq id=0x1]
> <31>Jan 1 00:51:18 pppd[37]: sent [CCP ConfAck id=0x1]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0>]
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0
> 0.0.0.0>
> <31>Jan 1 00:51:18 pppd[37]: rcvd [CCP ConfAck id=0x1]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP ConfReq id=0x2 <addrs 0.0.0.0
> 0.0.0.0>
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP ConfRej id=0x2 <addrs 0.0.0.0
> 0.0.0.0>]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0
> 0.0.0.0 >]
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP ConfReq id=0x3 <compress VJ 0f
> 01>]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP ConfReq id=0x3 <compress VJ 0f
> 01>]
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP ConfAck id=0x3 <compress VJ 0f
> 01>]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP ConfAck id=0x3 <compress VJ 0f
> 01>]
> <27>Jan 1 00:51:18 pppd[37]: Could not determine remote IP address
> <30>Jan 1 00:51:18 pppd[37]: Removing resolv.conf for 0.0.0.0
> <27>Jan 1 00:51:18 pppd[37]: Unable to create temporary file
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP TermReq id=0x4 "Could not
> determine
> rem
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP TermReq id=0x4 "Could not
> determine
> rem
> <31>Jan 1 00:51:18 pppd[37]: sent [IPCP TermAck id=0x4]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [IPCP TermAck id=0x4]
> <31>Jan 1 00:51:18 pppd[37]: sent [LCP TermReq id=0x2 "No network
> protocols
> run
> <31>Jan 1 00:51:18 pppd[37]: rcvd [LCP TermReq id=0x2 "No network
> protocols
> run
> <31>Jan 1 00:51:18 pppd[37]: sent [LCP TermAck id=0x2]
> <31>Jan 1 00:51:18 pppd[37]: rcvd [LCP TermAck id=0x2]
> <29>Jan 1 00:51:18 pppd[37]: Connection terminated.
> ...
>
> i have do a lot of work to resolv the problem,like by add a line
> : 10.142.0.1 in my gprs file,but it just sent the ip to remote ip and
> the local ip address.the log follows:
> <29>Jan 1 01:28:09 pppd[43]: local IP address 10.142.0.1
> <29>Jan 1 01:28:09 pppd[43]: remote IP address 10.142.0.1
>
>
> can anybody help me ?
Yes, stop talking to yourself.
You might want to look at www.theory.physics.ubc.ca/ppp-linux.html for
hints at debugging your ssytem.
> best wishes
>
> gczh
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273
Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324
UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/
--
William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273
Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324
UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html