Subject: strange ppp dialup problem...
To: None <netbsd-help@netbsd.org>
From: Zach Fine <zach@xdsl014.serv.net>
List: netbsd-help
Date: 09/23/2000 20:21:00
I'm experiencing some really strange networking issues when I try to
dialup to my ISP. I've been able to dial in, authenticate usin gPAP,
and get a ppp connection established, but at that point, my routing
table gets all wacky. For example:

Here's the contents of my /etc/ppp/options file:

tty00 115200 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat-neteze'
defaultroute
user czyz
debug


Once I've connected, the following shows up in /var/log/messages:

---------------------------------------------------------
Sep 23 19:51:01 iopy pppd[370]: Serial connection established.
Sep 23 19:51:02 iopy pppd[370]: Using interface ppp0
Sep 23 19:51:02 iopy pppd[370]: Connect: ppp0 <--> /dev/tty00
Sep 23 19:51:02 iopy pppd[370]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
Sep 23 19:51:05 iopy pppd[370]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
Sep 23 19:51:06 iopy pppd[370]: Remote message: 
Sep 23 19:51:06 iopy pppd[370]: local  IP address 198.172.34.205
Sep 23 19:51:06 iopy pppd[370]: remote IP address 208.201.244.43
---------------------------------------------------------

and at that point, "route -n show" reports the following:

---------------------------------------------------------
Routing tables

Internet:
Destination      Gateway            Flags 
default          208.201.244.43     UG     
127.0.0.1        127.0.0.1          UH     
208.201.244.43   198.172.34.205     UH     
---------------------------------------------------------

The problem is that once the default route has been set, I can no
longer ping my own machine as "localhost" or as "127.0.0.1". Nor can I
ping any other IP address, ping just hangs until I interrupt it.  If I
do a "route delete default", I can then ping localhost, 127.0.0.1, and
the address which shows up in /var/log/messages as "remote IP address"
(208.201.244.43), but my attempts to ping 198.172.34.205 fail with a
"no route to host" error. Unless I'm msitaken, the line "local IP
address 198.172.34.205" in /var/log/messages indicates that this is
the IP address my machine has been assigned by the ppp server. I don't
understand how I could be unable to ping my own IP address.

By executing a "route add 207.207.83.53 208.201.244.43", I've been
able to telnet to my other NetBSD box (at 207.207.83.53) and that's
how I'm sending this email message.  

So does any of this ring a bell to anyone? I don't understand why I
or pppd can't specify a default route when I've made a ppp
connection, yet I can do "route add" commands to connect to specific
IP addresses using the gateway supplied by my ISP -- the same gateway
that should be the default route.  

For what it's worth, the only uncommented line in my /etc/hosts file
is "127.0.0.1	     localhost"

Thanks for any help or information.

-Zach Fine
czyz@serv.net