From owner-freebsd-questions Sat Feb 1 20:52:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA00223 for questions-outgoing; Sat, 1 Feb 1997 20:52:22 -0800 (PST) Received: from yakko.my.domain (man-as9s15.erols.com [207.96.102.15]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA00215 for ; Sat, 1 Feb 1997 20:52:14 -0800 (PST) Received: (from lee@localhost) by yakko.my.domain (8.8.3/8.8.3) id XAA10589; Sat, 1 Feb 1997 23:51:16 -0500 (EST) From: Lee Cremeans Message-Id: <199702020451.XAA10589@yakko.my.domain> Subject: Re: ppp To: ianwynne@zeta.org.au (Ian Wynne) Date: Sat, 1 Feb 1997 23:51:15 -0500 (EST) Cc: freebsd-questions@freebsd.org Reply-To: mcampbel@erols.com In-Reply-To: <199702020417.PAA07743@godzilla.zeta.org.au> from "Ian Wynne" at Feb 2, 97 03:17:11 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > 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. Bad idea. Set your machine as 127.0.0.1 (localhost): 127.0.0.1 myname myname.my.domain (for example) > 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" You shouldn't need this. Ppp configures the tun device all by itself. > 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 You need to put "add 0 0 HISADDR" in your ppp.linkup file. This adds a default route, which is why you can't ping your ISP. Lee C. BTW: I know my hostname is bogus; this is because I'm on dynamic IP too :)