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++
想对作者说点什么? 我来说一句

UNIX编程常见问题解答

2011年04月21日 41KB 下载

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

不良信息举报

How do I get a MAC address via command line?

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