How to change Change MAC Address in Linux
In case you want to hide and do not want disclose you hardware (Physical, MAC) address to anybody, here is the solution, yes you can hide your original MAC address and assign fake address to same NIC card. or another case like
If a firewall accept packets only from a specific MAC-Address or refusing your MAC drress , with this work around you will trick it out to accept packets from your NIC
So question is how to chang the MAC-Address of your hardware network interface (NIC).
To check you MAC address
#ifconfig | grep HWaddr
Stop the network service
#/etc/init.d/network stop
#ifconfig eth0 down
Run the command to change MAC Address
#ifconfig eth0 hw ether 02:01:02:03:04:08(fake MAC address)
Start the service
#ifconfig eth0 up
#/etc/init.d/networking start
Verify now
you will find your hardware address has been changed.
#ifconfig | grep HWaddr
If a firewall accept packets only from a specific MAC-Address or refusing your MAC drress , with this work around you will trick it out to accept packets from your NIC
So question is how to chang the MAC-Address of your hardware network interface (NIC).
To check you MAC address
#ifconfig | grep HWaddr
Stop the network service
#/etc/init.d/network stop
#ifconfig eth0 down
Run the command to change MAC Address
#ifconfig eth0 hw ether 02:01:02:03:04:08(fake MAC address)
Start the service
#ifconfig eth0 up
#/etc/init.d/networking start
Verify now
you will find your hardware address has been changed.
#ifconfig | grep HWaddr
How to change Change MAC Address in Linux
Reviewed by TecGeeks News
on
February 16, 2017
Rating:
No comments: