2001-09-11 05:01:56 +04:00
|
|
|
.\" $NetBSD: ethers.5,v 1.9 2001/09/11 01:01:57 wiz Exp $
|
1993-12-16 18:57:28 +03:00
|
|
|
.\"
|
|
|
|
.\" Written by Roland McGrath <roland@frob.com>. Public domain.
|
|
|
|
.\"
|
2000-11-07 10:17:13 +03:00
|
|
|
.Dd November 7, 2000
|
1993-12-16 18:57:28 +03:00
|
|
|
.Dt ETHERS 5
|
1999-03-17 23:19:44 +03:00
|
|
|
.Os
|
1993-12-16 18:57:28 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ethers
|
|
|
|
.Nd Ethernet host name data base
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
1998-04-29 15:33:55 +04:00
|
|
|
.Nm
|
|
|
|
file maps Ethernet MAC addresses to host names.
|
|
|
|
Lines consist of an address and a host name, separated by any number
|
|
|
|
of blanks and/or tab characters.
|
2000-11-17 13:14:16 +03:00
|
|
|
A
|
|
|
|
.Sq \&#
|
|
|
|
character indicates the beginning of a comment;
|
1998-04-29 15:33:55 +04:00
|
|
|
characters up to the end of
|
1993-12-16 18:57:28 +03:00
|
|
|
the line are not interpreted by routines which search the file.
|
|
|
|
.Pp
|
2000-11-07 10:17:13 +03:00
|
|
|
Each line in
|
|
|
|
.Nm
|
|
|
|
has the format:
|
|
|
|
.Dl ethernet-MAC-address hostname-or-IP
|
|
|
|
.Pp
|
1998-04-29 15:33:55 +04:00
|
|
|
Ethernet MAC addresses are expressed as six hexadecimal numbers separated
|
|
|
|
by colons, e.g. "08:00:20:00:5a:bc".
|
2001-06-19 16:34:26 +04:00
|
|
|
The functions described in
|
1993-12-16 18:57:28 +03:00
|
|
|
.Xr ethers 3
|
|
|
|
and
|
|
|
|
.Xr ether_aton 3
|
|
|
|
can read and produce this format.
|
2000-11-07 10:17:13 +03:00
|
|
|
.Pp
|
2001-06-19 16:34:26 +04:00
|
|
|
The traditional use of
|
2000-11-07 10:17:13 +03:00
|
|
|
.Nm
|
|
|
|
involved using hostnames for the second argument.
|
|
|
|
This may not be suitable for machines that don't have a common MAC
|
|
|
|
address for all interfaces (i.e., just about every non
|
|
|
|
.Tn Sun
|
|
|
|
machine).
|
|
|
|
There should be no problem in using an IP address as the second field
|
|
|
|
if you wish to differentiate between different interfaces on a system.
|
1993-12-16 18:57:28 +03:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/ethers -compact
|
|
|
|
.It Pa /etc/ethers
|
|
|
|
The
|
1998-04-29 15:33:55 +04:00
|
|
|
.Nm
|
1993-12-16 18:57:28 +03:00
|
|
|
file resides in
|
|
|
|
.Pa /etc .
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ethers 3
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm ethers
|
1998-04-29 15:33:55 +04:00
|
|
|
file format was adopted from
|
|
|
|
.Tn SunOS
|
|
|
|
and appeared in
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx 1.0 .
|
2001-09-11 05:01:56 +04:00
|
|
|
.Sh BUGS
|
|
|
|
A name server should be used instead of a static file.
|