|
|
||
|
||
|
|
| Red Hat Documentation |
5.9. Other miscellaneous network related configuration files.There are a number of miscellaneous files relating to network configuration under linux that you might be interested in. You may never have to modify these files, but it is worth describing them so you know what they contain and what they are for. 5.9.1. /etc/protocolsThe /etc/protocols file is a database that maps protocol id numbers against protocol names. This is used by programmers to allow them to specify protocols by name in their programs and also by some programs such as tcpdump to allow them to display names instead of numbers in their output. The general syntax of the file is:
The /etc/protocols file supplied with the Debian distribution is as follows:
5.9.2. /etc/networksThe /etc/networks file has a similar function to that of the /etc/hosts file. It provides a simple database of network names against network addresses. Its format differs in that there may be only two fields per line and that the fields are coded as:
An example might look like:
When you use commands like the route command, if a destination is a network and that network has an entry in the /etc/networks file then the route command will display that network name instead of its address. | |||||||||||
|
|