Subject: RE: PPP into ISP with PAP authentication.
To: Alicia da Conceicao <alicia@media-city.com>
From: Herón Gallegos <gallegos@polaris.cgepi.uadec.mx>
List: netbsd-help
Date: 07/17/1997 00:08:14
Este es un mensaje con múltiples partes en formato MIME.

------=_NextPart_000_01BC9245.851CFF00
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

> De: Ted Lemon <mellon@hoffman.vix.com>
> A: Alicia da Conceicao <alicia@media-city.com>
> CC: port-i386@NetBSD.ORG
> Asunto: Re: PPP into ISP with PAP authentication. 
> Fecha: Miércoles 28 de Mayo de 1997 10:59 PM
> 
> This is how I invoke pppd with pap, and it does work for me:
> 
> pppd /dev/tty00 57600 crtscts defaultroute netmask 255.255.255.255
connect /etc/ppp/papscript -chap name mellon noauth refuse-chap user mellon
> 
> 			       _MelloN_

I have the same kind of problem, please help me.
I need connect my NetBSD 1.2 computer at thome to my company's router, a
Cisco 2511 with the following configuration (it works very well with my
win95 machine at home):
!
interface Async1
 ip unnumbered Ethernet0
 ip tcp header-compression passive
 encapsulation ppp
 keepalive 10
 async dynamic address
 async dynamic routing
 async mode dedicated
 peer default ip address 100.100.100.2 (hipothetic number)
 dialer in-band
 dialer idle-timeout 172800
 ppp authentication pap
!
interface Async2
[ stuff deleted, same config for sixteen ports]
[the ethernet IP number is 100.100.100.1 (hipothetic too)]
[comments about the Cisco's configuration are welcome]
!

My command at keyboard:
pppd /dev/tty01 57600 :100.100.100.1 connect /etc/ppp/dialing -chap user
id100

/etc/ppp/dialing:
#!/bin/csh
#
exec chat -v -r /etc/ppp/reporte			\
	TIMEOUT 5					\
	ABORT '\nBUSY\r'				\
	ABORT '\nNO ANSWER\r'			\
	ABORT '\nRINGING\r\n\rRINGING\r'	\
	"" ATZ						\
	TIMEOUT 30					\
	OK ATDT2345678				\
	CONNECT < /dev/tty01 > /dev/tty01

/etc/ppp/options:
debug
-ac
defaultroute
asyncmap ffffffff
netmask 255.255.255.0

/var/log/daemon: (started from /etc/syslog.conf)
Jul 16 20:02:08 antares pppd[488]: pppd 2.3.0 started by gallegos, uid 0
Jul 16 20:02:30 antares pppd[488]: Serial connection established.
Jul 16 20:02:31 antares pppd[488]: Using interface ppp0
Jul 16 20:02:31 antares pppd[488]: Connect: ppp0 <--> /dev/tty01
Jul 16 20:02:31 antares pppd[488]: sent [LCP ConfReq id=0x1 <magic
0xc13c9ee> <pcomp>]
Jul 16 20:02:34 antares pppd[488]: sent [LCP ConfReq id=0x1 <magic
0xc13c9ee> <pcomp>]
Jul 16 20:02:34 antares pppd[488]: rcvd [LCP ConfReq id=0x88 <asyncmap
0xa0000> <auth pap> <magic 0x214ab04f> <pcomp> <accomp>]
Jul 16 20:02:34 antares pppd[488]: sent [LCP ConfRej id=0x88 <auth pap>
<accomp>]
Jul 16 20:02:34 antares pppd[488]: rcvd [LCP ConfAck id=0x1 <magic
0xc13c9ee> <pcomp>]
Jul 16 20:02:34 antares pppd[488]: rcvd [LCP ConfReq id=0x89 <asyncmap
0xa0000> <auth pap> <magic 0x214ab04f> <pcomp>]
Jul 16 20:02:34 antares pppd[488]: sent [LCP ConfRej id=0x89 <auth pap>]
Jul 16 20:02:34 antares pppd[488]: rcvd [LCP ConfReq id=0x8a <asyncmap
0xa0000> <auth pap> <magic 0x214ab04f> <pcomp>]
Jul 16 20:02:34 antares pppd[488]: sent [LCP ConfRej id=0x8a <auth pap>]
Jul 16 20:02:35 antares pppd[488]: rcvd [LCP ConfReq id=0x8b <asyncmap
0xa0000> <auth pap> <magic 0x214ab04f> <pcomp>]
Jul 16 20:02:35 antares pppd[488]: sent [LCP ConfRej id=0x8b <auth pap>]
Jul 16 20:02:35 antares pppd[488]: rcvd [LCP ConfReq id=0x8c <asyncmap
0xa0000> <auth pap> <magic 0x214ab04f> <pcomp>]
Jul 16 20:02:35 antares pppd[488]: sent [LCP ConfRej id=0x8c <auth pap>]
Jul 16 20:02:35 antares pppd[488]: rcvd [LCP TermReq id=0x8d]
Jul 16 20:02:35 antares pppd[488]: sent [LCP TermAck id=0x8d]
Jul 16 20:02:35 antares pppd[488]: rcvd [LCP ConfReq id=0x8e <asyncmap
0xa0000> <auth pap> <magic 0x214ab04f> <pcomp>]
Jul 16 20:02:35 antares pppd[488]: sent [LCP ConfRej id=0x8e <auth pap>]
Jul 16 20:02:37 antares pppd[488]: sent [LCP ConfReq id=0x1 <magic
0xc13c9ee> <pcomp>]
Jul 16 20:03:04 antares last message repeated 9 times
Jul 16 20:03:07 antares pppd[488]: LCP: timeout sending Config-Requests
Jul 16 20:03:07 antares pppd[488]: Connection terminated.
Jul 16 20:03:08 antares pppd[488]: Exit.

/etc/ppp/pap-secrets:
I don't have one (first, i need pass the LCP problem), please post some
example.

Please tell me some idea about "what is happening" and what am i doing
wrong, but if you post some examples it will be better. I have tried some
combinations of options (the more obvious) and it doesn't work.

Thanks a lot for your patience.

Herón Gallegos
Teleinformática
Centro Siglo XXI - Informática Educativa
gallegos@polaris.cgepi.uadec.mx


------=_NextPart_000_01BC9245.851CFF00
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D3 =
color=3D"#000000" face=3D"Comic Sans MS">&gt; De: Ted Lemon &lt;<font =
color=3D"#0000FF"><u>mellon@hoffman.vix.com</u><font =
color=3D"#000000">&gt;<br>&gt; A: Alicia da Conceicao &lt;<font =
color=3D"#0000FF"><u>alicia@media-city.com</u><font =
color=3D"#000000">&gt;<br>&gt; CC: <font =
color=3D"#0000FF"><u>port-i386@NetBSD.ORG</u><font =
color=3D"#000000"><br>&gt; Asunto: Re: PPP into ISP with PAP =
authentication. <br>&gt; Fecha: Mi=E9rcoles 28 de Mayo de 1997 10:59 =
PM<br>&gt; <br>&gt; This is how I invoke pppd with pap, and it does work =
for me:<br>&gt; <br>&gt; pppd /dev/tty00 57600 crtscts defaultroute =
netmask 255.255.255.255 connect /etc/ppp/papscript -chap name mellon =
noauth refuse-chap user mellon<br>&gt; <br>&gt; =
&#009;&#009;&#009;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_MelloN_<br><=
br>I have the same kind of problem, please help me.<br>I need connect my =
NetBSD 1.2 computer at thome to my company's router, a Cisco 2511 with =
the following configuration (it works very well with my win95 machine at =
home):<br>!<br>interface Async1<br> ip unnumbered Ethernet0<br> ip tcp =
header-compression passive<br> encapsulation ppp<br> keepalive 10<br> =
async dynamic address<br> async dynamic routing<br> async mode =
dedicated<br> peer default ip address 100.100.100.2 (hipothetic =
number)<br> dialer in-band<br> dialer idle-timeout 172800<br> ppp =
authentication pap<br>!<br>interface Async2<br>[ stuff deleted, same =
config for sixteen ports]<br>[the ethernet IP number is 100.100.100.1 =
(hipothetic too)]<br>[comments about the Cisco's configuration are =
welcome]<br>!<br><br>My command at keyboard:<br>pppd /dev/tty01 57600 =
:100.100.100.1 connect /etc/ppp/dialing -chap user =
id100<br><br>/etc/ppp/dialing:<br>#!/bin/csh<br>#<br>exec chat -v -r =
/etc/ppp/reporte&#009;&#009;&#009;\<br>&#009;TIMEOUT =
5&#009;&#009;&#009;&#009;&#009;\<br>&#009;ABORT =
'\nBUSY\r'&#009;&#009;&#009;&#009;\<br>&#009;ABORT '\nNO =
ANSWER\r'&#009;&#009;&#009;\<br>&#009;ABORT =
'\nRINGING\r\n\rRINGING\r'&#009;\<br>&#009;&quot;&quot; =
ATZ&#009;&#009;&#009;&#009;&#009;&#009;\<br>&#009;TIMEOUT =
30&#009;&#009;&#009;&#009;&#009;\<br>&#009;OK =
ATDT2345678&#009;&#009;&#009;&#009;\<br>&#009;CONNECT &lt; /dev/tty01 =
&gt; =
/dev/tty01<br><br>/etc/ppp/options:<br>debug<br>-ac<br>defaultroute<br>as=
yncmap ffffffff<br>netmask 255.255.255.0<br><br>/var/log/daemon: =
(started from /etc/syslog.conf)<br>Jul 16 20:02:08 antares pppd[488]: =
pppd 2.3.0 started by gallegos, uid 0<br>Jul 16 20:02:30 antares =
pppd[488]: Serial connection established.<br>Jul 16 20:02:31 antares =
pppd[488]: Using interface ppp0<br>Jul 16 20:02:31 antares pppd[488]: =
Connect: ppp0 &lt;--&gt; /dev/tty01<br>Jul 16 20:02:31 antares =
pppd[488]: sent [LCP ConfReq id=3D0x1 &lt;magic 0xc13c9ee&gt; =
&lt;pcomp&gt;]<br>Jul 16 20:02:34 antares pppd[488]: sent [LCP ConfReq =
id=3D0x1 &lt;magic 0xc13c9ee&gt; &lt;pcomp&gt;]<br>Jul 16 20:02:34 =
antares pppd[488]: rcvd [LCP ConfReq id=3D0x88 &lt;asyncmap 0xa0000&gt; =
&lt;auth pap&gt; &lt;magic 0x214ab04f&gt; &lt;pcomp&gt; =
&lt;accomp&gt;]<br>Jul 16 20:02:34 antares pppd[488]: sent [LCP ConfRej =
id=3D0x88 &lt;auth pap&gt; &lt;accomp&gt;]<br>Jul 16 20:02:34 antares =
pppd[488]: rcvd [LCP ConfAck id=3D0x1 &lt;magic 0xc13c9ee&gt; =
&lt;pcomp&gt;]<br>Jul 16 20:02:34 antares pppd[488]: rcvd [LCP ConfReq =
id=3D0x89 &lt;asyncmap 0xa0000&gt; &lt;auth pap&gt; &lt;magic =
0x214ab04f&gt; &lt;pcomp&gt;]<br>Jul 16 20:02:34 antares pppd[488]: sent =
[LCP ConfRej id=3D0x89 &lt;auth pap&gt;]<br>Jul 16 20:02:34 antares =
pppd[488]: rcvd [LCP ConfReq id=3D0x8a &lt;asyncmap 0xa0000&gt; &lt;auth =
pap&gt; &lt;magic 0x214ab04f&gt; &lt;pcomp&gt;]<br>Jul 16 20:02:34 =
antares pppd[488]: sent [LCP ConfRej id=3D0x8a &lt;auth pap&gt;]<br>Jul =
16 20:02:35 antares pppd[488]: rcvd [LCP ConfReq id=3D0x8b &lt;asyncmap =
0xa0000&gt; &lt;auth pap&gt; &lt;magic 0x214ab04f&gt; =
&lt;pcomp&gt;]<br>Jul 16 20:02:35 antares pppd[488]: sent [LCP ConfRej =
id=3D0x8b &lt;auth pap&gt;]<br>Jul 16 20:02:35 antares pppd[488]: rcvd =
[LCP ConfReq id=3D0x8c &lt;asyncmap 0xa0000&gt; &lt;auth pap&gt; =
&lt;magic 0x214ab04f&gt; &lt;pcomp&gt;]<br>Jul 16 20:02:35 antares =
pppd[488]: sent [LCP ConfRej id=3D0x8c &lt;auth pap&gt;]<br>Jul 16 =
20:02:35 antares pppd[488]: rcvd [LCP TermReq id=3D0x8d]<br>Jul 16 =
20:02:35 antares pppd[488]: sent [LCP TermAck id=3D0x8d]<br>Jul 16 =
20:02:35 antares pppd[488]: rcvd [LCP ConfReq id=3D0x8e &lt;asyncmap =
0xa0000&gt; &lt;auth pap&gt; &lt;magic 0x214ab04f&gt; =
&lt;pcomp&gt;]<br>Jul 16 20:02:35 antares pppd[488]: sent [LCP ConfRej =
id=3D0x8e &lt;auth pap&gt;]<br>Jul 16 20:02:37 antares pppd[488]: sent =
[LCP ConfReq id=3D0x1 &lt;magic 0xc13c9ee&gt; &lt;pcomp&gt;]<br>Jul 16 =
20:03:04 antares last message repeated 9 times<br>Jul 16 20:03:07 =
antares pppd[488]: LCP: timeout sending Config-Requests<br>Jul 16 =
20:03:07 antares pppd[488]: Connection terminated.<br>Jul 16 20:03:08 =
antares pppd[488]: Exit.<br><br>/etc/ppp/pap-secrets:<br>I don't have =
one (first, i need pass the LCP problem), please post some =
example.<br><br>Please tell me some idea about &quot;what is =
happening&quot; and what am i doing wrong, but if you post some examples =
it will be better. I have tried some combinations of options (the more =
obvious) and it doesn't work.<br><br>Thanks a lot for your =
patience.<br><br>Her=F3n Gallegos<br>Teleinform=E1tica<br>Centro Siglo =
XXI - Inform=E1tica Educativa<br><font =
color=3D"#0000FF"><u>gallegos@polaris.cgepi.uadec.mx</u><font =
color=3D"#000000"><br><br><br></p>
</font></font></font></font></font></font></font></font></font></body></h=
tml>
------=_NextPart_000_01BC9245.851CFF00--