Date: Thu, 19 Dec 2002 15:48:07 +0200 From: Juha Erkkila <erkkila@cc.jyu.fi> To: freebsd-questions@FreeBSD.org Subject: cannot connect to an ISP with ppp Message-ID: <20021219154806.A7875@itu.st.jyu.fi>
index | next in thread | raw e-mail
hello again,
i installed FreeBSD 4.7, and it seems i can't get a ppp connection
to my ISP to work. i didn't have this problem with FreeBSD 4.3,
(and don't have in linux), so i guess i must have done something
differently this time :-/ here's some info on my configuration:
aot# hostname
aot
aot# cat /etc/hosts
127.0.0.1 localhost
aot# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
aot# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
aot# cat /etc/ppp/ppp.conf
#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
#################################################################
default:
#set log Phase Chat LCP IPCP CCP tun command
set log All -debug -timer
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
set device /dev/cuaa1
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 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
#set phone PHONE_NUM
#set authname USERNAME
#set authkey PASSWORD
set phone 2609002
set authname erkkila
set authkey *******!
# authkey censored here, contains `!', shouldn't be relevant?
# (that is, sent as it is, not interpreted?)
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
install:
set speed 115200
set device /dev/cuaa1
set ifaddr 0 0 255.255.255.0 0.0.0.0
add! default HISADDR
set timeout 0
enable dns
set log local phase
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\
dATDT\\T TIMEOUT 40 CONNECT"
set login
set authname erkkila
set authkey *******!
set phone 2609002
aot# cat /etc/ppp/ppp.linkup
MYADDR:
delete ALL
add 0 0 HISADDR
aot# cat /etc/ppp/ppp.secret
aot#
then some logs (from /var/log/ppp.log):
Dec 19 13:58:58 aot ppp[317]: Phase: Using interface: tun0
Dec 19 13:58:58 aot ppp[317]: Phase: deflink: Created in closed state
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set device /dev/cuaa1
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set speed 115200
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: set timeout 180
Dec 19 13:58:58 aot ppp[317]: tun0: Command: default: enable dns
Dec 19 13:58:58 aot ppp[317]: tun0: Phase: PPP Started (interactive mode).
Dec 19 13:59:06 aot ppp[317]: tun0: Command: /dev/tty: dial papchap
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 0x28253be0 = fopen("/etc/ppp/ppp.conf", "r")
Dec 19 13:59:06 aot last message repeated 2 times
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set phone 2609002
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set authname erkkila
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set authkey ********
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
Dec 19 13:59:06 aot ppp[317]: tun0: Command: papchap: add default HISADDR
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 3 = socket(17, 3, 0)
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: -1 = write(3, data, 140)
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set failure:
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set: Cmd = Add
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set: Dst = 0.0.0.0/0
Dec 19 13:59:06 aot ppp[317]: tun0: TCP/IP: rt_Set: Gateway = 10.0.0.2
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: bundle: Establish
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: deflink: closed -> opening
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 0 = uu_lock("cuaa1")
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 2 = open("/dev/cuaa1", 6)
Dec 19 13:59:06 aot ppp[317]: tun0: ID0: 0x28253be0 = fopen("/var/run/cuaa1.if", "w")
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: deflink: Connected!
Dec 19 13:59:06 aot ppp[317]: tun0: Phase: deflink: opening -> dial
Dec 19 13:59:06 aot ppp[317]: tun0: Chat: Phone: 2609002
Dec 19 13:59:06 aot ppp[317]: tun0: Chat: deflink: Dial attempt 1 of 1
Dec 19 13:59:06 aot ppp[317]: tun0: Chat: Send: AT^M
Dec 19 13:59:06 aot ppp[317]: tun0: Physical: write
Dec 19 13:59:06 aot ppp[317]: tun0: Physical: 41 54 0d AT.
Dec 19 13:59:06 aot ppp[317]: tun0: Chat: Expect(5): OK
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Expect timeout
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Send: AT^M
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: write
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: 41 54 0d AT.
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Expect(5): OK
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: read
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: 41 54 0d 0d 0a 4f 4b 0d 0a AT...OK..
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Received: AT^M^M
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Received: OK^M
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Send: ATE1Q0^M
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: write
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: 41 54 45 31 51 30 0d ATE1Q0.
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Expect(5): OK
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: read
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: 41 54 0d 0d 0a 4f 4b 0d 0a AT...OK..
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Received: AT^M^M
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Received: OK^M
Dec 19 13:59:11 aot ppp[317]: tun0: Chat: Send: ATDT2609002^M
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: write
Dec 19 13:59:11 aot ppp[317]: tun0: Physical: 41 54 44 54 32 36 30 39 30 30 32 0d ATDT2609002.
Dec 19 13:59:13 aot ppp[317]: tun0: Chat: Expect(40): CONNECT
Dec 19 13:59:13 aot ppp[317]: tun0: Physical: read
Dec 19 13:59:13 aot ppp[317]: tun0: Physical: 41 54 45 31 51 30 0d 0d 0a 4f 4b 0d 0a ATE1Q0...OK..
Dec 19 13:59:13 aot ppp[317]: tun0: Chat: Received: ATE1Q0^M^M
Dec 19 13:59:13 aot ppp[317]: tun0: Chat: Received: OK^M
Dec 19 13:59:53 aot ppp[317]: tun0: Chat: Expect timeout
Dec 19 13:59:53 aot ppp[317]: tun0: Warning: Chat script failed
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: deflink: dial -> hangup
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: deflink: Disconnected!
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: deflink: Connect time: 47 secs: 0 octets in, 0 octets out
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: deflink: 0 packets in, 0 packets out
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Dec 19 13:59:06 2002
Dec 19 13:59:53 aot ppp[317]: tun0: ID0: 0 = unlink("/var/run/cuaa1.if")
Dec 19 13:59:53 aot ppp[317]: tun0: ID0: 0 = uu_unlock("cuaa1")
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: deflink: hangup -> closed
Dec 19 13:59:53 aot ppp[317]: tun0: ID0: 2 = socket(2, 2, 0)
Dec 19 13:59:53 aot ppp[317]: tun0: ID0: 0 = ioctl(2, 3223349521, 0xbfbff4b0)
Dec 19 13:59:53 aot ppp[317]: tun0: ID0: 0 = ioctl(2, 2149607696, 0xbfbff4b0)
Dec 19 13:59:53 aot ppp[317]: tun0: Phase: bundle: Dead
Dec 19 13:59:56 aot ppp[317]: tun0: Phase: /dev/tty: Client connection closed.
Dec 19 13:59:56 aot ppp[317]: tun0: Phase: PPP Terminated (normal).
Dec 19 13:59:56 aot ppp[317]: tun0: ID0: 2 = socket(2, 2, 0)
Dec 19 13:59:56 aot ppp[317]: tun0: ID0: 0 = ioctl(2, 3223349521, 0xbfbff580)
Dec 19 13:59:56 aot ppp[317]: tun0: ID0: 0 = ioctl(2, 2149607696, 0xbfbff580)
Dec 19 13:59:56 aot ppp[317]: tun0: ID0: 0 = unlink("/var/run/tun0.pid")
my ISP supports PAP, so shouldn't this work? any help is
appreciated
Juha
--
People must not do things for fun. We are not here for fun. There is
no reference to fun in any Act of Parliament.
-- A P Herbert, Uncommon Law
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021219154806.A7875>
