Deprecated: Assigning the return value of new by reference is deprecated in /data/16/1/16/101/1505590/user/1619773/htdocs/CooperativeBlog/wp-includes/cache.php on line 99

Deprecated: Assigning the return value of new by reference is deprecated in /data/16/1/16/101/1505590/user/1619773/htdocs/CooperativeBlog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /data/16/1/16/101/1505590/user/1619773/htdocs/CooperativeBlog/wp-includes/theme.php on line 576
BLACKHALL » Blog Archive » How to find a MAC address on your LAN.
Filed Under (Co-Op PC Game) by STARTNET on 27-07-2010

How to find a MAC address on your LAN. Locating a MAC address on your network.

CMD run as admin.

Then type in: “getmac /s ” or try: “nbtstat -A ” (without quotes)

But the best way is just to run the great cc-get-mac-address application.
Download here: http://www.youngzsoft.net/cc-get-mac-address/download.htm

Robert Citek wrote about this on the CWE-LUG list a while back, & I thought y’all might find it interesting.

For example, when I want to know all the MAC address and IP addresses on my LAN, I do the following:

# ping -b -c 2 -W 1 192.168.1.255
# arp | grep eth

although I find this for-loop gives me more complete results:

# for i in $(seq 1 254) ; do ping -c 2 -W 1 192.168.1.$i >& /dev/null & done
# arp | grep eth

The above works great if I know the network I’m on. But what if there is a device that is using a different network IP, e.g. 10.1.1.1? For example, we discovered serendipitously through using ethereal that one of our wireless switches was doing just that.

Now, here’s how I would do the same thing, using the fantabulous nmap:

# nmap -sP -PI -PT 192.168.0.1/24

Of course, Robert’s examples assume that his network’s addressing uses 192.168.1.x, while mine assumes 192.168.0.x, but you probably saw that anyway. :)



You must be logged in to post a comment.