Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to find the MAC address
Date: Fri, 20 Apr 2012 20:42:11
Message-Id: CA+czFiA76WmzShoKDfdatHpOu+gbLu1rskxOdag9UN6oyvbzEQ@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: How to find the MAC address by Mick
1 On Fri, Apr 20, 2012 at 2:43 PM, Mick <michaelkintzios@×××××.com> wrote:
2 > On Friday 20 Apr 2012 16:22:10 James wrote:
3 >> Alex Schuster <wonko <at> wonkology.org> writes:
4 >> > How am I supposed to find the MAC address of an ethernet interface?
5 >>
6 >> nmap -sP 192.168.2.0/24
7 >>
8 >> might be of interest too,
9 >>
10 >> ymmv,
11 >> James
12 >
13 > Hmmm ... current versions use -sn instead of -sP for no port scan.
14 >
15 > BTW, this would only work if you scan (as root) the target from another box.
16 > It will not reveal a MAC address if you scan localhost.
17
18 'localhost' resolves to either 127.0.0.1 or ::1, which is almost
19 invariably assigned to the 'lo' interface.
20
21 It *might* work if you ran it against a public IP of the machine
22 you're on. Depends on how much optimization there is in the network
23 stack, I suppose.
24
25 --
26 :wq