You are not logged in.

#1 2009-07-30 09:50:14

e1fjl
Member
Registered: 2009-07-30
Posts: 13

[Solved] pppd will only connect once

Hi,

I am running a fully updated Arch box as a router with a PPPoA connection. The ppp daemon starts up fine when the box first boots but any subsequent connection attempts (either by the persistent argument or using a bash script) cannot connect the ppp connection. My daemon.log shows the following when a second connection attempt is made:

Jul 29 18:47:40 SERVERARCH pppd[3752]: rcvd [CHAP Challenge id=0x1 <#########>, name = "#########"] <--- real details removed
Jul 29 18:47:40 SERVERARCH pppd[3752]: sent [CHAP Response id=0x1 <#########>, name = "#########"] <--- real details removed
Jul 29 18:47:40 SERVERARCH pppd[3752]: rcvd [LCP EchoRep id=0x0 magic=0x44005010]
Jul 29 18:47:40 SERVERARCH pppd[3752]: rcvd [IPCP ConfReq id=0x1b <addr 78.150.192.1>]
Jul 29 18:47:40 SERVERARCH pppd[3752]: discarding proto 0x8021 in phase 5

With the IPCP and discard line being repeated around 20 times.

I guess something is being sent out of order, but this only ever happens if I am trying to connect the pppd for a second time. A reboot cures the problem suggesting it is something to do with my box.

Any help would be great    smile

Last edited by e1fjl (2009-07-30 21:37:06)

Offline

#2 2009-07-30 18:20:39

daf666
Member
Registered: 2007-04-08
Posts: 470
Website

Re: [Solved] pppd will only connect once

I assume you have an initial IP via DHCP? try to refresh it in the script, before the reconnection step
dhcpcd -k eth1
dhcpcd eth1

Offline

#3 2009-07-30 18:55:46

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [Solved] pppd will only connect once

Hello e1fjl!

What\s the problem with your first connection ? Is there any problem with it ?

Offline

#4 2009-07-30 19:18:39

e1fjl
Member
Registered: 2009-07-30
Posts: 13

Re: [Solved] pppd will only connect once

DJszapi:

There's no problem with the first connection but it is to my ISP and occasionally they randomly disconnect me (usually early hours of the morning) I assume to cycle IPs or something.

Daf666:
The initial IP is obtained from the ISP via DHCP when initiating the ppp connection. The ppp config is set to obtain it on initiation of the ppp connection.

If it helps, after the 20 IPCP rejections the connection terminates like so:

Jul 29 18:48:10 SERVERARCH pppd[3752]: sent [LCP EchoReq id=0x1 magic=0x6b9e7a7f]
Jul 29 18:48:10 SERVERARCH pppd[3752]: rcvd [LCP EchoRep id=0x1 magic=0x44005010]
Jul 29 18:48:11 SERVERARCH pppd[3752]: rcvd [IPCP ConfReq id=0x1b <addr 78.150.192.1>]
Jul 29 18:48:11 SERVERARCH pppd[3752]: discarding proto 0x8021 in phase 5
Jul 29 18:48:14 SERVERARCH pppd[3752]: rcvd [LCP TermReq id=0x1c]
Jul 29 18:48:14 SERVERARCH pppd[3752]: LCP terminated by peer
Jul 29 18:48:14 SERVERARCH pppd[3752]: sent [LCP TermAck id=0x1c]
Jul 29 18:48:15 SERVERARCH pppd[3752]: rcvd [LCP TermReq id=0x1]
Jul 29 18:48:15 SERVERARCH pppd[3752]: sent [LCP TermAck id=0x1]
Jul 29 18:48:17 SERVERARCH pppd[3752]: Connection terminated.

To me that looks like my router is restarting the connection, receiving a conf-request but then discarding it as out of order...

Thanks

Offline

#5 2009-07-30 21:38:08

e1fjl
Member
Registered: 2009-07-30
Posts: 13

Re: [Solved] pppd will only connect once

Solved the problem by calling the 'pppd call' command directly rather than relying on the daemon. I don't know why this should make a difference but it is working now.

Thanks for your help

Offline

Board footer

Powered by FluxBB