From owner-freebsd-questions Mon May 8 10:42:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.panix.com (mail1.panix.com [166.84.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 7045937BB53 for ; Mon, 8 May 2000 10:42:38 -0700 (PDT) (envelope-from tomg@mailhost.nrnet.org) Received: from mailhost.nrnet.org (mailhost.nrnet.org [166.84.192.39]) by mail1.panix.com (Postfix) with ESMTP id DBF4530EF1; Mon, 8 May 2000 13:42:27 -0400 (EDT) Received: from localhost (tomg@localhost) by mailhost.nrnet.org (8.8.7/8.8.4) with SMTP id NAA00681; Mon, 8 May 2000 13:44:11 -0400 Date: Mon, 8 May 2000 13:44:11 -0400 (EDT) From: Thomas Good Reply-To: Thomas Good To: Ian J Greely Cc: FBSD Questions Subject: Re: PPP succeeds...DNS fails In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 7 May 2000, Ian J Greely wrote: > Tom, > > Use netstat -r to look at the currently configured routes. Hello Ian, Right. No matter what I hack into /etc/ppp/ppp.conf my nameservers do not appear in output from netstat unless I run it manually. So there are acouple of items befuddling me. My /var/log/ppp.log shows that the ISP *is* passing ns1/ns2 to the Berkeley box...when I run route manually it tells me: add net [ns] gateway [IP]: file exists. And so I rerun netstat and voila. But telnet still fails. Here is my /etc/ppp/ppp.conf ---> set ifaddr [ my static IP ] [ gw IP] 255.255.255.0 0.0.0.0 add default [ ns1 IP ] [ gw IP ] add [ ns2 IP ] [ gw IP ] Point 1: The add seems to fail but the ISP passes the nameservers. Point 2: When I telnet I get the IP of the target in the 'Trying XXX.XXX.XX.XX...' message but eventually 'No route to host' Now, I may be a tad dense but could this process be a bit counter intuitive? Or could it be that the bsd box is trying to connect to the target via my network card (for the intranet)? That is my theory, anywho. If so, I need to force the correct route (in *theory* I've supplied this info with the netmask as the NIC uses a diff Nm). Any fixes greatly appreciated (and thanks much for your help so far!) Cheers, Tom > You should be looking to add a route to 0.0.0.0 netmask 0.0.0.0 with a > metric lower than any of the routes for your local hosts/network. If > you will be using this ppp connection to do the lions share of your > internet communications. ------- North Richmond Community Mental Health Center ------- Thomas Good MIS Coordinator Vital Signs: tomg@ { admin | q8 } .nrnet.org Phone: 718-354-5528 Fax: 718-354-5056 /* Member: Computer Professionals For Social Responsibility */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message