Subject: Re: Demand dialing using pppd
To: None <netbsd-users@netbsd.org>
From: Ian P. Thomas <ipthomas@mac.com>
List: netbsd-users
Date: 03/17/2002 08:59:33
On Saturday, March 16, 2002, at 06:50 PM, Frederick Bruckman wrote:
> On Sat, 16 Mar 2002, Ian P. Thomas wrote:
>
>> What IP address should I put there? An archived e-mail said that
>> this IP didn't matter because the ISP would set it during negotiation
>> if
>> you add options
>>
>> ipcp-accept-local
>> ipcp-accept-remote
>>
>> I don't have a static IP address to put here. Should I try it with
>> 0.0.0.0?
>
> Since about NetBSD 1.5, you don't need to give anything for the IP
> address with ipcp-accept-local.
>
> Frederick
>
>
I tried without any IP address, but the debugging info below shows
that it gives me one anyway.
Mar 16 19:19:09 solo pppd[7041]: pppd 2.4.0 started by ipt, uid 1000
Mar 16 19:19:09 solo pppd[7041]: Using interface ppp0
Mar 16 19:19:09 solo pppd[7041]: local IP address 10.64.64.64
Mar 16 19:19:09 solo pppd[7041]: remote IP address 10.112.112.112
Mar 16 19:19:16 solo pppd[7041]: Starting link
Mar 16 19:20:00 solo pppd[7041]: Serial connection established.
Mar 16 19:20:00 solo pppd[7041]: Connect: ppp0 <--> /dev/tty00
Mar 16 19:20:01 solo pppd[7041]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0xd354791d> <pcomp> <accomp>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [LCP ConfReq id=0x1 < 00 04 00 00>
<mru 1524> <asyncmap 0xa000
0> <auth pap> <pcomp> <accomp> <mrru 1524> <endpoint 13 09 03 00 c0 7b
70 fc ca>]
Mar 16 19:20:01 solo pppd[7041]: sent [LCP ConfRej id=0x1 < 00 04 00
00><mrru1524>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic 0xd354791d> <pcomp> <accomp>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [LCP ConfReq id=0x2 <mru 1524>
<asyncmap 0xa0000> <auth pap> <pcomp> <accomp> <endpoint 13 09 03 00 c0
7b 70 fc ca>]
Mar 16 19:20:01 solo pppd[7041]: sent [LCP ConfAck id=0x2 <mru 1524>
<asyncmap 0xa0000> <auth pap> <pcomp> <accomp> <endpoint 13 09 03 00 c0
7b 70 fc ca>]
Mar 16 19:20:01 solo pppd[7041]: sent [PAP AuthReq id=0x1
user="ipthomas" password=<hidden>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [PAP AuthAck id=0x1 ""]
Mar 16 19:20:01 solo pppd[7041]: sent [IPCP ConfReq id=0x1 <addr
0.0.0.0> <compress VJ 0f 01>]
Mar 16 19:20:01 solo pppd[7041]: sent [CCP ConfReq id=0x1 <deflate 15>
<deflate(old#) 15> <bsd v1 15>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [IPCP ConfReq id=0x1 <compress VJ
0f 01> <addr 128.205.200.79>]
Mar 16 19:20:01 solo pppd[7041]: sent [IPCP ConfAck id=0x1 <compress VJ
0f 01> <addr 128.205.200.79>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [IPCP ConfNak id=0x1 <addr
128.205.233.185>]
Mar 16 19:20:01 solo pppd[7041]: sent [IPCP ConfReq id=0x2 <addr
128.205.233.185> <compress VJ 0f 01>]
Mar 16 19:20:01 solo pppd[7041]: rcvd [LCP ProtRej id=0x3 80 fd 01 01 00
0f 1a 04 78 00 18 04 78 00 15 03 2f]
Mar 16 19:20:01 solo pppd[7041]: rcvd [IPCP ConfAck id=0x2 <addr
128.205.233.185> <compress VJ 0f 01>]
Mar 16 19:20:01 solo pppd[7041]: Local IP address changed to
128.205.233.185
Mar 16 19:20:01 solo pppd[7041]: Remote IP address changed to
128.205.200.9
Strangely enough, it only worked this one time. The rest of the
times I've attempted to connect with 'demand', it fails during the LCP
negotiation.
Mar 16 22:05:59 solo pppd[7161]: pppd 2.4.0 started by ipt, uid 1000
Mar 16 22:05:59 solo pppd[7161]: Using interface ppp0
Mar 16 22:05:59 solo pppd[7161]: local IP address 10.64.64.64
Mar 16 22:05:59 solo pppd[7161]: remote IP address 10.112.112.112
Mar 16 22:06:10 solo pppd[7161]: Starting link
Mar 16 22:06:54 solo pppd[7161]: Serial connection established.
Mar 16 22:06:54 solo pppd[7161]: Connect: ppp0 <--> /dev/tty00
Mar 16 22:06:54 solo pppd[7161]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0x327680cb> <pcomp> <accomp>]
Mar 16 22:06:54 solo pppd[7161]: Modem hangup
Mar 16 22:06:54 solo pppd[7161]: Connection terminated.
Mar 16 22:07:23 solo pppd[7161]: Terminating on signal 15.
Mar 16 22:07:23 solo pppd[7161]: Exit.
Something to note; when I don't use the demand option and bring the
line up manually, the debugging looks like this:
Mar 16 22:12:05 solo pppd[7199]: pppd 2.4.0 started by ipt, uid 1000
Mar 16 22:12:50 solo pppd[7199]: Serial connection established.
Mar 16 22:12:50 solo pppd[7199]: Using interface ppp0
Mar 16 22:12:50 solo pppd[7199]: Connect: ppp0 <--> /dev/tty00
Mar 16 22:12:51 solo pppd[7199]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0x1a674943> <pcomp> <accomp>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [LCP ConfReq id=0x1 < 00 04 00 00>
<mru 1524> <asyncmap 0xa0000> <auth pap> <pcomp> <accomp> <mrru 1524>
<endpoint 13 09 03 00 c0 7b 70 fc ca>]
Mar 16 22:12:51 solo pppd[7199]: sent [LCP ConfRej id=0x1 < 00 04 00
00><mrru1524>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic 0x1a674943> <pcomp> <accomp>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [LCP ConfReq id=0x2 <mru 1524>
<asyncmap 0xa0000> <auth pap> <pcomp> <accomp> <endpoint 13 09 03 00 c0
7b 70 fc ca>]
Mar 16 22:12:51 solo pppd[7199]: sent [LCP ConfAck id=0x2 <mru 1524>
<asyncmap 0xa0000> <auth pap> <pcomp> <accomp> <endpoint 13 09 03 00 c0
7b 70 fc ca>]
Mar 16 22:12:51 solo pppd[7199]: sent [PAP AuthReq id=0x1
user="ipthomas" password=<hidden>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [PAP AuthAck id=0x1 ""]
Mar 16 22:12:51 solo pppd[7199]: sent [IPCP ConfReq id=0x1 <addr
0.0.0.0> <compressVJ 0f 01>]
Mar 16 22:12:51 solo pppd[7199]: sent [CCP ConfReq id=0x1 <deflate 15>
<deflate(old#) 15> <bsd v1 15>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [IPCP ConfReq id=0x1 <compress VJ
0f 01> <addr 128.205.200.79>]
Mar 16 22:12:51 solo pppd[7199]: sent [IPCP ConfAck id=0x1 <compress VJ
0f 01> <addr 128.205.200.79>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [IPCP ConfNak id=0x1 <addr
128.205.233.137>]
Mar 16 22:12:51 solo pppd[7199]: sent [IPCP ConfReq id=0x2 <addr
128.205.233.137> <compress VJ 0f 01>]
Mar 16 22:12:51 solo pppd[7199]: rcvd [LCP ProtRej id=0x3 80 fd 01 01 00
0f 1a 04 78 00 18 04 78 00 15 03 2f]
Mar 16 22:12:51 solo pppd[7199]: rcvd [IPCP ConfAck id=0x2 <addr
128.205.233.137> <compress VJ 0f 01>]
Mar 16 22:12:51 solo pppd[7199]: local IP address 128.205.233.137
Mar 16 22:12:51 solo pppd[7199]: remote IP address 128.205.200.79
At this point I'm thoroughly confused. : ( Any more suggestions
welcome, thanks for the help so far.
Ian
Of course it runs NetBSD
www.netbsd.org