众所周知,网络接口卡是安装在我们系统中的电路板,以便我们可以连接到最终为我们的机器提供专用的全时网络连接的网络。同样重要的是要知道每个NIC都与一个唯一的MAC(媒体访问控制(Media Access Control))地址相关联,其中还包括 Wi-Fi 卡和以太网(Ethernet)卡。因此,MAC地址是一个 12 位十六进制代码,大小为 6 个字节,用于唯一标识 Internet 上的主机。
设备中的MAC地址是由该设备的制造商分配的,但更改地址并不难,这通常称为欺骗。在网络连接的核心,网络接口的MAC地址有助于相互通信,其中客户端请求通过各种TCP/IP协议层向下传递。在浏览器上,您要查找的网址(假设 www.google.co.in)被转换为该服务器的 IP 地址(8.8.8.8)。在这里,您的系统请求您的路由器(router)将其传输到互联网。在硬件层面,你的网卡一直在寻找其他MAC在同一网络上排队的地址。它知道在网络接口的MAC中驱动请求的位置。(MAC)MAC地址的一个示例是 2F-6E-4D-3C-5A-1B。
MAC地址是硬编码在NIC中且永远无法更改的实际物理地址。但是,根据您的目的,有一些技巧和方法可以在您的操作系统中欺骗MAC地址。(MAC)在本文中,您将了解如何在 Windows、Linux 或 Mac 上更改 MAC 地址(how to change MAC Address on Windows, Linux or Mac)
在Windows、Linux或Mac上更改您的 MAC 地址(Your MAC Address)
#1 在 Windows 10 中更改 MAC 地址
在Windows 10中,您可以在(Windows 10)设备管理器(Device Manager)的网卡配置窗格中更改MAC地址,但某些网卡可能不支持此功能。
1. 点击开始菜单旁边的“搜索栏”打开控制面板,然后输入“(Search bar)控制面板(Control Panel)” 。点击(Click)搜索结果打开。
2. 在控制面板(Control Panel)中,单击“网络和 Internet(Network and Internet) ”打开。
3. 现在点击网络和共享中心(Network and sharing center)。
4. 在网络(Network)和共享中心下双击(double-click)您的网络,如下所示。
5.将弹出网络状态( Network Status)对话框。单击(Click)属性(Properties )按钮。
6. 将打开一个网络属性对话框。选择(Select)“Microsoft Networks 客户端”,(Client for Microsoft Networks)然后单击“配置(Configure)”按钮。
7. 现在切换到高级选项卡(Advanced tab ),然后单击属性下的网络地址。(Network Address)
8. 默认情况下,“不存在”单选按钮被选中。单击与“值(Value)”相关的单选按钮并手动输入新的 MAC(enter the new MAC)地址,然后单击确定(OK)。
9. 然后您可以打开命令提示符 (CMD)(command prompt (CMD)),然后在此处输入“ IPCONFIG /ALL ”(不带引号)并按Enter 键(Enter)。现在检查您的新MAC地址。
另请阅读:(Also Read:) 如何修复 IP 地址冲突(How to Fix IP Address Conflict)
#2 在 Linux 中更改 MAC 地址
Ubuntu支持网络管理器(Network Manager),您可以使用它通过图形用户界面轻松欺骗MAC地址。(MAC)要在Linux(Linux)中更改MAC地址,您需要按照以下步骤操作:
1. 单击屏幕右上角面板上的网络图标,然后单击“(Network icon)编辑连接(Edit Connections)” 。
2. 现在选择要更改的网络连接,然后单击编辑(Edit)按钮。
3. 接下来,切换到以太网选项卡,并在“(Ethernet)克隆(Cloned MAC)的 MAC 地址”字段中手动输入新的MAC地址。输入新的MAC地址后,保存更改。
4.您也可以用旧的传统方式更改MAC地址。这涉及通过关闭网络接口运行更改MAC地址的命令,并在该过程完成后再次恢复网络接口。
命令是(The commands are)
sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up
注意:(Note:) 确保(Make)将术语 eth0 替换为您的网络接口名称。
5. 完成后,请确保重新启动您的网络接口,然后您就完成了。
此外,如果您希望上述MAC地址始终在启动时生效,那么您需要修改下的配置文件 Â Â Â Â /etc/network/interfaces.d/
 或 /etc/network/interfaces
