Subject: Re: pppd problem...
To: None <port-mac68k@NetBSD.ORG>
From: synapse <synapse@gim.net>
List: port-mac68k
Date: 12/01/1996 20:58:57
ok, i have a feeling i'm doing something pretty stupid, so, if you have a
few minutes, read this and help me find my problem:
problem: pppd works, but is not fully properly configured.
kernel: NetBSD 1.2 (GENERIC) #1, running on a Mac IIvx.
i start off by running pppd, and get these messages during the connection
negotiation:
---cut here---
Dec 1 20:32:59 friction pppd[93]: pppd 2.3.0 started by root, uid 0
Dec 1 20:33:32 friction pppd[93]: Connect: ppp0 <--> /dev/tty00
Dec 1 20:33:34 friction pppd[93]: local IP address 199.232.252.127
Dec 1 20:33:34 friction pppd[93]: remote IP address 128.103.21.15
---cut here---
okay, ppp works great now. no problems at all.
to disconnect, people to tell me to kill ppp, so i look it up in the
process table and kill it. "kill -9 <pid-of-pppd>". i manually reset the
modem by shutting it off and turning it back on.
now, i get THIS while attempting to restart pppd:
---cut here---
Dec  1 20:39:49 friction pppd[105]: pppd 2.3.0 started by root, uid 0
Dec  1 20:40:26 friction pppd[105]: Connect: ppp0 <--> /dev/tty00
Dec  1 20:40:27 friction pppd[105]: Couldn't set interface address: Address
alre
ady exists
Dec  1 20:40:27 friction pppd[105]: Couldn't add default route: File exists
Dec  1 20:40:27 friction pppd[105]: Couldn't add default route: File exists
Dec  1 20:40:27 friction pppd[105]: local  IP address 199.232.253.20
Dec  1 20:40:27 friction pppd[105]: remote IP address 128.103.21.15
---cut here---
what are the errors for? whatever they are, i assume they cause pppd not to
work. if i attempt to run a copy of ftp, ircii, or any other program that
would use the modem, the modem send light blinks, but the receive light
does not respond at all. to alleviate this problem, i have to reboot the
machine, and from then on, the problem goes away. (that is, until i kill
pppd and attempt to run it again). notice that the internet provider
dynamically assigns me an address. i have listed some of the files
associated with pppd in order to find a fix for this problem:
/etc/ppp/options:
---cut here---
/dev/tty00
57600
noipdefault
connect '/etc/ppp/chatfile'
modem
---cut here---
output of netstat -in :
---cut here---
Name  Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs  Coll
ae0*  1500  <Link>      2.60.8c.49.71.72         0     0        0     0     0
ppp0  1500  <Link>                              30     1       50     0     0
ppp0  1500  199.232.252 199.232.252.127         30     1       50     0     0
ppp0  1500  199.232.253 199.232.253.20          30     1       50     0     0
ppp1* 1500  <Link>                               0     0        0     0     0
lo0   32768 <Link>                              24     0       24     0     0
lo0   32768 127         127.0.0.1               24     0       24     0     0
sl0*  296   <Link>                               0     0        0     0     0
---cut here---
output of netstat -rn :
---cut here---
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use    Mtu  Interface
default          128.103.21.15      UG          1       20      -  ppp0
127.0.0.1        127.0.0.1          UH          1       24      -  lo0
128.103.21.15    199.232.252.127    UH          1        0      -  ppp0
199.232.252.127  127.0.0.1          UH          0        0      -  lo0

XNS:
Destination      Gateway            Flags     Refs     Use    Mtu  Interface
---cut here---
output of /etc/resolv.conf (you probably don't need this, but while i'm at
it...):
---cut here---
domain ziplink.net
nameserver 199.232.240.3
nameserver 199.232.240.4
---cut here---
can anyone find a problem, or whatever, with my setup? (if i missed
anything, don't hesitate to ask for it...)
by the way, since my IP is dynamically assigned, and the ISP is rather
large, there are 4 modem pools (with the same phone number), and each pool
has a different IP address, so i don't know how i could set *that* up (i
mean, specifying the gateway host somewhere). all four modem pools are
connected to the same router, though (probably obvious, anyway). maybe i
could use the router's IP address for something...?
please help! i'm sure i'm doing something dumb....
thanks a lot!
  - a