networks(5) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

networks(5)

networks(5)                      File Formats                      networks(5)



NAME
       networks - network name database

SYNOPSIS
       /etc/inet/networks


       /etc/networks

DESCRIPTION
       The  networks  file is a local source of information regarding the net‐
       works a system may need to know the names of. The networks file can  be
       used  in  conjunction  with,  or  instead  of,  other networks sources,
       including  the  NIS  maps  networks.byname  and  networks.byaddr,   and
       ipNetwork   objects   in   an   LDAP   directory.   Programs   use  the
       getnetbyname(3C) routines to access this information.


       The network file has a single line for each network, with the following
       information:

         official-network-name network-number aliases



       Items  are  separated  by  any number of SPACE or TAB characters. A '#'
       indicates the beginning of a comment. Characters up to the end  of  the
       line are not interpreted by routines which search the file.


       Network numbers may be specified in the conventional dot ('.') notation
       using the inet_network(3C)  routine.  Network  names  may  contain  any
       printable  character  other than a field delimiter, NEWLINE, or comment
       character.

SEE ALSO
       getnetbyaddr(3C), getnetbyname(3C), inet_network(3C), nsswitch.conf(5)

NOTES
       The official SVR4 name of the networks file is /etc/inet/networks.  The
       symbolic link /etc/networks exists for BSD compatibility.


       The  network number in networks database is the host address shifted to
       the right by the number of 0 bits in the address mask. For example, for
       the  address 24.132.47.86 that has a mask of fffffe00, its network num‐
       ber is 803351. This is obtained when the address is shifted right by  9
       bits.  The  address maps to 12.66.23. The trailing 0 bits should not be
       specified. The network number here is different from that described  in
       netmasks(5).   For  this  example,  the  entry  in  netmasks  would  be
       24.132.46.0 fffffe00.



Oracle Solaris 11.4               2 Feb 2021                       networks(5)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3