On Oct 31, 2007 3:02 AM, K. R. <mcse / palstek.ch> wrote:
> Hi @all
>
> How can I find out the mac address from the default gateway with a ruby
> script?
> Does exist any methods to read it out? The script runs on a linux
> distribution...

If you know the IP address of the gateway, then parse the output of
the 'arp -n <IP>' command.  It's reasonably portable and easy to
parse.

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.  -- Benjamin Franklin