Open-Notes.net - a free, fast, convenient way to store notes online!
Select your style     Blue Style     Black Style     Let there be snow!     Disable snow
[CNW:Counter]

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...


Creative Commons License
This work by Jan Dlabal is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.