From owner-freebsd-questions Mon Jul 28 22:24:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA10336 for questions-outgoing; Mon, 28 Jul 1997 22:24:59 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA10330; Mon, 28 Jul 1997 22:24:51 -0700 (PDT) Received: (grog@localhost) by freebie.lemis.com (8.8.6/8.6.12) id OAA01828; Tue, 29 Jul 1997 14:54:45 +0930 (CST) From: grog@FreeBSD.ORG Message-Id: <199707290524.OAA01828@freebie.lemis.com> Subject: Re: ppp In-Reply-To: <33DD6F05.78CF@psu.edu> from Brian Freeman at "Jul 29, 97 00:18:13 am" To: bef126@psu.edu Date: Tue, 29 Jul 1997 14:54:45 +0930 (CST) Cc: questions@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Brian Freeman writes: > I am trying to establish a PPP connection so I can use my netscape > broswer. Using the PPP program that came with my distribution (FreeBSD > 2.2), I establish a connection (I assume the connection is established > because the ppp turns from lower case into upper case ppp -> PPP and I > am assigned an IP address). So far, so good. > I then load netscape. Every time I type in a URL I get the message > "Server doesn't have a DNS entry . . ." so I know it is not > connecting to the internet. This is a misassumption. You know it's not finding the address of the host. There are many reasons for that, few of which would mean you're not "connecting to the Internet". If you're getting the PPP prompt, you can be sure the link is up. The next things to do are: 1. Try to ping the (numeric IP) address of the other end of your link. You should know this address, unless somebody has given you a dynamic IP address. But you can always get it like this: # ifconfig tun0 tun0: flags=8151 mtu 1500 inet 139.130.136.133 --> 139.130.136.129 netmask 0xffffffc0 The address you're looking for is to the right of the --> 2. If you can't ping this address, you should check the routing tables. You should find something like: # netstat -rn Routing tables Destination Gateway Flags Refs Use Netif Expire default 139.130.136.129 UGSc 7 6 tun0 127.0.0.1 127.0.0.1 UH 0 79 lo0 If you don't have a default entry, you can add it with # route add default 139.130.136.129 You should then check your ppp config; in the file /etc/ppp/ppp.linkup you should have # Otherwide, simply add peer as default gateway. # MYADDR: add 0 0 HISADDR 3. If your link is up and you can ping the other end, try something more ambitious. Say, hub.freebsd.org. Stick with the IP address for the moment, 204.216.27.18: # ping 204.216.27.18 PING 204.216.27.18 (204.216.27.18): 56 data bytes 64 bytes from 204.216.27.18: icmp_seq=0 ttl=245 time=500.876 ms 64 bytes from 204.216.27.18: icmp_seq=1 ttl=245 time=441.093 ms 64 bytes from 204.216.27.18: icmp_seq=2 ttl=245 time=530.293 ms ^C --- 204.216.27.18 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 441.093/490.754/530.293/37.112 ms If this doesn't work, check with your ISP. Probably his routing has problems, but possibly there is something wrong further away in the net. If you get this far, you are connected to the Internet. 4. The next step is to get DNS working. Since you don't mention it, I assume you are not running a name server. Get the address of a name server from your ISP. If he won't or can't give it to you (for example, because it's the middle of the night), use the name servers for psu.edu. Write the following in the file /etc/resolv.conf: domain psu.edu nameserver 130.203.1.4 nameserver 128.118.25.3 The two addresses are for the name servers isengard.cse.psu.edu and otc2.psu.edu. Now you can try pinging by name: # ping hub.freebsd.org PING hub.freebsd.org (204.216.27.18): 56 data bytes 64 bytes from 204.216.27.18: icmp_seq=0 ttl=245 time=761.267 ms ^C --- hub.freebsd.org ping statistics --- 2 packets transmitted, 1 packets received, 50% packet loss round-trip min/avg/max/stddev = 761.267/761.267/761.267/0.000 ms 5. If all this works, fire up netscrape again. This time it should work. > Then after about 5 minutes the connection breaks and the error log > says "Too many packets lost". This is funny. It doesn't really tie in with the information above. But ppp will hang up after an idle period anyway, so maybe you're misinterpreting this information. > I know using netscape with Windows that I had to use an internet > socket program "Winsock" and was wondering do I need something like > this for UNIX? No, no, no. That's because Windows isn't an operating system. They copied sockets from BSD, but they didn't do it right. In BSD, sockets are an integral part of the operating system. If you get as far as having the PPP prompt from the ppp program, your software configuration is good enough. Greg