How do I get a MAC address via command line?

The first one that comes to mind is GetMAC. Simply open a command prompt and type GetMAC and it will return your 48-bit MAC address in the following format:

Physical Address   Transport Name
================== ====================================================
00-40-CA-B5-5B-06 /Device/Tcpip_{B249BB63-9574-4061-817A-D62E1D12072F}


The next method of doing it is writing IPCONFIG /ALL

An interesting way to discover what MAC addresses you know of other people on your network is to type ARP -a in a command prompt
阅读更多
文章标签: command network
个人分类: c++
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