Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Apr 2001 14:51:36 -0600
From:      Jon Collis <jon@nmt.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   PPP negoatiation, LCP and immediate Disconnected!
Message-ID:  <3ACF7DD8.7AE7B3CA@nmt.edu>

next in thread | raw e-mail | index | archive | help
Hello,


I have recently installed the 4.2-RELEASE version of FreeBSD. My
computer is an Intel P3.

I am trying to get my ppp up an running. If I open a term to /dev/cuaa3,
I am able to dial my provider and connect such that I can browse the
web. The only problem, is that I am having to type in my username and
password at the prompts. So, I have created an entry in the ppp.conf
file for my provider and using the "dial myprovider" command in ppp I
try to connect, but I cannot. Chat works well and it just fails at the
last step where it is actually negotiating the ppp connection. This
seems very odd to me. Is there something about the default setting which
negotiates ppp in a different manner? Looking at the log, it seems as
though it actually connects for, say, less than a minute, but I can
never access to web.

I am being assigned an IP from my provider for what it is worth. Should
I look for that assignment in my chat script? Well, any suggestions
would be much appreciated. Here is the ppp.log information followed by
my ppp.conf file:

Apr  7 12:11:24  ppp[572]: Phase: Using interface: tun0
Apr  7 12:11:24  ppp[572]: Phase: deflink: Created in closed state
Apr  7 12:11:24  ppp[572]: tun0: Command: default: set speed 115200
Apr  7 12:11:24  ppp[572]: tun0: Command: default: set dial ABORT BUSY
ABORT NO\sCARRIER TIMEOUT 5            "" AT OK-AT-OK ATE1Q0 OK \dATDT\T
TIMEOUT 40 CONNECT
Apr  7 12:11:24  ppp[572]: tun0: Command: default: set ifaddr 10.0.0.1/0
10.0.0.2/0 255.255.255.0 0.0.0.0
Apr  7 12:11:24  ppp[572]: tun0: Command: default: set timeout 120
Apr  7 12:11:24  ppp[572]: tun0: Command: default: add default HISADDR
Apr  7 12:11:24  ppp[572]: tun0: Command: default: enable dns
Apr  7 12:11:24  ppp[572]: tun0: Phase: PPP Started (interactive mode).
Apr  7 12:11:27  ppp[572]: tun0: Command: /dev/tty: dial nmt
Apr  7 12:11:27  ppp[572]: tun0: Command: nmt: set phone 8354543
Apr  7 12:11:27  ppp[572]: tun0: Command: nmt: set login ABORT
NO\sCARRIER TIMEOUT 120 name:-\r-name: jon word: wu_wei > ppp
Apr  7 12:11:27  ppp[572]: tun0: Command: nmt: set openmode active 3
Apr  7 12:11:27  ppp[572]: tun0: Phase: bundle: Establish
Apr  7 12:11:27  ppp[572]: tun0: Phase: deflink: closed -> opening
Apr  7 12:11:27  ppp[572]: tun0: Phase: deflink: Connected!
Apr  7 12:11:27  ppp[572]: tun0: Phase: deflink: opening -> dial
Apr  7 12:11:27  ppp[572]: tun0: Chat: Phone: 8354543
Apr  7 12:11:27  ppp[572]: tun0: Chat: deflink: Dial attempt 1 of 1
Apr  7 12:11:27  ppp[572]: tun0: Chat: Send: AT^M
Apr  7 12:11:27  ppp[572]: tun0: Chat: Expect(5): OK
Apr  7 12:11:27  ppp[572]: tun0: Chat: Received: AT^M^M
Apr  7 12:11:27  ppp[572]: tun0: Chat: Received: OK^M
Apr  7 12:11:27  ppp[572]: tun0: Chat: Send: ATE1Q0^M
Apr  7 12:11:27  ppp[572]: tun0: Chat: Expect(5): OK
Apr  7 12:11:27  ppp[572]: tun0: Chat: Received: ATE1Q0^M^M
Apr  7 12:11:27  ppp[572]: tun0: Chat: Received: OK^M
Apr  7 12:11:27  ppp[572]: tun0: Chat: Send: ATDT8354543^M
Apr  7 12:11:29  ppp[572]: tun0: Chat: Expect(40): CONNECT
Apr  7 12:11:56  ppp[572]: tun0: Chat: Received: ATDT8354543^M^M
Apr  7 12:11:56  ppp[572]: tun0: Chat: Received: CONNECT
Apr  7 12:11:56  ppp[572]: tun0: Phase: deflink: dial -> carrier
Apr  7 12:11:57  ppp[572]: tun0: Phase: deflink: /dev/cuaa3: CD detected

