Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #265489

Re: Content of /etc/ethers

From Mike Castle <dalgoda+debian@gmail.com>
Newsgroups linux.debian.user
Subject Re: Content of /etc/ethers
Date 2024-01-04 06:40 +0100
Message-ID <HSoCt-F3W-1@gated-at.bofh.it> (permalink)
References <HSkIx-CE1-1@gated-at.bofh.it> <HSllf-D5v-1@gated-at.bofh.it> <HSlEB-Db2-1@gated-at.bofh.it> <HSlOh-De8-3@gated-at.bofh.it> <HSm7D-Dkt-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jan 3, 2024 at 6:58 PM Greg Wooledge <greg@wooledge.org> wrote:
> What's not really stated anywhere is *why* these library functions
> exist.  I don't see many practical application for a library function
> that reads a text file full of MAC addresses and hostnames, looks up
> one of them, and spits out the other half of the line it's on.  You'd
> get more usefulness just doing "grep somename /etc/ethers".
>
> The Debian ethers(5) page references arp(8), so one might conclude
> that this file is intended to augment/prettify the output of "arp" so
> that it contains hostnames in addition to (or instead of) MAC addresses.
> But the main use of the "arp" command has always been to find out the MAC
> address of a host whose IP address you already know (or can get from DNS),
> but whose MAC address is not currently known.  So, if you've already got
> a text file full of these MAC addresses, why would you even need to run
> the arp command in the first place?

IPv4 and IPv6 are not the only network protocols that can be used on
Ethernet.  Nor were they the first, and definitely not the only ones
on unix-like systems.

One can do raw ethernet packets.  Or IPX, NetBIOS (used by SMB,
Lantastic, and others), AppleTalk, Banyan's VINES, PPPoE, DECnet, ,
probably XNS.

Probably many I missed, and perhaps some future enet based protocols
that are not inet based.

Reading https://en.wikipedia.org/wiki/Xerox_Network_Systems:
> XNS also helped to validate the design of the 4.2BSD network subsystem by providing a second protocol suite, one which was significantly different from the Internet protocols; by implementing both stacks in the same kernel, Berkeley researchers demonstrated that the design was suitable for more than just IP.

The getent(1) support ethers, so you can probably use that to test any
information you put in there.  As mentioned in the getent man page,
ethers is one of the databases supported by NSS.

mrc

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Content of /etc/ethers Steve Keller <keller.steve@gmx.de> - 2024-01-04 02:30 +0100
  Re: Content of /etc/ethers Greg Wooledge <greg@wooledge.org> - 2024-01-04 03:10 +0100
    Re: Content of /etc/ethers John Hasler <john@sugarbit.com> - 2024-01-04 03:30 +0100
      Re: Content of /etc/ethers Nicholas Geovanis <nickgeovanis@gmail.com> - 2024-01-04 03:40 +0100
        Re: Content of /etc/ethers Greg Wooledge <greg@wooledge.org> - 2024-01-04 04:00 +0100
          Re: Content of /etc/ethers Mike Castle <dalgoda+debian@gmail.com> - 2024-01-04 06:40 +0100
        Re: Content of /etc/ethers Kushal Kumaran <kushal@locationd.net> - 2024-01-04 04:30 +0100
  Re: Content of /etc/ethers Stefan Monnier <monnier@iro.umontreal.ca> - 2024-01-04 06:30 +0100
    Re: Content of /etc/ethers "Rick Thomas" <rick.thomas@pobox.com> - 2024-01-05 00:00 +0100
  Re: Content of /etc/ethers Fred <fred@blakemfg.com> - 2024-01-04 15:00 +0100

csiph-web