From: Michele Andreoli (m.andreoli@tin.it)
Date: Mon Oct 01 2001 - 13:54:51 CEST
On Mon, Oct 01, 2001 at 12:18:06PM +0200, Jeroen Nieuwenbroek nicely wrote:
> I need someone with the correct mulinux knowledge...
>
> with an redhat dist. i use the command arpwatch to get ethernetadresses and
> its corresponding ipnumbers.
>
> is there in mulinux an option wich can tell me wich ipnumer has wich
> ethernetadres ? or visaversa.
>
> under an normal DOS enviroment the command is ARP -a <ip-number>
>
> with dear regards
>
No arp command in muLinux, a the moment. The MAC address is shown,
of course, by the ifconfig
# ifconfig ethx
But, surely, you wish to get the MAC for a remote machine, isn't true?
If the remote machine is a mulinux, you can implement a sort of MAC
server using netcat:
# ifconfig eth0 | rgrep HWaddr | nc -l -p 5555
You can put this command in a script and add it in /etc/inittab.
Now, from the client, you can write:
# nc <remote-machine> 5555
and will obtains on the screen something like:
eth0 Link encap:Ethernet HWaddr 00:50:04:C0:CA:96
Michele
-- I keep trying to locate a meeting of Quantum Physicists. But everytime they set a meeting time, the location changes. And vice versa -- Anonymous --------------------------------------------------------------------- To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk For additional commands, e-mail: mulinux-help@sunsite.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:20 CET