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=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff00
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
faith0: flags=8002BROADCAST,MULTICAST mtu 1500
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500
aot# cat /etc/ppp/ppp.conf
#
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [EMAIL PROTECTED]
#
# 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: