From owner-freebsd-questions Sun Jun 30 2:33:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FF9837B401 for ; Sun, 30 Jun 2002 02:33:24 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A29443E0A for ; Sun, 30 Jun 2002 02:33:23 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.4/8.12.4) with ESMTP id g5U9XMtD039417; Sun, 30 Jun 2002 10:33:22 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.4/8.12.4/Submit) id g5U9XH2o039416; Sun, 30 Jun 2002 10:33:17 +0100 (BST) Date: Sun, 30 Jun 2002 10:33:17 +0100 From: Matthew Seaman To: Andrew Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/neworks Message-ID: <20020630093317.GB39130@happy-idiot-talk.infracaninophi> References: <2555951313.20020630072855@ukrpost.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2555951313.20020630072855@ukrpost.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jun 30, 2002 at 07:28:55AM +0300, Andrew wrote: > What is the use of /etc/networks file? When should I change defaults? /etc/networks does for network names and addresses what /etc/hosts does for hostnames. /etc/networks is pretty much ignored nowadays -- I can't recall having used a machine where it was modified from what the original manufacturer supplied. As far as I can tell, /etc/networks only works for the old A,B,C network classifications --- what nowadays are called /8, /16 or /24 netblocks. Modern usage with CIDR blocks that aren't byte aligned, or anything to do with IPv6 isn't covered. You can enter your own network data into the file if you wish --- the only effect will be cosmetic on the output of commands like `netstat -r'. See the getnetent(3) man page for the programmatic interface. Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message