ethers(5) File Formats Manual ethers(5)Name
ethers - database that maps Ethernet addresses to hostnames
Description
The file is used in conjunction with the reverse address resolution protocol daemon, to map Ethernet addresses to hostnames. It contains
information about the known (48-bit) Ethernet addresses of hosts on the Internet.
For each host on an Ethernet, a single line should be present in the file with the following information:
Ethernet-address official-host-name
Items are separated by one or more spaces or tabs. A number sign (#) indicates the beginning of a comment that extends to the end of line.
The standard form for Ethernet addresses is:
x:x:x:x:x:x
The x is a hexadecimal number between 0 and ff, representing 1 byte. The address bytes are always in network order.
Hostnames can contain any printable character other than a space, tab, newline, or number sign (#).
Hostnames in the file should correspond to the hostnames in the file or to those provided by the name service.
Examples
The following is a sample file: 08:00:20:01:e5:1c host1 # Comments go here 08:00:20:01:d0:4c host2 # Comments go
here 08:00:20:01:e0:1d host3 # Comments go here 08:00:20:00:c2:4e host4 # Comments go here
See Alsoethers(3n), hosts(5), rarpd(8c)
Introduction to Networking and Distributed System Services
ethers(5)
Check Out this Related Man Page
ETHERS(5) BSD File Formats Manual ETHERS(5)NAME
ethers -- Ethernet host name data base
DESCRIPTION
The ethers 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. A '#' character indicates the beginning of a comment; characters up to the end of the line are not interpreted by
routines which search the file.
Each line in ethers has the format:
ethernet-MAC-address hostname-or-IP
Ethernet MAC addresses are expressed as six hexadecimal numbers separated by colons, e.g. "08:00:20:00:5a:bc". The functions described in
ethers(3) and ether_aton(3) can read and produce this format.
The traditional use of ethers involved using hostnames for the second argument. This may not be suitable for machines that don't have a com-
mon MAC address for all interfaces (i.e., just about every non 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.
FILES
/etc/ethers The ethers file resides in /etc.
SEE ALSO ethers(3)HISTORY
The ethers file format was adopted from SunOS and appeared in NetBSD 1.0.
BUGS
A name server should be used instead of a static file.
BSD November 7, 2000 BSD
We are trying to Establish Network using Linux.Now we are facing the problem in configring Ethernet.In out network we are giving eth0 in server and activating it at the boot time,so it is activating as it is but when we define the Ethernet of node on server and allowing it to activate at boot time... (5 Replies)
Hi...
i am trying to ping my servers .The hostnames are present in a file .They are separated by spaces in the file .
i am doing the following :
a=1
for name in $(cat host2 |cut -d" " -f$a)
do
echo Pinging server $name
ping -c5 $name
a=$a+1
done
It is... (3 Replies)
I have a Quad Ethernet card in a 220R. 2 ports activated. Each has its own hostname file and both hostnames are in the hosts file. I want both ports to have the same IP address so we can use the 2nd port in case we lose communication on the port. On bootup, the box gives me:
SIOCSLIFFLAGS:... (5 Replies)
I run - telnet adl001 (where adl001 is a box name) and it works Ok
/etc/hosts file does not have resolution of the ip address for this name
where it can be found ?
Thanks (5 Replies)
Hello all,
I would like a bit of help with a problem I am having. I have the following example file:
$ cat test_hosts
10.10.2.3 host1
10.10.2.4 host2
10.10.2.130 host3
10.10.2.5 host4
10.10.2.230 host5
10.10.2.22 host6
I need to match all IP addresses in the 10.10.2.1-10.10.2.22... (5 Replies)
Hi,
I am little confused about the virtual Ethernet configuration on VIO and Client Partitions. There is alot of info on the internet but it gets more confusing....
If I have LHEA, it is very simple. Just assign LHEA (logical host ethernet adapter) to client partition -> run smitty tcpip and... (10 Replies)
Hi All,
In Ultra 10 at time system is not displaying value for Ethernet address and Host ID.
Also, when i am trying to change the value of environment variables i am getting below message and value is not changing
Thanks (4 Replies)
Hi
I have a file containing hostnames like this
(host=myhost.domain.com) or
(host=myhost)
i need to extarct the unique hostnames without the domain names from that file.
so my output should be myhost (without domain names)
But my regex skills are rusty
i tried grep "host"... (4 Replies)
I have a tricky problem, and I'm quite the scripting newb.
I have Cisco ACLs that have IP addresses in them. I'd like to convert the IP's to hostnames for easier analysis. A sample ACL input file would be (I've obfuscated the IPs):
access-list acl-secure-out line 1 extended permit icmp any... (3 Replies)
Hi,
I have installed Oracle Enterprise Linux 5 in my PC. After the installation the Ethernet Card is not got detected.
But I could able to get the details using the command lspci -a:
01:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0).
But I could... (4 Replies)
Hi All,
I woul like to know with out opening a file in unix ,how we can find out what is the delemeter in that file...
Thanks..
edit by bakunin: changed thread title to "delimiter" so it can be found. (4 Replies)
I have the following part of a makefile and want to simplify it
using rules rather than having to code the same two blocks
when I need ti build another program.
An having difficulty doing it
all: 1dvel2 1dvel 2dvel
... (8 Replies)
I have one .xml file. which contains the following line.
<ParamString StringId="PortAddress" StringValue="172.27.166.170" />
<ParamString StringId="PortAddress" StringValue="172.27.166.171" />
<ParamString StringId="PortAddress" StringValue="172.27.166.202" />
<ParamString... (9 Replies)
Hello,
I am trying to develop a script to check for valid hostnames. Below are the prerequisites for a valid hostname which I got from wiki :
Hostnames are composed of series of labels concatenated with dots, as are all domain names. For example, "en.wikipedia.org" is a hostname. Each label... (8 Replies)
I really need some help here. I am trying to figure out a network issue on an AIX 5.3 machine. First time on an AIX. Box was working fine and then out of nowhere lost network connectivity. Checked ethernet, switch ports etc, no issue there. ifconfig -a show en0, en1 . tried using smit tcpip which... (7 Replies)