Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LCP terminated by peer

5,826 views
Skip to first unread message

cerr

unread,
Jul 11, 2012, 5:30:49 PM7/11/12
to
Hi There,

I'm attempting to dial up to the GSM network from Rogers Wireless
(Canada) with a gsm modem from sierra wireless, type GL6100 using pppd.
I wrote a chat script that seems to work well and do the required until
I get the CONNECT message from my apn. I get following messages in
syslog:

Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: send
(ATD*99***1#^M)
Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: expect
(CONNECT)
Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: ^M
Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]:
ATD*99***1#^M^M
Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: CONNECT
Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: -- got it
Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: send (\d)
Jul 11 21:22:07 E10_semiosOffice daemon.debug pppd[1236]: Script
/usr/sbin/chat -v -t6 -f /etc/ppp/peers/rogers_chat finished (pid
1239), status = 0x0
Jul 11 21:22:07 E10_semiosOffice daemon.info pppd[1236]: Serial
connection established.
Jul 11 21:22:07 E10_semiosOffice daemon.debug pppd[1236]: using channel
25
Jul 11 21:22:07 E10_semiosOffice daemon.info pppd[1236]: Using
interface ppp0
Jul 11 21:22:07 E10_semiosOffice daemon.notice pppd[1236]: Connect:
ppp0 <--> /dev/ttyUSB0
Jul 11 21:22:08 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
ConfReq id=0x1 <asyncmap 0x0> <magic 0x85f3960> <pcomp> <accomp>]
Jul 11 21:22:08 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
ConfAck id=0x1 <asyncmap 0x0> <magic 0x85f3960> <pcomp> <accomp>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>
<auth pap>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: No auth is
possible
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
ConfRej id=0x1 <auth pap>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
ConfReq id=0x2 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
ConfAck id=0x2 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [CCP
ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [IPCP
ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0>
<ms-dns2 0.0.0.0>]
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
TermReq id=0x3]
Jul 11 21:22:09 E10_semiosOffice daemon.info pppd[1236]: LCP terminated
by peer
Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
TermAck id=0x3]
Jul 11 21:22:09 E10_semiosOffice daemon.notice pppd[1236]: Modem hangup
Jul 11 21:22:09 E10_semiosOffice daemon.notice pppd[1236]: Connection
terminated.
Jul 11 21:22:10 E10_semiosOffice daemon.info pppd[1236]: Exit.

Why is this? Why do I get disconnected from my peer and why does it say
"LCP terminated by peer"?
Thank you for any hints or suggestions!
Ron



--- Posted via news://freenews.netfront.net/ - Complaints to ne...@netfront.net ---

Ron Eggler

unread,
Jul 11, 2012, 5:21:12 PM7/11/12
to
Hi There,

I'm trying to dial up to the GSM network from Rogers (Canada).
I gewt the proper AT handshake and stuff going and connected but then there's some LCP messages going back and forth beeforee I'm dropped off the network with a message 'LCP terminated by peer'.
This is from my syslog:
Btw, my modem is a sierra wireless GL6100. please advise what i can do to get my connection up and running properly.

Thank you,
Ron

Lew Pitcher

unread,
Jul 11, 2012, 6:11:13 PM7/11/12
to
Hi Ron

On Wednesday 11 July 2012 17:30, in comp.protocols.ppp,
ronDOT...@tscheemail.com wrote:

> Hi There,
>
> I'm attempting to dial up to the GSM network from Rogers Wireless
> (Canada) with a gsm modem from sierra wireless, type GL6100 using pppd.
> I wrote a chat script that seems to work well and do the required until
> I get the CONNECT message from my apn. I get following messages in
> syslog:

From the log below, the short answer is that Rogers wants your end to send a
PAP authentication (userid, password), and your end refuses. Without
authentication, Rogers won't let you on to their network, and hangs up on
you.

Fix your pap.secrets file so that it contains the proper authentication, and
make sure that you have authentication enabled on your pppd config.

> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: send
> (ATD*99***1#^M)
> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: expect
> (CONNECT)
> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: ^M
> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]:
> ATD*99***1#^M^M
> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: CONNECT
> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: -- got it
> Jul 11 21:22:06 E10_semiosOffice local2.info chat[1240]: send (\d)
> Jul 11 21:22:07 E10_semiosOffice daemon.debug pppd[1236]: Script
> /usr/sbin/chat -v -t6 -f /etc/ppp/peers/rogers_chat finished (pid
> 1239), status = 0x0

OK, your system is in communication with rogers

[snip]

> Jul 11 21:22:08 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
> ConfReq id=0x1 <asyncmap 0x0> <magic 0x85f3960> <pcomp> <accomp>]

You send a request for certain configuration values

> Jul 11 21:22:08 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
> ConfAck id=0x1 <asyncmap 0x0> <magic 0x85f3960> <pcomp> <accomp>]

Rogers agrees

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
> ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>
> <auth pap>]

Rogers sends a request for PAP authentication (among other things)

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[> 1236]: No auth is
> possible

Your setup doesn't think that this is possible

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
> ConfRej id=0x1 <auth pap>]

You reject PAP authentication.

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
> ConfReq id=0x2 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>]

Rogers wants the rest of the config

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
> ConfAck id=0x2 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp>]

You agree to the rest of the config

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [CCP
> ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]

You request more config values

> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [IPCP
> ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0>
> <ms-dns2 0.0.0.0>]
> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP
> TermReq id=0x3]

Rogers gives up and says goodbye

> Jul 11 21:22:09 E10_semiosOffice daemon.info pppd[1236]: LCP terminated
> by peer
> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP
> TermAck id=0x3]

You acknowledge that Rogers said goodbye

> Jul 11 21:22:09 E10_semiosOffice daemon.notice pppd[1236]: Modem hangup
> Jul 11 21:22:09 E10_semiosOffice daemon.notice pppd[1236]: Connection
> terminated.
> Jul 11 21:22:10 E10_semiosOffice daemon.info pppd[1236]: Exit.

And you are gone.

> Why is this? Why do I get disconnected from my peer

because you refused to authenticate, and Rogers wont proceed without
authentication

> and why does it say "LCP terminated by peer"?

because Rogers won't let you continue without authenticating to them via
PAP. Since your side refused authentication, Rogers refuses your connection
and hangs up on you.


> Thank you for any hints or suggestions!

Fix your setup so that it authenticates via PAP with Rogers.

--
Lew Pitcher
"In Skills, We Trust"

cerr

unread,
Jul 11, 2012, 7:59:20 PM7/11/12
to
Thanks for that Lew but from Windows I can establish a connection and I
don't have any credentials there either.....

Lew Pitcher

unread,
Jul 11, 2012, 8:49:15 PM7/11/12
to
On Wednesday 11 July 2012 19:59, in comp.protocols.ppp,
ronDOT...@tscheemail.com wrote:

> Lew Pitcher wrote:
>
>> Hi Ron
>>
>> On Wednesday 11 July 2012 17:30, in comp.protocols.ppp,
>> ronDOT...@tscheemail.com wrote:
>>
>>> Hi There,
>>>
>>> I'm attempting to dial up to the GSM network from Rogers Wireless
>>> (Canada) with a gsm modem from sierra wireless, type GL6100 using
>>> pppd.
>>> I wrote a chat script that seems to work well and do the required
>>> until I get the CONNECT message from my apn. I get following messages in
>>> syslog:

>> From the log below, the short answer is that Rogers wants your end to
>> send a PAP authentication (userid, password), and your end refuses.
>> Without authentication, Rogers won't let you on to their network, and
>> hangs up on you.
>>
>> Fix your pap.secrets file so that it contains the proper
>> authentication, and make sure that you have authentication enabled on
>> your pppd config.

[snip]

> Thanks for that Lew but from Windows I can establish a connection and I
> don't have any credentials there either.....

Well, I doubt that. Rogers has given you a username and password which you
have entered /somewhere/ in your Windows system. It may have been part of
the initialization in a "package" from Rogers, or it may have been entered
by hand, but you *do* have it.

And, you *need* it (the username and password) in your Linux pppd
configuration as well. Rogers is clearly asking your system to authenticate
itself using the PAP authentication process, and your system is clearly
refusing to do so.

Find that username and password, and put it in your /etc/ppp/pap-secrets
file. Otherwise, you aren't going to get Rogers to accept your connection.

cerr

unread,
Jul 12, 2012, 4:30:22 PM7/12/12
to
I promise, I didn't enter any credentials nor is anything preset in the
Windows dial up connection. When I set them in my pppd script in plain text
like:
#noauth
user wapuser1
password wap
(with apn internet.com in the chat script)
I get this:
Jul 12 20:31:32 E10_semiosOffice daemon.info pppd[1484]: Using interface
ppp0
Jul 12 20:31:32 E10_semiosOffice daemon.notice pppd[1484]: Connect: ppp0 <--
> /dev/ttyUSB0
Jul 12 20:31:33 E10_semiosOffice daemon.debug pppd[1484]: sent [LCP ConfReq
id=0x1 <asyncmap 0x0> <magic 0x22a5cf31> <pcomp> <accomp>]
Jul 12 20:31:33 E10_semiosOffice daemon.debug pppd[1484]: rcvd [LCP ConfAck
id=0x1 <asyncmap 0x0> <magic 0x22a5cf31> <pcomp> <accomp>]
Jul 12 20:31:34 E10_semiosOffice daemon.debug pppd[1484]: rcvd [LCP ConfReq
id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x25dddcf8> <pcomp> <accomp> <auth
pap>]
Jul 12 20:31:34 E10_semiosOffice daemon.debug pppd[1484]: sent [LCP ConfAck
id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x25dddcf8> <pcomp> <accomp> <auth
pap>]
Jul 12 20:31:34 E10_semiosOffice daemon.debug pppd[1484]: sent [PAP AuthReq
id=0x1 user="wapuser1" password=<hidden>]
Jul 12 20:31:35 E10_semiosOffice daemon.debug pppd[1484]: rcvd [LCP TermReq
id=0x2]
Jul 12 20:31:35 E10_semiosOffice daemon.info pppd[1484]: LCP terminated by
peer
Jul 12 20:31:35 E10_semiosOffice daemon.debug pppd[1484]: sent [LCP TermAck
id=0x2]
Jul 12 20:31:38 E10_semiosOffice daemon.notice pppd[1484]: Connection
terminated.
Jul 12 20:31:39 E10_semiosOffice daemon.notice pppd[1484]: Modem hangup
Jul 12 20:31:39 E10_semiosOffice daemon.info pppd[1484]: Exit.

Lew Pitcher

unread,
Jul 13, 2012, 1:38:56 PM7/13/12
to
On Thursday 12 July 2012 16:30, in comp.protocols.ppp,
All I can say is that, if Rogers accepted the userid&password, they should
have replied with an AuthAck, which you would see in the log as....

rcvd [PAP AuthAck id=0x1 "welcome message here" ]

But, instead, they replied with

> Jul 12 20:31:35 E10_semiosOffice daemon.debug pppd[1484]: rcvd [LCP
> TermReq id=0x2]

which is unusual (I would have expected them to have sent an AuthNak first)
but not unexpected if they didn't like your authentication.


> Jul 12 20:31:35 E10_semiosOffice daemon.info pppd[1484]: LCP terminated by
> peer

After receiving (but not explicitly accepting) your login credentials,
Rogers terminates the conversation. At least, now you are sending PAP
credentials.

I can't vouch that they are the /correct/ credentials, nor can I vouch that
there isn't something else wrong. I can only say that this log doesn't
include any evidence pointing to other problems, and (by, in part, the
absence of expected evidence) implicates your PAP credentials.

> Jul 12 20:31:35 E10_semiosOffice daemon.debug pppd[1484]: sent [LCP
> TermAck id=0x2]
> Jul 12 20:31:38 E10_semiosOffice daemon.notice pppd[1484]: Connection
> terminated.
> Jul 12 20:31:39 E10_semiosOffice daemon.notice pppd[1484]: Modem hangup
> Jul 12 20:31:39 E10_semiosOffice daemon.info pppd[1484]: Exit.
>
>
> --- Posted via news://freenews.netfront.net/ - Complaints to
> ne...@netfront.net ---

James Carlson

unread,
Aug 14, 2012, 8:57:33 AM8/14/12
to
On 07/11/12 17:21, Ron Eggler wrote:
> I gewt the proper AT handshake and stuff going and connected but then there's some LCP messages going back and forth beeforee I'm dropped off the network with a message 'LCP terminated by peer'.
> This is from my syslog:

Sorry about the long delay in replying; I just noticed this posting.

> Jul 11 21:22:08 E10_semiosOffice daemon.debug pppd[1236]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x85f3960> <pcomp> <accomp>]
> Jul 11 21:22:08 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x85f3960> <pcomp> <accomp>]
> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <magic 0x0> <pcomp> <accomp> <auth pap>]
> Jul 11 21:22:09 E10_semiosOffice daemon.debug pppd[1236]: No auth is possible

That's the key information. The peer is asking you to identify yourself
with PAP (simple user name / password), and you're refusing to do so,
probably due to a local configuration problem.

> Btw, my modem is a sierra wireless GL6100. please advise what i can do to get my connection up and running properly.

Assuming you know that you should be using PAP with this provider (seems
likely to me), add this to your pppd configuration:

user yourname

replacing "yourname" with your user name with that provider. Then add a
line like the following to your /etc/ppp/pap-secrets file:

yourname * "your password"

Again, make the appropriate substitutions. The first column is your
user name as expected by that peer. The second column is the name of
that remote system; it's immaterial, so just use "*". The third column
is your password or pass phrase. It should normally be quoted.

--
James Carlson 42.703N 71.076W <carl...@workingcode.com>
0 new messages