How to change the hardware MAC address of your network card in Linux



by Jan Dlabal, admin at houbysoft dot and then com

1) Open up a terminal (for example : xterm, konsole, tilda, etc.)

2) If you are not root, become root by typing one of these commands:
$ sudo -s (then enter your password)
$ su (then enter root's password)

3) Now you can do it :)
# export INTERFACE="eth1" (replace eth1 with the interface of which you want to change the MAC address)
# ifconfig $INTERFACE down
# ifconfig $INTERFACE hw ether 44:55:66:77:88:99 (replace 44:55:66:77:88:99 with the MAC address you want to have)
# ifconfig $INTERFACE up
Now $INTERFACE has a changed MAC address. Easy, huh? Another reason why Linux rocks...