1. First step is to find the current MAC address and take a backup copy in a safe place.
To know your current MAC type:
$ ifconfig | grep HWaddr
eth0 Link encap:Ethernet HWaddr 00:19:48:2E:D1:27
The above hexadecimal numbers 00:19:48:2E:D1:27 is your MAC address for device eth0.
Simply copy and paste it in a file.
2. Now, time to change the MAC address this requires you to work as root user.
Take the network interface down
# ifdown eth0
Now, lets change the current MAC address to 00:E0:81:5C:B4:0F
# ifconfig eth0 hw ether 00:E0:81:5C:B4:0F
Take the network interface up again
# ifconfig eth0 up
Check if your MAC address is changed:
# ifconfig eth0 | grep HWaddr
Note:
Changing MAC address is only temporary. Once you reboot your machine, the operating system will reflect the physical MAC address burnt in your network card and not the MAC address you set.
Thanks a lot! A nice tip to make tests.
ReplyDeleteUseful post, but I thought ifconfig was deprecated and people should be moving to the `ip` command. Could you do the same post for that method?
ReplyDeleteI tried this, but after changing the MAC address the connection with the network failed, and when i turned MAC address back the connection return. What could be the problem ?
ReplyDeleteThanks
Silvester Norman
Change Mac Address
You can get vendor/Manufacturer from mac address
ReplyDeleteusing https://macvendors.co
Thanks for providing us such a great software Download Change MAC address 3.1
ReplyDeletethanks it worked
ReplyDeleteI truly appreciate that you've posted an nice article. Much obliged to you for sharing this good post. Likewise visit our website.
ReplyDelete123.hp.com || 123.hp.com/setup || 123HP Setup || hp.com/setup || hp.com/123 || 123.hp.com setup || 123 HP Printer Setup || 123 HP Printer Support || 123 HP Setup and Install || 123hpcom || 123 HP Printer Install || 123hpcomsetup || 123 HP Wireless Setup || 123 HP Install || hpcom/123 || 123hpcominstall || 123HP Setup || 123 HP Smart App || Install 123 HP Printer || HP 123 Setup Scanner