May 18th, 2004, 06:54 PM
Finding a mac address locally
I was wondering if there was an easy way to find the mac adress of a local machine. Ok heres the problem: I will soon be setting up a small home network that is based around a wireless adsl router. The router documentation states that you can set up a list of allowed mac addresses (to try and stop wardirving in my front graden ). The problem is the startup screens for 2 of the computers display the mac address but it disapears to quickly to write down and the third computer does not display startup info (and im not alowed to go into the bios to change this). So like i said i was wondering if there was an easy way to get the mac address for each machine when i have physical access to them. Thanks
May 18th, 2004, 06:59 PM
Run ipconfig /all, I believe the "Physical Address" is the mac address.
May 19th, 2004, 08:13 PM
try this: with a web page open in your browser for a while, open the CLI and type in
"arp -a" at the prompt, without the quotes. You might get a response such as "No ARP entries found". This is because your ARP cache gets periodically flushed. Click on the refresh button in the tool bar of your browser. The CLI minimizes, so you'll have to open it again. Type
"arp -a" again, and you'll see the MAC address of your gateway device to the Internet.
Similarly, if you are on a LAN, when devices are talking to one another, their MAC addresses
will appear in the ARP cache. Address Resolution Protocol is a data link layer protocol that uses the MAC source and destination addresses in the frame headers to locate physical addresses of network interface cards on computers or interfaces on routers.
Switches especially, rely on MAC addresses to forward data between ports.
The reason for the ROTF comment: in typing this response and trying to make it as accurate as possible, I refreshed this page ( the one you get when replying to a thread), only to wipe out every thing I had typed into the reply box.
Anyway, more fun with computers....
May 19th, 2004, 11:23 PM
If you have yet to install the wireless NICs in the machines then the MAC address should be printed on them also. Just make a note of them before installation.
Mankind have a great aversion to intellectual labor; but even supposing knowledge to be easily attainable, more people would be content to be ignorant than would take even a little trouble to acquire it.
- Samuel Johnson
May 19th, 2004, 11:28 PM
May 20th, 2004, 12:36 AM
ifconfig or ipconfig, depending on the OS.
And to add to Korpdeaths' reply, if the wireless NIC is of the PCMCIA type for
laptops, you can always slide them out and take a looksee.
May 20th, 2004, 12:51 AM
Yes, if you do use ip and not if you might not be able to use grep
May 20th, 2004, 12:52 AM
Hey, Y'all dumbasses realize that the MAC addy is clearly shown in the connection properties dialog...
Linux should have something similar, it all depends on what distro you use, and what GUI you use...
Y'all had to get all snooty with him. CLI, ARP...
Real security doesn't come with an installer.
May 20th, 2004, 01:04 AM
May 20th, 2004, 01:09 AM
WindowsXP has a command line tool called GetMac which can be used instead of ipconfig /all
getmac /FO csv
that command will get the job done.
<chsh> I've read more interesting technical discussion on the wall of a public bathroom than I have at AO at times