Networking Forums

Networking Forums > Computer Networking > Linux Networking > Strange problem with pppd

Reply
Thread Tools Display Modes

Strange problem with pppd

 
 
Jarek
Guest
Posts: n/a

 
      10-25-2005, 11:05 AM
Hi all!

I've very trange problem with pppd. I've configuration for some
provider, which works fine if started from command line:

pppd call gprs

syslog:

================================================== ==================
PAP authentication succeeded
pppd[16427]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
pppd[16427]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
pppd[16427]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
04 78 00]
pppd[16427]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
received
pppd[16427]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
pppd[16427]: sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
pppd[16427]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
pppd[16427]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
pppd[16427]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0>
<ms-dns3 0.0.0.0>]
pppd[16427]: rcvd [IPCP ConfNak id=0x2 <addr 172.20.245.45> <ms-dns1
194.9.223.79> <ms-dns3 217.17.34.10>]
pppd[16427]: sent [IPCP ConfReq id=0x3 <addr 172.20.245.45> <ms-dns1
194.9.223.79> <ms-dns3 217.17.34.10>]
pppd[16427]: rcvd [IPCP ConfAck id=0x3 <addr 172.20.245.45> <ms-dns1
194.9.223.79> <ms-dns3 217.17.34.10>]
pppd[16427]: Cannot determine ethernet address for proxy ARP
pppd[16427]: local IP address 172.20.245.45
pppd[16427]: remote IP address 192.168.254.254
================================================== ==================

but if I put same command to the script:

#!/bin/sh

exec pppd call gprs
sleep 20
ifconfig ppp0 | grep UP > /dev/null
if [ "$?" = "0" ]
then
logger "Connected."
fi

it failes to connect showing in the log:
================================================== ==================
pppd[16399]: rcvd [PAP AuthAck id=0x1 ""]
pppd[16399]: PAP authentication succeeded
pppd[16399]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
pppd[16399]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
pppd[16399]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
04 78 00]
pppd[16399]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
received
pppd[16399]: Hangup (SIGHUP)
^^^^^^^^^^^^^^^^^
pppd[16399]: sent [LCP TermReq id=0x3 "User request"]
pppd[16399]: sent [LCP TermReq id=0x4 "User request"]
================================================== ==================

Where is the problem ???
 
Reply With Quote
 
 
 
 
Hans-Juergen Lange
Guest
Posts: n/a

 
      10-25-2005, 11:45 AM
Jarek wrote:
> Hi all!
>
> I've very trange problem with pppd. I've configuration for some
> provider, which works fine if started from command line:
>
> pppd call gprs
>
> syslog:
>
> ================================================== ==================
> PAP authentication succeeded
> pppd[16427]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
> pppd[16427]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
> 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> pppd[16427]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
> 04 78 00]
> pppd[16427]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
> received
> pppd[16427]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
> pppd[16427]: sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
> pppd[16427]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
> 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> pppd[16427]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
> pppd[16427]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0>
> <ms-dns3 0.0.0.0>]
> pppd[16427]: rcvd [IPCP ConfNak id=0x2 <addr 172.20.245.45> <ms-dns1
> 194.9.223.79> <ms-dns3 217.17.34.10>]
> pppd[16427]: sent [IPCP ConfReq id=0x3 <addr 172.20.245.45> <ms-dns1
> 194.9.223.79> <ms-dns3 217.17.34.10>]
> pppd[16427]: rcvd [IPCP ConfAck id=0x3 <addr 172.20.245.45> <ms-dns1
> 194.9.223.79> <ms-dns3 217.17.34.10>]
> pppd[16427]: Cannot determine ethernet address for proxy ARP
> pppd[16427]: local IP address 172.20.245.45
> pppd[16427]: remote IP address 192.168.254.254
> ================================================== ==================
>
> but if I put same command to the script:
>
> #!/bin/sh
>
> exec pppd call gprs


Here I think. Exec replaces the current process with the command you
specify. Thus your shell ends here. I think but give it a try.
Simpy remove the exec. Maybe it helps.

> sleep 20
> ifconfig ppp0 | grep UP > /dev/null
> if [ "$?" = "0" ]
> then
> logger "Connected."
> fi
>


BR

Hans-Juergen Lange
 
Reply With Quote
 
Jarek
Guest
Posts: n/a

 
      10-25-2005, 12:44 PM
Hans-Juergen Lange wrote:
>> #!/bin/sh
>>
>> exec pppd call gprs


> Here I think. Exec replaces the current process with the command you
> specify. Thus your shell ends here. I think but give it a try.
> Simpy remove the exec. Maybe it helps.


You are right, but this is not a problem. I've tried to copy content of
"pon" script to check if it will help, and this is one of experiments.

best regards
Jarek.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-25-2005, 01:55 PM
Jarek <(E-Mail Removed)> writes:

>Hi all!


