Re: cannot connect to an ISP with ppp

2002-12-27 Thread Juha Erkkila
On Thu, Dec 19, 2002 at 09:56:40AM -0600, Shane Kinney wrote:
 I'm certainly no expert on ppp, however, it seems that your going to
 want to add a dns entry to the /etc/resolv.conf file.  Talk to your ISP
 and find out what you need to use for a dns server, then add the
 information like this:
 
 nameserver 201.101.101.101
 
 Or whatever they give you for an IP address.  Don't know if that will
 solve all of your problems but it will help eventually :)

well, my ISP does support giving out DNS server addresses if it is
asked to, and i did `enable dns' in /etc/ppp/ppp.conf, so i think
i shouldn't need to put anything to /etc/resolv.conf.  i tried out
putting some nameserver addresses there (asking my ISP), but no, it
didn't work out :-(  i think i should talk to some guys there and
see if they can help me out.  thanks for your help anyway

-- 
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 [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: cannot connect to an ISP with ppp

2002-12-27 Thread Shantanu Mahajan
+++ Juha Erkkila [freebsd] [27-12-02 11:03 +0200]:
| On Thu, Dec 19, 2002 at 09:56:40AM -0600, Shane Kinney wrote:
|  I'm certainly no expert on ppp, however, it seems that your going to
|  want to add a dns entry to the /etc/resolv.conf file.  Talk to your ISP
|  and find out what you need to use for a dns server, then add the
|  information like this:
|  
|  nameserver 201.101.101.101
|  
|  Or whatever they give you for an IP address.  Don't know if that will
|  solve all of your problems but it will help eventually :)
| 
| well, my ISP does support giving out DNS server addresses if it is
| asked to, and i did `enable dns' in /etc/ppp/ppp.conf, so i think
| i shouldn't need to put anything to /etc/resolv.conf.  i tried out
| putting some nameserver addresses there (asking my ISP), but no, it
| didn't work out :-(  i think i should talk to some guys there and
| see if they can help me out.  thanks for your help anyway
| 
why not run named, as a caching local server? Only
few steps to turn it on.

Regards,
Shantanu

-- 
Everyone is a genius.  It's just that
some people are too stupid to realize it. 




msg13423/pgp0.pgp
Description: PGP signature


cannot connect to an ISP with ppp

2002-12-19 Thread Juha Erkkila
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: