Mac Address is a network address used to layer 2 network traffic. The communication is done between network nodes with the mac address. It is important part of computer networking. In this tutorial, we will look at different ways to get mac addresses practically.
Mac地址是用于第2层网络流量的网络地址。 使用mac地址在网络节点之间进行通信。 它是计算机网络的重要组成部分。 在本教程中,我们将探讨实际获得mac地址的不同方法。
Getmac命令 (Getmac Command)
Getmac command is a simple command used to get mac related information. We will use this command to get all interfaces mac addresses. We will provide /v
, /fo
and list
parameters to the getmac command.
Getmac命令是用于获取与mac相关的信息的简单命令。 我们将使用此命令获取所有接口的mac地址。 我们将为getmac命令提供/v
, /fo
和list
参数。
$ getmac /v /fo list

There are two network interfaces in the system.
系统中有两个网络接口。
Connection Name
provides the name or identifier of the interfaceConnection Name
提供接口的名称或标识符Network Adapter
provides Manufacturer and model informationNetwork Adapter
提供制造商和型号信息Physical Address
provides mac address informationPhysical Address
提供了MAC地址信息
ipconfig命令(Ipconfig Command)
Ipconfig command has a lot of features used to get detailed network information. We can get mac address information with this command too.
ipconfig命令具有许多用于获取详细网络信息的功能。 我们也可以使用此命令获取mac地址信息。
$ ipconfig /all
