[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/networks



On Sat, Jan 13, 2001 at 12:35:34AM +1100, Hamish Moffatt wrote:

> On Fri, Jan 12, 2001 at 02:28:45PM +0100, prox wrote:
> > Is this a obsolete file as of unstable dist?
> > Do I configure the networks some place else?
> 
> This file seems to be very close to useless anyway.
> 
> For example, there does not seem to be a netmask associated
> with each entry. I tried to put entries for (eg)
> 192.168.0.0, and 192.168.0.128, which are separate networks
> using the netmask 255.255.255.128 (ie 192.168.0.0/25 etc), but
> since you can't put in the netmask it doesn't work properly.
> 
> Also, there is no manual page (on potato anyway).

/etc/networks can usually be used with /etc/netmasks (BSD) or
/etc/inet/netmasks (SVR4) for arbitrary subnet masks.  Otherwise, it probably
assumes an old classful mask.  glibc's resolver doesn't seem to have support
for a netmasks file.  Item 11 in glibc's PROJECTS file mentions a netmasks
access function:

[11] Write access function for netmasks, bootparams, and automount
     databases for nss_files and nss_db module.
     The functions should be embedded in the nss scheme.  This is not
     hard and not all services must be supported at once.

In these days of VLSM, /etc/networks without /etc/netmasks is pretty useless.

-- 
 - mdz



Reply to: