1*86d7f5d3SJohn Marino.\" Copyright (c) 1995 2*86d7f5d3SJohn Marino.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 3*86d7f5d3SJohn Marino.\" 4*86d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without 5*86d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions 6*86d7f5d3SJohn Marino.\" are met: 7*86d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright 8*86d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer. 9*86d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright 10*86d7f5d3SJohn Marino.\" notice, this list of conditions and the following disclaimer in the 11*86d7f5d3SJohn Marino.\" documentation and/or other materials provided with the distribution. 12*86d7f5d3SJohn Marino.\" 3. All advertising materials mentioning features or use of this software 13*86d7f5d3SJohn Marino.\" must display the following acknowledgement: 14*86d7f5d3SJohn Marino.\" This product includes software developed by Bill Paul. 15*86d7f5d3SJohn Marino.\" 4. Neither the name of the author nor the names of any co-contributors 16*86d7f5d3SJohn Marino.\" may be used to endorse or promote products derived from this software 17*86d7f5d3SJohn Marino.\" without specific prior written permission. 18*86d7f5d3SJohn Marino.\" 19*86d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 20*86d7f5d3SJohn Marino.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*86d7f5d3SJohn Marino.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*86d7f5d3SJohn Marino.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23*86d7f5d3SJohn Marino.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24*86d7f5d3SJohn Marino.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25*86d7f5d3SJohn Marino.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26*86d7f5d3SJohn Marino.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27*86d7f5d3SJohn Marino.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28*86d7f5d3SJohn Marino.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29*86d7f5d3SJohn Marino.\" SUCH DAMAGE. 30*86d7f5d3SJohn Marino.\" 31*86d7f5d3SJohn Marino.\" $FreeBSD: src/share/man/man5/ethers.5,v 1.8.2.4 2002/02/01 15:51:18 ru Exp $ 32*86d7f5d3SJohn Marino.\" $DragonFly: src/share/man/man5/ethers.5,v 1.3 2006/04/17 18:01:37 swildner Exp $ 33*86d7f5d3SJohn Marino.\" 34*86d7f5d3SJohn Marino.Dd April 12, 1995 35*86d7f5d3SJohn Marino.Dt ETHERS 5 36*86d7f5d3SJohn Marino.Os 37*86d7f5d3SJohn Marino.Sh NAME 38*86d7f5d3SJohn Marino.Nm ethers 39*86d7f5d3SJohn Marino.Nd ethernet address database 40*86d7f5d3SJohn Marino.Sh DESCRIPTION 41*86d7f5d3SJohn MarinoThe 42*86d7f5d3SJohn Marino.Nm 43*86d7f5d3SJohn Marinodatabase contains information regarding known 48-bit ethernet addresses 44*86d7f5d3SJohn Marinoof hosts on an Internetwork. 45*86d7f5d3SJohn MarinoThe data is stored in a file called 46*86d7f5d3SJohn Marino.Pa /etc/ethers 47*86d7f5d3SJohn Marinoin the following format: 48*86d7f5d3SJohn Marino.Bd -unfilled -offset indent 49*86d7f5d3SJohn Marino.Pa ethernet-address fully-qualified-host-name 50*86d7f5d3SJohn Marino.Ed 51*86d7f5d3SJohn Marino.Pp 52*86d7f5d3SJohn MarinoItems are separated by any number of blanks and/or 53*86d7f5d3SJohn Marinotab characters. 54*86d7f5d3SJohn MarinoA ``#'' at the start of a line indicates the 55*86d7f5d3SJohn Marinobeginning of a comment that extends to the end of the line. 56*86d7f5d3SJohn MarinoA ``+'' at 57*86d7f5d3SJohn Marinothe start of a line will cause the 58*86d7f5d3SJohn Marino.Xr ethers 3 59*86d7f5d3SJohn Marinolibrary functions to use data stored in the 60*86d7f5d3SJohn Marino.Xr NIS 8 61*86d7f5d3SJohn Marino.Pa ethers.byname 62*86d7f5d3SJohn Marinoand 63*86d7f5d3SJohn Marino.Pa ethers.byaddr 64*86d7f5d3SJohn Marinomaps in addition to the data in the 65*86d7f5d3SJohn Marino.Pa /etc/ethers 66*86d7f5d3SJohn Marinofile. 67*86d7f5d3SJohn Marino.Pp 68*86d7f5d3SJohn MarinoAn ethernet address is expressed in 69*86d7f5d3SJohn Marino.Tn ASCII 70*86d7f5d3SJohn Marinoform as "x:x:x:x:x:x" where 71*86d7f5d3SJohn Marino.Ar x 72*86d7f5d3SJohn Marinois a hexadecimal value between 0x00 and 0xFF. 73*86d7f5d3SJohn MarinoThe address values 74*86d7f5d3SJohn Marinoshould be in network order. 75*86d7f5d3SJohn MarinoHostnames specified in the 76*86d7f5d3SJohn Marino.Pa /etc/ethers 77*86d7f5d3SJohn Marinodatabase should correspond to entries in the 78*86d7f5d3SJohn Marino.Xr hosts 5 79*86d7f5d3SJohn Marinofile. 80*86d7f5d3SJohn Marino.Pp 81*86d7f5d3SJohn MarinoThe 82*86d7f5d3SJohn Marino.Fn ether_line 83*86d7f5d3SJohn Marinofunction in the standard C library can be used to break individual 84*86d7f5d3SJohn Marinolines in the 85*86d7f5d3SJohn Marino.Pa /etc/ethers 86*86d7f5d3SJohn Marinodatabase into their individual components: a binary Ethernet address 87*86d7f5d3SJohn Marinostored as an 88*86d7f5d3SJohn Marino.Pa ether_addr 89*86d7f5d3SJohn Marinostructure, and a hostname stored as a character string. 90*86d7f5d3SJohn Marino.Sh FILES 91*86d7f5d3SJohn Marino.Bl -tag -width /etc/services -compact 92*86d7f5d3SJohn Marino.It Pa /etc/ethers 93*86d7f5d3SJohn MarinoThe 94*86d7f5d3SJohn Marino.Nm 95*86d7f5d3SJohn Marinofile resides in 96*86d7f5d3SJohn Marino.Pa /etc . 97*86d7f5d3SJohn Marino.El 98*86d7f5d3SJohn Marino.Sh SEE ALSO 99*86d7f5d3SJohn Marino.Xr ethers 3 , 100*86d7f5d3SJohn Marino.Xr yp 8 101*86d7f5d3SJohn Marino.Sh HISTORY 102*86d7f5d3SJohn MarinoThe 103*86d7f5d3SJohn Marino.Nm 104*86d7f5d3SJohn Marinoformat is based on the format used in SunOS 4.1.x. 105