On Fri, Apr 20, 2012 at 2:43 PM, Mick <michaelkintz...@gmail.com> wrote: > On Friday 20 Apr 2012 16:22:10 James wrote: >> Alex Schuster <wonko <at> wonkology.org> writes: >> > How am I supposed to find the MAC address of an ethernet interface? >> >> nmap -sP 192.168.2.0/24 >> >> might be of interest too, >> >> ymmv, >> James > > Hmmm ... current versions use -sn instead of -sP for no port scan. > > BTW, this would only work if you scan (as root) the target from another box. > It will not reveal a MAC address if you scan localhost.
'localhost' resolves to either 127.0.0.1 or ::1, which is almost invariably assigned to the 'lo' interface. It *might* work if you ran it against a public IP of the machine you're on. Depends on how much optimization there is in the network stack, I suppose. -- :wq