Strange problem with pppd

From: Jarek (jarek_at_poczta.srv.pl)
Date: 10/25/05


Date: Tue, 25 Oct 2005 13:05:55 +0200

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 ???



Relevant Pages

  • Re: Strange problem with pppd
    ... > I've very trange problem with pppd. ... which works fine if started from command line: ... > exec pppd call gprs ... Exec replaces the current process with the command you ...
    (comp.os.linux.networking)
  • Re: pppd not working (no reply)
    ... pppd options in effect: ... Protocol-Reject for 'Compression Control Protocol' received ... will disable the CCP ConfReq above. ... noccp Disable CCP negotia- ...
    (comp.protocols.ppp)