Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2002 16:31:39 +0100
From:      Patrick Reust <patrick.reust@email.ch>
To:        faq@openbsd.org, FreeBSD-Questions@FreeBSD.Org
Subject:   Modem-Problems (PPP)
Message-ID:  <3C629DDB.31BB3035@email.ch>

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

I'm trying since several days (nights) to setup my PPP connection on a
OpenBSD 2.8 Box.
I've read so many manuals and FAQ's already and tried out a huge amount
of config scripts with no result. There are so many different settings
that could be the problem...
I'm even not sure what my ISP supports but I guess it's PAP (as you can
see in my script later).
I hope, somebody can help me or at least give me a hint where to look
for the problem.

I'm still running the GENERIC kernel and my ppp.config looks quite
simple:


default:
  set log Phase Chat LCP IPCP CCP tun command
  ident user-ppp VERSION (built COMPILATIONDATE)
  set device /dev/cua00
  set speed 115200
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
	    \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
  set timeout 180
  enable dns

[ISP]:
  set phone "[PHONENUMBER]"
  set authname [LOGINNAME]
  set authkey [PASSWORD]
#  set login "TIMEOUT 10 \"\" \"\" gin:--gin: \\U word: \\P col: ppp"
  set timeout 300
  set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255
  add default HISADDR



And that's the logging output:

Sep  9 12:44:54 kopernikus ppp[11709]: Phase: Using interface: tun0 
Sep  9 12:44:55 kopernikus ppp[11709]: Phase: deflink: Created in closed
state 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: ident
user-ppp VERSION (built COMPILATIONDATE) 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: set
device /dev/tty00 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: set speed
115200 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: set dial
ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 	    "" AT OK-AT-OK ATE1Q0 OK
\\dATDI\\T TIMEOUT 40 CONNECT 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: set
timeout 180 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: enable
dns 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Command: default: enable
pap 
Sep  9 12:44:55 kopernikus ppp[11709]: tun0: Phase: PPP Started
(interactive mode). 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: /dev/tty: dial
[ISP] 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: sunrise: set phone
[PHONENUMBER] 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: sunrise: set
authname [LOGINNAME] 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: sunrise: set
authkey ******** 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: sunrise: set
timeout 300 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: sunrise: set
ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Command: sunrise: add
default HISADDR 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Phase: bundle: Establish 
Sep  9 12:45:00 kopernikus ppp[11709]: tun0: Phase: deflink: closed ->
opening 
Sep  9 12:45:01 kopernikus ppp[11709]: tun0: Phase: deflink: Connected! 
Sep  9 12:45:01 kopernikus ppp[11709]: tun0: Phase: deflink: opening ->
dial 
Sep  9 12:45:01 kopernikus ppp[11709]: tun0: Chat: Phone: [PHONENUMBER] 
Sep  9 12:45:01 kopernikus ppp[11709]: tun0: Chat: deflink: Dial attempt
1 of 1 
Sep  9 12:45:01 kopernikus ppp[11709]: tun0: Chat: Send: AT\^M 
Sep  9 12:45:01 kopernikus ppp[11709]: tun0: Chat: Expect(5): OK 
Sep  9 12:45:06 kopernikus ppp[11709]: tun0: Chat: Expect timeout 
Sep  9 12:45:06 kopernikus ppp[11709]: tun0: Chat: Send: AT\^M 
Sep  9 12:45:06 kopernikus ppp[11709]: tun0: Chat: Expect(5): OK 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Chat: Expect timeout 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Warning: Chat script failed 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase: deflink: dial ->
hangup 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase: deflink:
Disconnected! 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase: deflink: Connect
time: 10 secs: 0 octets in, 0 octets out 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase: deflink: : 0 packets
in, 0 packets out 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase:  total 0 bytes/sec,
peak 0 bytes/sec on Sun Sep  9 12:45:01 2001 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase: deflink: hangup ->
closed 
Sep  9 12:45:11 kopernikus ppp[11709]: tun0: Phase: bundle: Dead 
Sep  9 12:45:17 kopernikus ppp[11709]: tun0: Command: /dev/tty: quit 
Sep  9 12:45:17 kopernikus ppp[11709]: tun0: Phase: PPP Terminated
(normal). 



On the modem I can see, that ANSWER and CARRIER never flashes up (only
DTE READY and DATA). I guess that's what the Expect timeout means.

By starting "term" in the ppp mode the task hangs. I can't even
kill it anymore from an other console.

Besides the modem works fine under windows.


Any help would be highly appreciated :-)
kind regards
patrick

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?3C629DDB.31BB3035>