/etc/ethers How to build

2007-12-25 11:38:00

I am using the /etc/ethers file with a program called etherman. The program

monitors network traffic and displays it. It uses the /etc/ether file to

lookup the names of the machines.

Here are the replies:

-----------

Steve @ starbug1.demon.co.uk (Steve Kay)

> Is there a program or script available to automate

> the building of a /etc/ethers file. Running 4.1.3

> and NIS.

>

> Thanks in advance.

>

running rup (to build up a decent arp table), followed

by arp -a piped into an awk script should get you started.


--
Steve Kay
-----------------------------
jdavis @ cs.arizona.edu (Jim Davis)
There's a program Dave Curry wrote some time ago called 'getethers'.
Basically you give it a network address and it pings everything on it
and writes the ethernet addresses it finds to a file. I don't have an
ftp site handy, but maybe archie can find it for you.

Of course you could also just write a shell script to ping, say,
192.1.1.1, 192.1.1.2, ..., 192.1.1.254 and capture the output.
-----------------------

Also, one may also ping all the routers and then
do an arp -a and most of them show up.

Comments

Got something to say?

You must be logged in to post a comment.