ETHERS(5) File formats ETHERS(5)NAME
ethers - Ethernet address to IP number database
DESCRIPTION
/etc/ethers contains 48 bit Ethernet addresses and their corresponding IP numbers, one line for each IP number:
Ethernet-address IP-number
The two items are separated by any number of SPACE and/or TAB characters. A # at the beginning of a line starts a comment which extends to
the end of the line. The Ethernet-address is written as x:x:x:x:x:x, where x is a hexadecimal number between 0 and ff which represents one
byte of the address, which is in network byte order (big-endian). The IP-number may be a hostname which can be resolved by DNS or a dot
separated number.
EXAMPLES
08:00:20:00:61:CA pal
FILES
/etc/ethers
SEE ALSO rarp(8)
May 15th, 2005 ETHERS(5)
Check Out this Related Man Page
ETHERS(3) BSD Library Functions Manual ETHERS(3)NAME
ether_ntoa, ether_aton, ether_ntohost, ether_hostton, ether_line, -- get ethers entry
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/if_ether.h>
char *
ether_ntoa(const struct ether_addr *e);
struct ether_addr *
ether_aton(const char *s);
int
ether_ntohost(char *hostname, const struct ether_addr *e);
int
ether_hostton(const char *hostname, struct ether_addr *e);
int
ether_line(const char *line, struct ether_addr *e, char *hostname);
DESCRIPTION
Ethernet addresses are represented by the following structure:
struct ether_addr {
u_char ether_addr_octet[6];
};
The ether_ntoa() function converts this structure into an ASCII string of the form ``xx:xx:xx:xx:xx:xx'', consisting of 6 hexadecimal numbers
separated by colons. It returns a pointer to a static buffer that is reused for each call. The ether_aton() converts an ASCII string of the
same form and to a structure containing the 6 octets of the address. It returns a pointer to a static structure that is reused for each
call.
The ether_ntohost() and ether_hostton() functions interrogate the data base mapping host names to Ethernet addresses, /etc/ethers. The
ether_ntohost() function looks up the given Ethernet address and writes the associated host name into the character buffer passed. The
ether_hostton() function looks up the given host name and writes the associated Ethernet address into the structure passed. Both functions
return zero if they find the requested host name or address, and -1 if not. Each call reads /etc/ethers from the beginning; if a + appears
alone on a line in the file, then ether_hostton() will consult the ethers.byname YP map, and ether_ntohost() will consult the ethers.byaddr
YP map.
The ether_line() function parses a line from the /etc/ethers file and fills in the passed ``struct ether_addr'' and character buffer with the
Ethernet address and host name on the line. It returns zero if the line was successfully parsed and -1 if not.
The hostname buffer for ether_line() and ether_ntohost() should be at least MAXHOSTNAMELEN + 1 characters long, to prevent a buffer overflow
during parsing.
FILES
/etc/ethers
SEE ALSO ethers(5)HISTORY
The ether_ntoa(), ether_aton(), ether_ntohost(), ether_hostton(), and ether_line() functions were adopted from SunOS and appeared in
NetBSD 1.0.
BUGS
The data space used by these functions is static; if future use requires the data, it should be copied before any subsequent calls to these
functions overwrite it.
BSD November 2, 1997 BSD
We are looking at using Tivoli Directory Server (LDAP) or Active Directory 2003 for authentication. I wanted to get some feedback from the community. Our goal is to do it the simplest, easiest, and cheapest way that allows for centralized user authentication. We are mainly an AIX environment with... (3 Replies)
**this was posted in another forum I suspect wrong one moved here **:confused:
Hello all. Let me qualify my question by saying that I am struggling with how to ask the question I am semi green but have no issue reading up if pointed in the right direction. Please be gentle!
A RHEL server 6.2.... (4 Replies)
Hello
I used the following procedure in S11.1, everything worked. As we reinstalled some servers, i tried the exact same with s11.2. Now i can't join my AD domain, and smb will not allow my users to access files.
Procedure:
Configured NTP
Configured DNS
Configured Name Service Switch... (3 Replies)
Hello,
I'm currently trying to mix local and LDAP users on an AIX 7.1.
I've triied many things.
My LDAP Server in on a CentOS - OpenLDAP (which works fine with linux).
I'm currently stuck on AIX at how to declare LDAP AND Local users.
Here's what i did :
/usr/sbin/mksecldap -c -h 'ldap03'... (15 Replies)
OS : SunOS 5.8
I am trying to add a user ad3059 to the following groups,
A B C D ( four groups A,B,C,D)
When i use usermod command and add the user to the above groups,
and go to
> groups ad3059
other C D
It doesnt show A and B groups and shows it as other.Please advice on how... (13 Replies)
I'd like to share some experiences and what I found for NIS migration from Solaris 8 NIS to Linux platform.
I'm not an expert for both platforms, it's just when I tested both systems and found something really tricky. That might takes a lot of time for you to find the root cause. So, I think I can... (11 Replies)
Hy everybody,
Within a dhcpd.conf file, we got some fixed IP adresses from 192.168.0.1 - 192.168.0.254.
Sample:
#ddns-update-style interim;
ddns-update-style none;
ignore client-updates;
deny client-updates;
authoritative;
#### By red for PXE Booting
allow booting;
allow bootp;
###... (17 Replies)
Hi
We took the reboot of server/global zone after that Solaris 11 share local zone not able to ping the default gateway but global zone able to ping same default gateway. I check/compare the before activity logs of global zone and local zones which looks fine to me, further IP and netmask of... (6 Replies)
Only for testing/learning I have setup a windows 2000 server with active directory
I connect to it a Solaris 10 machine "client".
I want Solaris10 take users from AD
I have follow this guide..
a)Setup active directory environment+services for UNIX
OK
b)I have created two users,one for... (2 Replies)