From owner-freebsd-questions Mon Jul 17 07:16:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA01682 for questions-outgoing; Mon, 17 Jul 1995 07:16:01 -0700 Received: from emory.mathcs.emory.edu (emory.mathcs.emory.edu [128.140.2.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA01676 for ; Mon, 17 Jul 1995 07:16:00 -0700 Received: from bagend.UUCP by emory.mathcs.emory.edu (5.65/Emory_mathcs.4.0.14) via UUCP id AA16993 ; Mon, 17 Jul 95 10:15:27 -0400 Received: by bagend.atl.ga.us (Smail3.1.29.1 #1) id m0sXqv8-0004qlC; Mon, 17 Jul 95 10:13 EDT Message-Id: From: jan@bagend.atl.ga.us (Jan Isley) Subject: Re: basic no network setup question To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Mon, 17 Jul 1995 10:13:17 -0400 (EDT) Cc: freebsd-questions@freebsd.org (FreeBSD Questions) In-Reply-To: <199507170615.PAA02563@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Jul 17, 95 03:45:37 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 3245 Sender: questions-owner@freebsd.org Precedence: bulk Thanks for you help, Michael. I know this is a simple RTFM question for the network enabled. I am network challenged. Once I figure this out I promise to answer the next 25 similar questions in the newsgroup. :) I need to get a networking 101 book. Which one is in vogue right now? The man pages are like all unix man pages, they tell you what you need to know if you already know what to look for. That was the basis of my question, I did not know what a "normal" startup was supposed to look like. Michael Smith wrote: > Ok; can we have a look at /etc/hosts, /etc/host.conf, /etc/resolv.conf > please? What does the 'interfaces' line in /etc/sysconfig look like, > and the lines immediately following it? > > It looks like you don't have a default route. I have no /etc/resolv.conf, nor a man page for it. I installed the etc source distribution and there was not one there either. I thought that I knew enough about networking that if I were uucp only I should comment bind out of host.conf. I know, assumptions get me in trouble. # $Id: host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp $ # Default is to use the nameserver first # bind # If that doesn't work, then try the /etc/hosts file hosts # If you have YP/NIS configured, uncomment the next line # nis # $Id: sysconfig,v 1.14 1995/05/17 04:46:57 rgrimes Exp $ ... hostname=bagend.atl.ga.us ... network_interfaces="lo0" ifconfig_lo0="inet localhost" # # Set to the list of route add lines for this host. You must have a # route_${static_routes} line for each static route listed here. # static_routes="multicast loopback" route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}" route_loopback="${hostname} localhost" Ah, hosts. That is confusing. The manpage is not illuminating. The only non commented line in hosts is the 127.0.0.1 line. "localhost" is every where in /etc. At first I thought I should do: 127.0.0.1 bagend bagend.atl.ga.us that gave a whole screen full of error messages, as does leaving it: 127.0.0.1 localhost localhost.my.domain I tried this and got obvious error messages: 127.0.0.1 localhost bagend.atl.ga.us What I posted was a result of this: 127.0.0.1 localhost Last night I tried this again: 127.0.0.1 localhost bagend.atl.ga.us and the boot messages, to me, looked more normal: lo0: flags=8009 mtu 16384 inet 127.0.0.1 netmask 0xff000000 add net 224.0.0.0: gateway bagend.atl.ga.us: File exists add host bagend.atl.ga.us: gateway localhost: File exists starting routing daemons: routed. If that is right, the example is ... not good. Actually the example "127.0.0.1 localhost localhost.my.domain" is not good anyway. If it should be editited something other than "localhost" would help. Or, should 127.0.0.1 be something else altogether and should I then edit the imaginary network? # Imaginary network. #10.0.0.2 myname.my.domain myname #10.0.0.3 myfriend.my.domain myfriend What "exactly" should be in /etc/hosts for a standalone system? I appreciate your patience, really. -- Jan Isley Heroes have the shelf life of cottage cheese, jan@bagend.atl.ga.us and public memory is shorter than Dudley Moore. -- Rheta Grimsley Johnson