Every network interface have an unique identifier assigned called Media Access Control Address (MAC Address), , used for communication on the physical network segment.
Using Linux you can replace this "number" with another one in a few simple steps
- first of all write the actual MAC address for emergency (the interface could not connect). For this you can write on a shell
$ ifconfig>>config.txt
that save your network settings on config.txt - the second thing is to disconnect the interface with
# ifconfig eth0 down
- now you can modify the MAC
# ifconfig eth0 hw ether 00:00:00:00:00:0)
where instead of zeros you have to put the new address (in hexadecima form, e.g. 01:23:45:67:89:ab) - reconnect the interface
# ifconfig eth0 up
Remember: after rebooting the address returns to being the same as before
References:
- MAC Address on Wikipedia: https://en.wikipedia.org/wiki/MAC_address