Solved

LCP-timeout sending Config-Request (strange characters)

Posted on 2000-04-06
4
1,181 Views
Last Modified: 2013-11-18
Linux 6.2 dials into my Linux 6.2 PPP server just fine and gets an IP.  I can ping both ways. I can establish an FTP session just fine. But when I try and establish a Telnet session I get 1 of 2 scenarios:
A. If I use a username/pwd that is setup as a PPP account using the ppp-login shell listed below I get the 'text of the day' but thats it. I am not returned to the prompt but I am also not dropped from the system. I just dont get to do anything.  Early on I was able to navigate the filesystem but I must have changed something!
B. If I same username/pwd but change the shell script to Linux's default (usr/lib/linuxconf/lib/ppplogin) I get strange characters posted across my screen for about 60 seconds and then I am dropped.  The message file shows:
------------------
pppd 2.3.10 started by burke, uid 509
Using interface ppp1
Connect: ppp1 <--> /dev/pts/1
LCP: Timeout sending Config-Requests
Connection terminated
------------------

I suspect the strange characters are the Config-Requests.
What I want an answer to is why in scenario 1 do I not get returned to a prompt so I can navigate the filesystem? Below are my ppp files:

PPP-LOGIN FILE ON LINUX PPP SERVER:

RMTIP="10.115.16.5"
LOCIP="10.115.16.2"
mesg n
stty -echo
exec /usr/sbin/pppd -detach silent modem crtscts $LOCIP:$RMTIP

PPP-ON FILE ON LINUX DIALING STATION:

TELEPHONE=555.1212
ACCOUNT=burke
PASSWORD=rosebud
LOCAL_IP=0.0.0.0             
REMOTE_IP=0.0.0.0
NETMASK=255.0.0.0       
export      TELEPHONE ACCOUNT      PASSWORD

DIALER_SCRIPT=/usr/sbin/ppp-on-dialer

exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 38400 \
      asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
      noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT

PPP-ON-DIALER ON LINUX DIALING STATION IS USING THE DEFAULT FILE AVAILABLE FROM LINUX.

Please let me know if you need more info! Thanks
0
Comment
Question by:dbusher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:jyu_88
ID: 2695161
I'd like to see you chat script.
those garbage char is more like a mis-commuicatin between PPP peers.
Some ISP puts directly into PPP mode (r.e., directly into PAP or CHAP authentication), some ISP ask you to authenticate yourself with
regular login/password prompt then may or may not ask you to type 'ppp' to start PPP negotiation.
Some will be smart, it will wait PAP before it timeout, then give you a console login to work with.
So, it all comes to whenwhotalkingwhat.
One type of LCP timeout error comes from your pppd config is asking
the remote PPP server to authenticate itself to you: which will
not happen, of course.
To find out, what's going on,
I'd add 'debug', 'kdebug 3', 'noauth' as my PPPD option, and turn on verbose mode for chat by 'chat -v'
0
 
LVL 4

Accepted Solution

by:
kiffney earned 125 total points
ID: 2704038
If you are first establishing a PPP link, then trying to telnet to the dialin server over that link, you would just use a regular user name and password to establish the telnet session.  root won't work; just create a regular user 'joe' and password and use that.  Your problem is that the ppp-login stuff is ONLY for establishing the ppp link and cannot be used for anything else.  That's what's causing your dropped connection.  Don't use any ppp user name, just a regular user name and password that already exists on the dialin server.
0
 
LVL 2

Author Comment

by:dbusher
ID: 2704375
That works fine. I set up a regular user called TUSER.  I use this login for my Telnet sessions.  I have to say that it would be nicer if I could just use the same login name and pword for both my ppp connection and telnet connection.  But this will do for now.
0
 
LVL 4

Expert Comment

by:kiffney
ID: 2704563
That really isn't possible. The whole point of the ppp-login user is to create a ppp session - that's why it invokes ppp.  If you try to use it for both purposes it will work for neither.  There are other ways to set up a ppp-session than by using that ppp-user - for example, mgetty will do it without such a ppp-login setup.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question