Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 10:33:17 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Andrew <perl@ukrpost.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: /etc/neworks
Message-ID:  <20020630093317.GB39130@happy-idiot-talk.infracaninophi>
In-Reply-To: <2555951313.20020630072855@ukrpost.net>
References:  <2555951313.20020630072855@ukrpost.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020630093317.GB39130>