FW: Re: Re: could not determine remote ip address
<[email protected]> Tue, 23 Aug 2005 22:11:10 +0200
| Newsgroups | gmane.linux.redhat.ppp |
|---|---|
| Message-ID | <001a01c5a821$091c8ba0$a1103b3e@d5g2r40j> |
This is a multi-part message in MIME format. --===============0320593322== Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01C5A831.CCA55BA0" This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C5A831.CCA55BA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Dear Kostas, Thank you! That is a really detailed explanation. It is difficult to get the exact right meaningof each line, but it is now much more clear. You wrote:" >Aug 4 11:57:52 localhost pppd[1233]: rcvd [CCP ConfAck id=0x1] >Aug 4 11:57:52 localhost pppd[1233]: rcvd [CCP ConfReq id=0x2 < 11 05 00 01 04>] >Aug 4 11:57:52 localhost pppd[1233]: sent [CCP ConfRej id=0x2 < 11 05 00 01 04>] >Aug 4 11:57:53 localhost pppd[1233]: rcvd [IPCP ConfReq id=0x3] >Aug 4 11:57:53 localhost pppd[1233]: sent [IPCP ConfAck id=0x3] This line represent a mess . After you have accepted with Line 3 that the IP that will sent you the settings that you are going to use is 62.59.16.90, YOU would have to SENT another request IPCP ConfReq with id=0x3 asking for your Local IP , and the IPs of the Primary and Secondary DNS Servers . Look at a snapshot of my logs : Aug 10 00:37:42 Magellan pppd[2378]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>] You see the buggy IP Address 0.0.0.0 is used in order to ask for the correct values Aug 10 00:37:42 Magellan pppd[2378]: rcvd [IPCP ConfNak id=0x2 <addr x.x.x.x> <ms-dns1 y.y.y.y> <ms-dns3 z.z.z.z>] The Remote Server doesn't accept ( IPCP ConfNak ) the values give and provides new ones Aug 10 00:37:42 Magellan pppd[2378]: sent [IPCP ConfReq id=0x3 <addr x.x.x.x> <ms-dns1 y.y.y.y> <ms-dns3 z.z.z.z>] This is the final step where i ask the Remote Server with the values given with the IPCP ConfNak id=0x2 Aug 10 00:37:42 Magellan pppd[2378]: rcvd [IPCP ConfAck id=0x3 <addr x.x.x.x> <ms-dns1 y.y.y.y> <ms-dns3 z.z.z.z>] Here my Remote Server accepts ( IPCP ConfAck ) and am done ."end quote Precisely. What I am wondering is why my system does not ask for the local IP. I have read the man for pppd, but didn't find anything to force to pppd to ask for the local IP, nor for the DNS server settings (must do it manual). The real strange thing to me is that it says "could not determine remote IP address", while it just gave an ACK on the configuration of the remote IP. The dail scripts are as follows (./dialscript): #!/bin/sh # # This is part 2 of the ppp-on script. It will perform the connection # protocol for the desired connection. # exec chat -v \ TIMEOUT 3 \ ABORT '\nBUSY\r' \ ABORT '\nNO ANSWER\r' \ ABORT '\nRINGING\r\n\r\nRINGING\r' \ '' \rAT \ 'OK-+++\c-OK' ATH0 \ TIMEOUT 30 \ OK ATDT1234567 \ (the phonenumber of the ISP) CONNECT '' \ ogin:--ogin: myusername_at_provider \ assword: my_password > pppd /dev/modem 38400 connect ./dialscript :1.1.1.1 The man page says that with w.x.y.z:a.b.c.d one can set manually the remote and local IP address. How do you configure the individual steps in the PPP sequence? I thought that it simply would need to be done by the files config files /etc/ppp/pap-secrets and /etc/ppp/chap-secrets. Or are there other files as well that pppd reads from? Could it be that this pppd should simply continue the sequence, but that it doesn't because of a bug? regards, Michael ------=_NextPart_000_001B_01C5A831.CCA55BA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <TITLE></TITLE> <META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3D"Courier New">Dear Kostas,</FONT></DIV><PRE = style=3D"MARGIN: 0em"><FONT face=3D"Courier New"></FONT> </PRE><PRE = style=3D"MARGIN: 0em"><FONT face=3D"Courier New">Thank you! That is a = really detailed explanation. It is difficult to get the exact right = meaningof each line, but it is now much more clear.</FONT></PRE><PRE = style=3D"MARGIN: 0em"> </PRE><PRE style=3D"MARGIN: 0em"><FONT = face=3D"Courier New">You wrote:</FONT></PRE> <DIV><FONT face=3D"Courier New">"</FONT></DIV> <DIV>>Aug 4 11:57:52 localhost pppd[1233]: rcvd [CCP ConfAck=20 id=3D0x1]<BR>>Aug 4 11:57:52 localhost pppd[1233]: rcvd [CCP = ConfReq=20 id=3D0x2 < 11 05 00 01 04>]<BR>>Aug 4 11:57:52 localhost=20 pppd[1233]: sent [CCP ConfRej id=3D0x2 < 11 05 00 01 = 04>]<BR>>Aug 4=20 11:57:53 localhost pppd[1233]: rcvd [IPCP ConfReq = id=3D0x3]<BR>>Aug 4=20 11:57:53 localhost pppd[1233]: sent [IPCP ConfAck id=3D0x3]<BR></DIV> <DIV><FONT face=3D"Courier New">This line represent a mess . After you = have=20 accepted with Line 3 that the<BR>IP that will sent you the settings that = you are=20 going to use is<BR>62.59.16.90, YOU would have to SENT another request = IPCP=20 ConfReq<BR>with id=3D0x3 asking for your Local IP , and the IPs of the = Primary and=20 Secondary<BR>DNS Servers .<BR><BR></DIV></FONT><PRE style=3D"MARGIN: = 0em">Look at a snapshot of my logs :</PRE><BR><TT>Aug 10=20 00:37:42 Magellan pppd[2378]: sent [IPCP ConfReq id=3D0x2 <addr=20 0.0.0.0><BR><ms-dns1 0.0.0.0> <ms-dns3=20 0.0.0.0>]</TT><BR><BR><TT>You see the buggy IP Address 0.0.0.0 is = used in=20 order to ask for the correct values</TT><BR><BR><PRE style=3D"MARGIN: = 0em"><BR></PRE><BR><TT>Aug 10 00:37:42 Magellan pppd[2378]:=20 rcvd [IPCP ConfNak id=3D0x2 <addr x.x.x.x><BR><ms-dns1 = y.y.y.y>=20 <ms-dns3 z.z.z.z>]</TT><BR><BR><TT>The Remote Server doesn't = accept ( IPCP=20 ConfNak ) the values give and provides new ones</TT><BR><BR><TT>Aug 10 = 00:37:42=20 Magellan pppd[2378]: sent [IPCP ConfReq id=3D0x3 <addr=20 x.x.x.x><BR><ms-dns1 y.y.y.y> <ms-dns3=20 z.z.z.z>]</TT><BR><BR><TT>This is the final step where i ask the = Remote=20 Server with the values given with the<BR>IPCP ConfNak = id=3D0x2</TT><BR><BR><TT>Aug=20 10 00:37:42 Magellan pppd[2378]: rcvd [IPCP ConfAck id=3D0x3 <addr=20 x.x.x.x><BR><ms-dns1 y.y.y.y> <ms-dns3 = z.z.z.z>]</TT><BR><BR><PRE style=3D"MARGIN: 0em">Here my Remote = Server accepts ( IPCP ConfAck ) and am done .</PRE> <DIV><FONT face=3DArial size=3D2>"end quote</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Precisely. What I am wondering is why = my system=20 does not ask for the local IP. I have read the man for pppd, but = didn't=20 find anything to force to pppd to ask for the local IP, nor for the DNS = server=20 settings (must do it manual). The real strange thing to me is that it=20 says "could not determine remote IP address", while it just gave an = ACK on=20 the configuration of the remote IP. </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The dail scripts are as follows (<FONT=20 size=3D3>./dialscript</FONT>):</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT size=3D2> <P>#!/bin/sh</P> <P>#</P> <P># This is part 2 of the ppp-on script. It will perform the = connection</P> <P># protocol for the desired connection.</P> <P>#</P> <P>exec chat -v \</P> <P> TIMEOUT 3 \</P> <P> ABORT '\nBUSY\r' \</P> <P> ABORT '\nNO ANSWER\r' \</P> <P> ABORT '\nRINGING\r\n\r\nRINGING\r' \</P> <P> '' \rAT \</P> <P> 'OK-+++\c-OK' ATH0 \</P> <P> TIMEOUT 30 \</P> <P> OK ATDT1234567 \ (the phonenumber of the ISP)</P> <P> CONNECT '' \</P> <P> ogin:--ogin: myusername_at_provider \</P> <P> assword: my_password</P></FONT></FONT></DIV> <DIV><FONT face=3DArial>> pppd /dev/modem 38400 connect = ./dialscript=20 :1.1.1.1<BR>The man page says that with w.x.y.z:a.b.c.d one can set = manually the=20 remote and local IP address.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>How do you configure the individual = steps in the=20 PPP sequence? I thought that it simply would need to be done by the = files config=20 files <FONT size=3D2>/etc/ppp/pap-secrets and /etc/ppp/chap-secrets. Or = are there=20 other files as well that pppd reads from?</FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Could it be that this pppd should = simply continue=20 the sequence, but that it doesn't because of a bug?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>regards,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Michael</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><BR></DIV><!--X-MsgBody-End--><!--X-Follow-Ups--></BODY></HTML> ------=_NextPart_000_001B_01C5A831.CCA55BA0-- --===============0320593322== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Redhat-ppp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/redhat-ppp-list --===============0320593322==--