Remotely obtain MAC addresses
In order to create a DHCP reservation, you need to know the MAC address of the computer. The MAC address is a unique link-layer address that identifies a network interface on a computer, and MAC addresses are generally hard-coded into network interfaces although they sometimes can be changed. Often when you purchase a computer the MAC address is displayed, either on a sticker on the system or in the computer's documentation. But not always.
If you're logged on locally to a computer running Microsoft Windows, you can determine the system's MAC address by typing ipconfig /all and looking for the entry labeled Physical Address. But what if you're system is somewhere else on your network? One way of determining the MAC address of a remote system is to type nbtstat -A remoteaddress at a command prompt where remoteaddress is the IP address of the remote system. For example, when I run this against a Windows Server Core box on my test network, I get the following result:
C:\Documents and Settings\Administrator>nbtstat -A 172.44.25.222 Local Area Connection: Node IpAddress: [172.44.25.102] Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status --------------------------------------------- SEA-SC1 <00> UNIQUE Registered CONTOSO <00> GROUP Registered SEA-SC1 <20> UNIQUE Registered MAC Address = 00-11-D8-60-ED-D4 |
The remote system's MAC address is the last entry in the output from the command.
An alternative to the above is to use the psexec tool from Mark Russinovich's Windows Sysinternals suite of tools. Using psexec, you can run ipconfig /all remotely on the remote machine and return the result to your local computer. Here's an example of this at work (you could also substitute the remote computer's name instead of its IP address in the below command, and you need to specify credentials that work on the remote machine):
Sign up for ITworld's Daily newsletter
Follow ITworld on Twitter @IT_world
On Twitter now
DHCP
Powered by Twitter
Esther Schindler
If the comments are ugly, the code is ugly
claird
SVG a graphics format for 21st century
pasmith
Take Chrome OS for a test spin
Sandra Henry-Stocker
Solaris Tip: Have Your Files Changed Since Installation?
jfruh
Android fragments vs. the iPhone monolith
mikelgan
What Gizmodo missed about the Pro WX Wireless USB disk drive
Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325
Join the conversation here
Quick, practical advice for IT pros. Made fresh daily.
Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.