> I've very trange problem with pppd. I've configuration for some
>provider, which works fine if started from command line:


Why do you ask for CCP. The other side cannot use it anyway.
Put
noccp
into /etc/ppp/options.

Also get rid of
proxyarp.
It is not working.


It seems you are hanging up in the second script.


>pppd call gprs


What is in the gprs file?


>syslog:


>================================================= ===================
>PAP authentication succeeded
>pppd[16427]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
>pppd[16427]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
>0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
>pppd[16427]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
>04 78 00]
>pppd[16427]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
>received
>pppd[16427]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.254.254>]
>pppd[16427]: sent [IPCP ConfAck id=0x1 <addr 192.168.254.254>]
>pppd[16427]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
>0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
>pppd[16427]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
>pppd[16427]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0>
><ms-dns3 0.0.0.0>]
>pppd[16427]: rcvd [IPCP ConfNak id=0x2 <addr 172.20.245.45> <ms-dns1
>194.9.223.79> <ms-dns3 217.17.34.10>]
>pppd[16427]: sent [IPCP ConfReq id=0x3 <addr 172.20.245.45> <ms-dns1
>194.9.223.79> <ms-dns3 217.17.34.10>]
>pppd[16427]: rcvd [IPCP ConfAck id=0x3 <addr 172.20.245.45> <ms-dns1
>194.9.223.79> <ms-dns3 217.17.34.10>]
>pppd[16427]: Cannot determine ethernet address for proxy ARP
>pppd[16427]: local IP address 172.20.245.45
>pppd[16427]: remote IP address 192.168.254.254
>================================================= ===================


>but if I put same command to the script:


>#!/bin/sh


>exec pppd call gprs
>sleep 20
>ifconfig ppp0 | grep UP > /dev/null
>if [ "$?" = "0" ]
>then
> logger "Connected."
>fi


>it failes to connect showing in the log:
>================================================= ===================
>pppd[16399]: rcvd [PAP AuthAck id=0x1 ""]
>pppd[16399]: PAP authentication succeeded
>pppd[16399]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
>pppd[16399]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
>0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
>pppd[16399]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
>04 78 00]
>pppd[16399]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
>received
>pppd[16399]: Hangup (SIGHUP)
> ^^^^^^^^^^^^^^^^^
>pppd[16399]: sent [LCP TermReq id=0x3 "User request"]
>pppd[16399]: sent [LCP TermReq id=0x4 "User request"]
>================================================= ===================


>Where is the problem ???


Not sure. Why did you remove the timing information from these logs?


 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      10-25-2005, 06:23 PM
Jarek <(E-Mail Removed)> wrote:

> I've very trange problem with pppd. I've configuration for some
> provider, which works fine if started from command line:


> pppd call gprs


> syslog:


....
[good connection]

> but if I put same command to the script:


> #!/bin/sh


> exec pppd call gprs
> sleep 20
> ifconfig ppp0 | grep UP > /dev/null
> if [ "$?" = "0" ]
> then
> logger "Connected."
> fi


> it failes to connect showing in the log:
> ================================================== ==================
> pppd[16399]: rcvd [PAP AuthAck id=0x1 ""]
> pppd[16399]: PAP authentication succeeded
> pppd[16399]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
> pppd[16399]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
> 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> pppd[16399]: rcvd [LCP ProtRej id=0x6 80 fd 01 01 00 0c 1a 04 78 00 18
> 04 78 00]
> pppd[16399]: Protocol-Reject for 'Compression Control Protocol' (0x80fd)
> received
> pppd[16399]: Hangup (SIGHUP)
> ^^^^^^^^^^^^^^^^^
> pppd[16399]: sent [LCP TermReq id=0x3 "User request"]
> pppd[16399]: sent [LCP TermReq id=0x4 "User request"]
> ================================================== ==================


> Where is the problem ???


It seems the cell phone hung up on the chat serial connection.
That is likely caused by the exec in your script, although not
because the lines following "exec pppd call gprs" are ignored.

I'm not sure why exec causes the hangup, but will speculate that it
could be something subtle in the gprs script. It might help if you
would post that script, xxx'ing out anything you consider sensitive.

(As an aside, if you want to eliminate some unnecessary negotiations
and messages then add the pppd options noccp, novj, and noipdefault.)

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pppd shutdown problem Raphael Wegmann Linux Networking 4 10-20-2005 09:13 PM
pppd connection problem Johny Franslay Linux Networking 2 10-07-2004 06:23 PM
pppd-2.4.2 + kernel-2.6.7 problem Dimitris Mandalidis Linux Networking 13 07-18-2004 09:52 PM
pppd problem again???? Theophanis Kontogiannis Linux Networking 3 05-30-2004 01:54 PM
PPPD server routing problem? Mandrake/mgetty/pppd/D-link router martin02 Linux Networking 17 10-06-2003 03:06 PM



1 2 3 4 5 6 7 8 9 10 11