. 如果您不修改文件,那么您的MAC地址将在您重新启动或关闭系统后重置
#3 在 Mac OS X 中更改 MAC 地址
您可以在系统(System)偏好设置(Preferences)下查看不同网络接口的MAC地址,但不能使用系统(System)偏好设置更改MAC地址,为此,您需要使用终端(Terminal)。
1.首先(First),您必须找出您现有的MAC地址。为此,单击Apple标志,然后选择“系统偏好设置”(System Preferences)。
2. 在系统偏好设置下,(System Preferences,)单击“网络(Network)”选项。
3. 现在点击“高级(Advanced)”按钮。
4. 切换到Wi-Fi属性(Properties)高级(Advance)窗口下的硬件(Hardware )选项卡。
5. 现在在硬件选项卡中,您将能够看到网络连接的当前 MAC 地址(see the current MAC address of your network connection)。在大多数情况下,即使您从“配置(Configure)”下拉菜单中选择“手动”,您也无法进行更改。
6. 现在,要手动更改MAC地址,请按 Command + Space 终端(Terminal),然后键入“ Terminal ”并按Enter。
7. 在终端中输入以下命令并回车:
ifconfig en0 | grep ether
8. 上述命令将为“ en0”接口提供MAC地址。(MAC)从这里您可以将MAC地址与您的系统(System) 偏好设置(Preferences)进行比较。
注意:(Note:)如果它与您在“系统偏好设置”(System Preferences)中看到的Mac 地址(Mac Address)不匹配,则继续执行相同的代码,同时将 en0 更改为 en1、en2、en3,直至Mac 地址(Mac Address)匹配。
9. 此外,如果需要,您可以生成一个随机MAC地址。(MAC)为此,请在终端(Terminal)中使用以下代码:
openssl rand -hex 6 | sed ‘s/\(..\)/\1:/g; s/.$//’
10.接下来,一旦您生成了新的Mac 地址(Mac Address),请使用以下命令更改您的Mac 地址:(Mac Address)
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
注意:(Note:) 将 XX(Replace XX) :XX:XX:XX:XX:XX 替换为您生成的Mac地址。
推荐:(Recommended:) DNS 服务器无响应错误 [已解决](DNS Server Not Responding Error [SOLVED])
希望(Hopefully),使用上述方法之一,您将能够根据您的系统类型在 Windows、Linux 或 Mac 上更改您的 MAC 地址。(Change Your MAC Address on Windows, Linux or Mac)但是,如果您仍然有任何问题,请随时在评论部分提出。
Change Your MAC Address on Windows, Linux or Mac
As we all know a network intеrfаce card is a circuit board that is installеd in our system sо that we can connect to a nеtwork that eventually provides our machine a dedicated, full-tіme network connection. It is alѕo іmportant to know that each NIC is associated with a unique MAC (Media Access Control) address which includes Wi-Fi cards and Ethernet cards also. So, a MAC address is a 12-digit hex code having size 6 bytes and is used for uniquely identifying a host on the internet.
The MAC address in a device is assigned by the manufacturer of that device, but it is not that hard to change the address, which is commonly known as spoofing. At the core of network connection, it is the MAC address of the network interface that helps in communicating with each other where the client request is passed down through various TCP/IP protocol layers. On the browser, the web address you are looking for (let suppose www.google.co.in) is converted to an IP address (8.8.8.8) of that server. Here, your system requests your router which transmits it to the internet. At the hardware level, your network card keeps searching for the other MAC addresses for lining up on the same network. It knows where to drive the request in the MAC of your network interface. An example of how the MAC address looks like is 2F-6E-4D-3C-5A-1B.
MAC addresses are an actual physical address that is hard-coded in the NIC that can never be changed. However, there are tricks and ways to spoof the MAC address in your operating system based on your purpose. In this article, you will get to know how to change MAC Address on Windows, Linux or Mac
Change Your MAC Address on Windows, Linux or Mac
#1 Change MAC Address in Windows 10
In Windows 10, you can change the MAC address from the configuration panes of the network card in Device Manager, but some network cards may not support this feature.
1. Open control panel by clicking on “Search bar” next to Start menu then type “Control Panel”. Click on the search result to open.
2. From the Control Panel, click on “Network and Internet” to open.
3. Now Click on Network and sharing center.
4. Under Network and sharing center double-click on your network as shown below.
5. A Network Status dialogue box will pop-up. Click on the Properties button.
6. A network properties dialogue box will open. Select “Client for Microsoft Networks” then click on the Configure button.
7. Now switch to the Advanced tab then click on the Network Address under Property.
8. By default, the “Not Present” radio button is selected. Click the radio button associated with “Value” and manually enter the new MAC address then click OK.
9. You can then open the command prompt (CMD) and there, type “IPCONFIG /ALL” (without quote) and hit Enter. Now check your new MAC address.
Also Read: How to Fix IP Address Conflict
#2 Change MAC Address in Linux
Ubuntu supports Network Manager using which you can easily spoof the MAC address with a graphical user interface. To change MAC address in Linux you need to follow the below steps:
1. Click the Network icon on the top right panel of your screen then click on “Edit Connections”.
2. Now select the network connection which you want to alter then click the Edit button.
3. Next, switch to the Ethernet tab, and type a new MAC address manually in the “Cloned MAC address” field. After entering your new MAC address, save your changes.
4. You can also change the MAC address in the old traditional way. This involves running a command for changing the MAC address by turning the network interface down, and after the process is complete, again bringing the network interface back up.
The commands are
sudo ifconfig eth0 down
sudo ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
sudo ifconfig eth0 up
Note: Make sure you replace the term eth0 with your network interface name.
5. Once finished, make sure to restart your network interface and then you’re done.
Also, if you want the above MAC address to always take effect at the boot time then you will need to modify the configuration file under /etc/network/interfaces.d/
or the /etc/network/interfaces
. If you don’t modify the files then your MAC address will be reset once you restart or turn off your system
#3 Change MAC Address in Mac OS X
You can view the MAC address of different network interfaces under System Preferences but you can’t change the MAC address using System preference and for that, you will need to use the Terminal.
1. First, you have to find out your existing MAC address. For this, click on the Apple logo then select “System Preferences”.
2. Under System Preferences, click on the “Network” option.
3. Now click on the “Advanced” button.
4. Switch to the Hardware tab under the Wi-Fi Properties Advance window.
5. Now in the hardware tab, you will be able to see the current MAC address of your network connection. In most cases, you won’t be able to make changes even if you select “Manually” from the Configure drop-down.
6. Now, to change the MAC address manually, open Terminal by pressing Command + Space then type “Terminal,” and hit Enter.
7. Type the following command into the terminal and hit Enter:
ifconfig en0 | grep ether
8. The above command will provide the MAC address for the ‘en0’ interface. From here you can compare the MAC addresses with that of your System Preferences.
Note: If it doesn’t match your Mac Address as you saw in System Preferences then proceed the same code while changing en0 to en1, en2, en3, and further until the Mac Address matches.
9. Also, you can generate a random MAC address, if you need one. For this, use the following code in Terminal:
openssl rand -hex 6 | sed ‘s/\(..\)/\1:/g; s/.$//’
10. Next, once you have generated the new Mac Address, change your Mac Address by using the below command:
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
Note: Replace XX:XX:XX:XX:XX:XX with the Mac address you generated.
Recommended: DNS Server Not Responding Error [SOLVED]
Hopefully, using one of the above methods you will be able to Change Your MAC Address on Windows, Linux or Mac depending on your system type. But if you still have any issues then feel free to ask them in the comment section.