博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to change MAC address
阅读量:4285 次
发布时间:2019-05-27

本文共 1722 字,大约阅读时间需要 5 分钟。

Changing MAC address of a machine is called spoofing a MAC address or faking a MAC address. In linux, you can change MAC address of your machine.This is how it is done.

How to change MAC address in Linux


First find the physical MAC address of your machine by running the following command :

$ ifconfig -a | grep HWaddreth0  Link encap:Ethernet HWaddr 00:80:48:BA:d1:20


The hexadecimal numbers in blue denote my machine's MAC address. Yours will be different. Learn how to use the  Linux command.

You can also use ethtool to find the hardware address of your machine.


Next, login as root in Linux and enter the following commands -

# ifconfig eth0 down# ifconfig eth0 hw ether 00:80:48:BA:d1:30# ifconfig eth0 up# ifconfig eth0 |grep HWaddr

 

I have changed the MAC address to a different number highlighted in blue. 00:80:48:BA:d1:30 is the new MAC address I have provided for my Linux machine. You can choose any 48 bits hexadecimal address as your MAC address.

 

Why you should change MAC address of your Linux machine


These are the reasons you should change the MAC address of your machine.

  • For privacy  - For instance when you are connecting to a Wi-Fi hotspot.
  • To ensure interoperability. Some internet service providers bind their service to a specific MAC address; if the user then changes their network card or intends to install a router, the service won't work anymore. Changing the MAC address of the new interface will solve the problem.

 

Caveats to Changing MAC address


In Linux, Windows, Mac OS X, or a different operating system, changing MAC address is only temporary. Once you reboot your machine, the operating system reflects the physical MAC address burnt in your network card and not the MAC address you set.

转载地址:http://uwpgi.baihongyu.com/

你可能感兴趣的文章
AngularJs控制器说明(一)
查看>>
Teleport Ultra网站静态资源下载工具
查看>>
AngularJs $http 请求服务整理
查看>>
ionic 加载动作$ionicLoading 和加载动画 ion-spinner
查看>>
使用Git获取最新版本到本地
查看>>
Visual Studio 调试器“启用编辑并继续”
查看>>
Cordova页面解析页面中script标签内容失败,Refused to execute inline script because it violates the following
查看>>
Ionic 中使用iframe嵌入外网页面整理
查看>>
Cordova config.xml配置WebView全屏浏览
查看>>
VS Code插件安装位置
查看>>
Cordova Ajax请求跨域问题整理
查看>>
Ionic ion-nav-view使用整理
查看>>
angularjs unsafe ng-href using javascript: void(0);
查看>>
AngularJs ng-bind-html指令整理
查看>>
cordova-plugin-whitelist 协议白名单配置整理
查看>>
cordova-plugin-network-information 网络状态获取整理
查看>>
cordova-plugin-device 获取设备信息整理
查看>>
cordova-plugin-vibration 设备震动整理
查看>>
Cordova事件整理
查看>>
Apache Cordova开发环境搭建(二)VS Code
查看>>