From owner-freebsd-questions  Sun Feb  2 09:17:27 1997
Return-Path: <owner-questions>
Received: (from root@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id JAA25603
          for questions-outgoing; Sun, 2 Feb 1997 09:17:27 -0800 (PST)
Received: from onyx.interactive.net (root@onyx.interactive.net [208.192.224.6])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA25598
          for <questions@freebsd.org>; Sun, 2 Feb 1997 09:17:24 -0800 (PST)
Received: from luddite.org (host019.madison.interactive.net [208.192.224.119])
          by onyx.interactive.net (8.8.5/8.8.4) with ESMTP
	  id MAA16967; Sun, 2 Feb 1997 12:17:13 -0500 (EST)
Received: (from sachs@localhost) by luddite.org (8.8.3/8.7.3) id MAA00261; Sun, 2 Feb 1997 12:20:29 -0500 (EST)
To: Ian Wynne <ianwynne@zeta.org.au>
Cc: questions@freebsd.org
Subject: Re: ppp
References: <199702020417.PAA07743@godzilla.zeta.org.au>
X-Face: 6!-I&o^[[HP+0~O~}d2Zf@Pbof:|>j5^*W$QOR"&)JYcHT.@-"AhAXLg3vioV79Ri3JMp/a
 e3QD@Z$1Ot@'j1/A
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=US-ASCII
From: Jay Sachs <sachs@interactive.net>
Date: 02 Feb 1997 12:20:28 -0500
In-Reply-To: Ian Wynne's message of Sun, 2 Feb 1997 15:17:11 +1100
Message-ID: <87afpnt99f.fsf@luddite.org>
Lines: 62
X-Mailer: Gnus v5.4.9/XEmacs 19.14
Sender: owner-questions@freebsd.org
X-Loop: FreeBSD.org
Precedence: bulk


Can you ping a bare IP address? Try netstat -rn. If netstat -r is
hanging, it's probably on the reverse name lookup. Which makes me
think you haven't set up /etc/resolv.conf properly. Make sure you get
the IP addresses of your ISP's nameservers there.

Also, if you haven't already, disable routed in /etc/sysconfig. That's
important. And, to echo the other responses, do NOT ifconfig tun0 in
/etc/sysconfig (despite what the out-of-date and wrong handbook says).

-jay


Ian Wynne <ianwynne@zeta.org.au> writes:

> Hello People:
> 
> I'm setting up user land ppp on my FreeBSD 2.1.5R machine.
> 
> The ppp connection works fine, when I dial my ISP the ppp dials up
> and logs in nicely, and the ppp changes to PPP ON> showing the ppp
> interface is up.
> 
> The problem I'm having is a routing problem. I don't have a proper ip
> number for my machine, so I've given it the number 10.0.0.2 in my 
> /etc/hosts file.
> 
> The following is a copy of my ppp.conf file, I've called my isp "z",
> z:
>  set debug
>  set phone xxxxxxx
>  set redial 30 4
>  accept pap
>  set login "TIMEOUT 5 ogin:-\\r-ogin: myname word: passwd ts> ppp"
>  set timeout 0
>  set openmode active
>  set ifaddr 0 0
> 
> The set ifaddr 0 0 allows my machine to have it's ip number allocated by 
> the isp machine. I've looked through the ppp.log file and that works
> perfectly also.
> 
> I have the following line in my /etc/sysconfig file;
> ifconfig_tun0="inet 10.0.0.2 203.2.228.19  netmask 0xffffff00"
> 
> The problem occurs after I have made a successful connection, I can't
> ping my isp's machine.
> 
> If I type netstat -r, netstat just hangs, the routing information is 
> being clobbered somewhere. It's my guess that the routing information
> is being clobbered  by the dynamic ip number allocation, however I can't
> think of a way to stop it.
> 
> I've asked my isp to allocate two ip numbers to me permanently, however
> just at the moment he doesn't have the facilities to do that.
> 
> Can somebody please give me some suggestions about what to do, or about
> what I might be doing wrong.
> 
> Best regards,
> 
> Ian Wynne