Apr  7 12:11:57  ppp[572]: tun0: Phase: deflink: carrier -> login
Apr  7 12:11:57  ppp[572]: tun0: Chat: Expect(120): name:
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:
24000/ARQ/V34/LAPM/V42BIS^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: ^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:    Type the full name
of the computer you wish to use. (RLOGIN now default)^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:
----------------------------------------------------------------------------^M

Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|           NOTE:
for AUTHORIZED MODEM USERS (only)                   |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|
=======================================                   |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|       To login
please use the password from your TCC account.        |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|
*******************************************************        |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|        (use
<CTRL> ^ x to return to the server prompt)               |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:
|*|
|*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*| 835-6740: <=
28.8K-baud, ON-campus only (20 lines total).            |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*| 835-4543: <=
28.8K-baud, OFF-campus only (120 lines total).          |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:
|*|
|*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*| There is a 6-hour
absolute session timeout on these lines.           |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:
|*|
|*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*| For Non-PPP file
transfer issue following commands at server prompt: |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|
--------------------------------------------------------------------
|*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|    TERMINAL
FLOWCONTROL NONE      {abbreviated TER FLOW NONE}        |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|    TERMINAL
FLOWCONTROL HARDWARE  {should be the default; but ...}   |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|    TERMINAL NO
ESCAPE-CHARACTER                                      |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|    (if TELNET is
used then you must issue TERM DOWNLOAD as well)     |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:   |*|    (if using sz
try the flag -kw4096, or -kw 4096 {maybe even 1024}) |*|^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:
----------------------------------------------------------------------------^M

Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: ^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received:         CONNECTION
SERVICE FOR USE BY VALID ACCOUNT HOLDERS ONLY.^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: ^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: ^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: User Access
Verification^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: ^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Received: Username:
Apr  7 12:11:57  ppp[572]: tun0: Chat: Send: xxx^M
Apr  7 12:11:57  ppp[572]: tun0: Chat: Expect(120): word:
Apr  7 12:11:58  ppp[572]: tun0: Chat: Received:  xxx^M
Apr  7 12:11:58  ppp[572]: tun0: Chat: Received: Password:
Apr  7 12:11:58  ppp[572]: tun0: Chat: Send: xxxx^M
Apr  7 12:11:58  ppp[572]: tun0: Chat: Expect(120): >
Apr  7 12:11:58  ppp[572]: tun0: Chat: Received:  ^M
Apr  7 12:11:58  ppp[572]: tun0: Chat: Received: grissom>
Apr  7 12:11:58  ppp[572]: tun0: Chat: Send: ppp^M
Apr  7 12:11:58  ppp[572]: tun0: Phase: deflink: login -> lcp
Apr  7 12:11:58  ppp[572]: tun0: LCP: FSM: Using "deflink" as a
transport
Apr  7 12:11:58  ppp[572]: tun0: LCP: deflink: State change Initial -->
Closed
Apr  7 12:11:58  ppp[572]: tun0: Phase: deflink: Entering STOPPED state
for 3 seconds
Apr  7 12:11:58  ppp[572]: tun0: LCP: deflink: State change Closed -->
Stopped
Apr  7 12:12:01  ppp[572]: tun0: LCP: deflink: LayerStart
Apr  7 12:12:01  ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state =
Stopped
Apr  7 12:12:01  ppp[572]: tun0: LCP:  ACFCOMP[2]
Apr  7 12:12:01  ppp[572]: tun0: LCP:  PROTOCOMP[2]
Apr  7 12:12:01  ppp[572]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr  7 12:12:01  ppp[572]: tun0: LCP:  MRU[4] 1500
Apr  7 12:12:01  ppp[572]: tun0: LCP:  MAGICNUM[6] 0x720110f0
Apr  7 12:12:01  ppp[572]: tun0: LCP: deflink: State change Stopped -->
Req-Sent
Apr  7 12:12:04  ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Apr  7 12:12:04  ppp[572]: tun0: LCP:  ACFCOMP[2]
Apr  7 12:12:04  ppp[572]: tun0: LCP:  PROTOCOMP[2]
Apr  7 12:12:04  ppp[572]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr  7 12:12:04  ppp[572]: tun0: LCP:  MRU[4] 1500
Apr  7 12:12:04  ppp[572]: tun0: LCP:  MAGICNUM[6] 0x720110f0
Apr  7 12:12:07  ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Apr  7 12:12:07  ppp[572]: tun0: LCP:  ACFCOMP[2]
Apr  7 12:12:07  ppp[572]: tun0: LCP:  PROTOCOMP[2]
Apr  7 12:12:07  ppp[572]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr  7 12:12:07  ppp[572]: tun0: LCP:  MRU[4] 1500
Apr  7 12:12:07  ppp[572]: tun0: LCP:  MAGICNUM[6] 0x720110f0
Apr  7 12:12:10  ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Apr  7 12:12:10  ppp[572]: tun0: LCP:  ACFCOMP[2]
Apr  7 12:12:10  ppp[572]: tun0: LCP:  PROTOCOMP[2]
Apr  7 12:12:10  ppp[572]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr  7 12:12:10  ppp[572]: tun0: LCP:  MRU[4] 1500
Apr  7 12:12:10  ppp[572]: tun0: LCP:  MAGICNUM[6] 0x720110f0
Apr  7 12:12:14  ppp[572]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Apr  7 12:12:14  ppp[572]: tun0: LCP:  ACFCOMP[2]
Apr  7 12:12:14  ppp[572]: tun0: LCP:  PROTOCOMP[2]
Apr  7 12:12:14  ppp[572]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr  7 12:12:14  ppp[572]: tun0: LCP:  MRU[4] 1500
Apr  7 12:12:14  ppp[572]: tun0: LCP:  MAGICNUM[6] 0x720110f0
Apr  7 12:12:17  ppp[572]: tun0: LCP: deflink: LayerFinish
Apr  7 12:12:17  ppp[572]: tun0: LCP: deflink: State change Req-Sent -->
Stopped
Apr  7 12:12:17  ppp[572]: tun0: LCP: deflink: State change Stopped -->
Closed
Apr  7 12:12:17  ppp[572]: tun0: LCP: deflink: State change Closed -->
Initial
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: Disconnected!
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: lcp -> logout
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: logout -> hangup
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: Disconnected!
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: Connect time: 50 secs:
3021 octets in, 275 octets out
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: : 140 packets in, 5
packets out
Apr  7 12:12:17  ppp[572]: tun0: Phase:  total 65 bytes/sec, peak 332
bytes/sec on Sat Apr  7 12:12:17 2001
Apr  7 12:12:17  ppp[572]: tun0: Phase: deflink: hangup -> closed
Apr  7 12:12:17  ppp[572]: tun0: Phase: bundle: Dead


Sorry about that huge thing if it offends. I am now going to include my
ppp.conf file. Perhaps there is something that I need to add to it, but
I have tried setting the mode to active or passive to no avail.

default:
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa3

 set log Phase Chat Connect LCP IPCP CCP tun command
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set timeout 120                        # 3 mintue idle timer (the
default)
 add default HISADDR                    # Add a (sticky) default route
 enable dns                             # request DNS info (for
resolv.conf)

myprovider:
 set phone 8354543
 set login "ABORT NO\\sCARRIER TIMEOUT 120 name:-\\r-name: xxx word: xxx
\> ppp"



Well, that's all of that. Thanks for any help that you can send,

Jon Collis


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ACF7DD8.7AE7B3CA>